From 030a40f2fafda9202c3b51b6d4d7135f8308b856 Mon Sep 17 00:00:00 2001 From: martintomka Date: Thu, 13 Aug 2026 14:26:48 +0200 Subject: [PATCH 1/3] Scroll long stack frames instead of wrapping --- crates/rallocator_cli/src/templates/snapshot.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rallocator_cli/src/templates/snapshot.html b/crates/rallocator_cli/src/templates/snapshot.html index ffcc1efe5..7b9b9354d 100644 --- a/crates/rallocator_cli/src/templates/snapshot.html +++ b/crates/rallocator_cli/src/templates/snapshot.html @@ -13,7 +13,7 @@ .card{padding:18px}.metric{font-size:25px;font-weight:700;color:var(--accent)}.label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em} section{padding:22px;margin:16px 0;overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}th:first-child,td:first-child{text-align:left}th{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.05em} .bar{height:8px;min-width:120px;background:#26314b;border-radius:9px;overflow:hidden}.bar>span{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--good))} -code{color:#b9e8ff}ol{padding-left:24px}li{margin:14px 0}.stack{overflow-wrap:anywhere;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px} +code{color:#b9e8ff}ol{padding-left:24px}li{margin:14px 0}.stack{overflow-x:auto;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;scrollbar-width:thin;scrollbar-color:#3b4969 transparent}.stack>div{white-space:nowrap}.hotspot-stacks>div{min-width:0}.stack::-webkit-scrollbar{height:9px}.stack::-webkit-scrollbar-track{background:transparent}.stack::-webkit-scrollbar-thumb{background:#3b4969;border-radius:5px} .region{display:grid;grid-template-columns:minmax(280px,520px) 1fr;gap:24px;align-items:start}.slice-map{width:100%;aspect-ratio:1;background:#090d18;border:1px solid var(--line);border-radius:8px;image-rendering:pixelated} .slice-map .small{fill:#70d6ff}.slice-map .medium,.slice-map .medium-continuation{fill:#ffcf70}.slice-map .bump{fill:#72e0a8}.slice-map .unknown{fill:#7d879e} .topology-owner .slice-map rect{fill:var(--owner-color)}.topology-owner .kind-legend,.topology-kind .owner-legend{display:none} From 632d7c160dc98062cb52f19dff37deb5e9b8680e Mon Sep 17 00:00:00 2001 From: Martin Tomka Date: Thu, 13 Aug 2026 17:08:20 +0200 Subject: [PATCH 2/3] fix: skip doctests for binary-only affected packages Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 80ca15a7-29b1-45d6-851f-501e3c6c9f0d --- justfiles/anvil/checks/doc-test.just | 29 ++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/justfiles/anvil/checks/doc-test.just b/justfiles/anvil/checks/doc-test.just index 5191dbd01..58b0eab35 100644 --- a/justfiles/anvil/checks/doc-test.just +++ b/justfiles/anvil/checks/doc-test.just @@ -19,9 +19,34 @@ anvil-doc-test: anvil-doc-test-validate-prereqs $ErrorActionPreference = 'Stop' if ($env:ANVIL_INCLUDE_AFFECTED -eq '--skip') { exit 0 } $pkg = @(if ($env:ANVIL_INCLUDE_AFFECTED) { -split $env:ANVIL_INCLUDE_AFFECTED } else { '--workspace' }) - & cargo test --doc @pkg --all-features --locked + $docArgs = if ($pkg -contains '--workspace') { + @('--workspace') + } else { + $meta = cargo metadata --no-deps --format-version 1 | ConvertFrom-Json + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + $byName = @{} + foreach ($p in $meta.packages) { $byName[$p.name] = $p } + + $filteredArgs = [System.Collections.Generic.List[string]]::new() + for ($i = 0; $i -lt $pkg.Count; $i++) { + if ($pkg[$i] -ne '--package' -or ($i + 1) -ge $pkg.Count) { continue } + $spec = $pkg[++$i] + $name = ($spec -split '@', 2)[0] + $p = $byName[$name] + if ($p -and ($p.targets | Where-Object { $_.kind -contains 'lib' -and $_.doctest })) { + $filteredArgs.Add('--package') + $filteredArgs.Add($spec) + } + } + @($filteredArgs) + } + if ($docArgs.Count -eq 0) { + Write-Host 'anvil-doc-test: no affected packages with doctestable library targets; skipping' + exit 0 + } + & cargo test --doc @docArgs --all-features --locked if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - & cargo test --doc @pkg --locked + & cargo test --doc @docArgs --locked if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } # Install prerequisites for the `anvil-doc-test` recipe. From 400db8a21a8ec72202ae5f371e14b62aa5205e99 Mon Sep 17 00:00:00 2001 From: Martin Tomka Date: Fri, 14 Aug 2026 08:47:04 +0200 Subject: [PATCH 3/3] review: remove unrelated doctest recipe change Keep PR #667 scoped to the snapshot template update. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 80ca15a7-29b1-45d6-851f-501e3c6c9f0d --- justfiles/anvil/checks/doc-test.just | 29 ++-------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/justfiles/anvil/checks/doc-test.just b/justfiles/anvil/checks/doc-test.just index 58b0eab35..5191dbd01 100644 --- a/justfiles/anvil/checks/doc-test.just +++ b/justfiles/anvil/checks/doc-test.just @@ -19,34 +19,9 @@ anvil-doc-test: anvil-doc-test-validate-prereqs $ErrorActionPreference = 'Stop' if ($env:ANVIL_INCLUDE_AFFECTED -eq '--skip') { exit 0 } $pkg = @(if ($env:ANVIL_INCLUDE_AFFECTED) { -split $env:ANVIL_INCLUDE_AFFECTED } else { '--workspace' }) - $docArgs = if ($pkg -contains '--workspace') { - @('--workspace') - } else { - $meta = cargo metadata --no-deps --format-version 1 | ConvertFrom-Json - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - $byName = @{} - foreach ($p in $meta.packages) { $byName[$p.name] = $p } - - $filteredArgs = [System.Collections.Generic.List[string]]::new() - for ($i = 0; $i -lt $pkg.Count; $i++) { - if ($pkg[$i] -ne '--package' -or ($i + 1) -ge $pkg.Count) { continue } - $spec = $pkg[++$i] - $name = ($spec -split '@', 2)[0] - $p = $byName[$name] - if ($p -and ($p.targets | Where-Object { $_.kind -contains 'lib' -and $_.doctest })) { - $filteredArgs.Add('--package') - $filteredArgs.Add($spec) - } - } - @($filteredArgs) - } - if ($docArgs.Count -eq 0) { - Write-Host 'anvil-doc-test: no affected packages with doctestable library targets; skipping' - exit 0 - } - & cargo test --doc @docArgs --all-features --locked + & cargo test --doc @pkg --all-features --locked if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - & cargo test --doc @docArgs --locked + & cargo test --doc @pkg --locked if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } # Install prerequisites for the `anvil-doc-test` recipe.