Skip to content

test: stabilize navigation, layout and HTTP fixtures - #1385

Merged
ldm0 merged 1 commit into
mainfrom
codex/deterministic-navigation-layout-fixtures
Oct 11, 2026
Merged

ldm0 merged 1 commit into
mainfrom
codex/deterministic-navigation-layout-fixtures

Conversation

@lanyue-llk

Copy link
Copy Markdown
Contributor

Navigation tests can accept a load event left over from an earlier popup navigation. Layout assertions also depend on the host's monospace font, and fetch tests compare complete responses whose Date headers change between requests.

Wait for the requested navigation's loader-specific lifecycle event, register the existing bundled Ahem font for the two layout tests, and give the local HTTP fixture a fixed Date header. The font registration helper is compiled only for tests. Production fetching, rendering and Markdown conversion are unchanged.

The Ahem layout expectations were checked against Chromium across all 120 combinations in the two tests. This change is independent of the content-export work in #919 and its split PRs #1334–#1337.

Based on main dffbbd7bc. Validation on macOS with the repository-pinned Rust 1.96.1: cargo fmt --all, full-workspace/all-target/all-feature Clippy with warnings denied, and complete Nextest all passed: 19,870 passed, 17 skipped. The canvas test context change is already in main and is not included here.

@github-actions

Copy link
Copy Markdown

Sequential Navigation Soak A/B

✅ HEAD completed the 200-navigation resilience and memory observation.

One browser process, one target, and one CDP session navigate CSDN → SegmentFault → Huaban → example.com repeatedly. This run issued 200 Page.navigate commands per binary.

Common ancestor dffbbd7bc6 → HEAD fbbcb9d198; benchmark order: base-first; workflow: success.

Session resilience

Metric Base HEAD
Attempted / planned 200 / 200 200 / 200
Direct observable pass 200 / 200 199 / 200
Failures / recovered 0 / 0 1 / 1
Recovery failures 0 0
Lifecycle order violations 0 0
Network order violations 0 0
Wall time 343.7 s 349.2 s

A public-page failure is reported separately from an unrecoverable session. The soak requires all navigation attempts, zero failed recovery, zero lifecycle/network ordering violations, and complete resource evidence.

Process-tree memory

Metric Base HEAD Δ
Boundary samples 200 200 0
Boundary RSS samples 200 200 0
Boundary PSS samples 200 200 0
Periodic peak RSS 268.5 MiB 266.7 MiB -1.8 MiB
Periodic peak PSS 265.2 MiB 263.2 MiB -2.0 MiB
RSS · first 10 avg 175.6 MiB 180.1 MiB +4.5 MiB
RSS · last 10 avg 184.2 MiB 178.7 MiB -5.5 MiB
RSS · last − first window +8.6 MiB -1.3 MiB -9.9 MiB
RSS · warm slope / 100 nav +4.7 MiB +2.7 MiB -2.0 MiB
PSS · first 10 avg 172.3 MiB 176.8 MiB +4.4 MiB
PSS · last 10 avg 181.0 MiB 175.7 MiB -5.3 MiB
PSS · last − first window +8.7 MiB -1.1 MiB -9.8 MiB
PSS · warm slope / 100 nav +4.8 MiB +2.9 MiB -1.9 MiB
Peak file descriptors 57 58 1
Peak threads 29 29 0

HEAD memory by 50-navigation quarter

HEAD range Avg RSS Final RSS Peak RSS Avg PSS Final PSS Peak FD
1–50 178.3 MiB 157.9 MiB 213.5 MiB 174.8 MiB 154.2 MiB 53
51–100 179.0 MiB 172.9 MiB 206.7 MiB 175.3 MiB 169.2 MiB 54
101–150 179.4 MiB 163.1 MiB 209.0 MiB 175.8 MiB 159.8 MiB 52
151–200 181.4 MiB 135.0 MiB 206.5 MiB 178.1 MiB 132.0 MiB 53

Raw reports and per-navigation boundary samples: workflow run and full sequential-navigation-soak-results artifact.

Public-site timing and memory are observational. Use the A/B deltas and trend shape as evidence, not as a deterministic performance threshold.

@github-actions

Copy link
Copy Markdown

Spider Bench A/B

✅ All benchmark browser service runs completed; results are informational.

Public HEAD: 184 / 240 rows; 38 / 48 sites produced rows; 10 unexpected empty sites.

✅ Deterministic fixture contract is clean.

Common ancestor dffbbd7bc61a → HEAD fbbcb9d19831; benchmark order: base-first; workflow: success.

Public 48-site run · informational

Metric Base HEAD Δ
Run status success success —
Extracted rows / contract 184 / 240 184 / 240 0 (0.00%)
Contract fill 76.67% 76.67% 0.00 pp (0.00%)
Sites with rows 38 / 48 38 / 48 0 (0.00%)
Sites meeting row contract 36 / 48 36 / 48 0 (0.00%)
Unexpected empty sites 10 10 0 (0.00%)
Partial-row sites 2 2 0 (0.00%)
Site outcomes extracted: 36; HTTP error + rows: 2; empty: 7; HTTP error + empty: 1; snapshot error + empty: 2 extracted: 37; HTTP error + rows: 1; empty: 7; HTTP error + empty: 1; snapshot error + empty: 2 —
Observed duration 46.76 s 44.64 s -2.11 s (-4.52%)
Estimated CPU 48.35 s 47.02 s -1.33 s (-2.75%)
Peak PSS 290.69 MiB 256.57 MiB -34.12 MiB (-11.74%)
Peak RSS 293.66 MiB 260.49 MiB -33.18 MiB (-11.30%)
Peak threads 27 27 0 (0.00%)
Mismatched sites 0 0 0
Timeout with items 0 0 0
Category rows Base HEAD Δ
news 35 / 40 35 / 40 0
stocks 20 / 40 20 / 40 0
tech 35 / 40 35 / 40 0
sports 27 / 40 27 / 40 0
games 37 / 40 37 / 40 0
life 30 / 40 30 / 40 0

Public-site content, timing, and memory are noisy. This single A/B run reports evidence only; site outcome counts explain missing rows without treating them as a deterministic regression.

CPU and memory timelines

These are bounded 40-point views of the same complete process-tree samples used by the HTML report. CPU uses 100% per occupied logical core; memory lines are RSS first and PSS second when complete PSS samples are available.

Base

xychart-beta
    title "Base CPU"
    x-axis "Elapsed seconds" [1.036, 1.536, 2.538, 4.041, 5.043, 6.546, 8.047, 9.049, 10.55, 12.053, 13.054, 14.555, 15.557, 17.059, 18.56, 19.561, 21.064, 22.066, 23.567, 25.069, 26.072, 27.574, 28.575, 30.076, 31.578, 32.579, 34.079, 35.58, 36.582, 38.084, 39.086, 40.586, 41.086, 42.087, 43.089, 44.591, 45.592, 46.093]
    y-axis "CPU percent" 0 --> 500
    line [9.99, 125.88, 131.75, 101.81, 165.75, 181.76, 79.95, 167.76, 93.9, 99.82, 141.78, 85.78, 89.77, 159.82, 59.95, 19.98, 141.73, 83.89, 129.92, 107.91, 135.66, 105.69, 119.8, 123.8, 69.84, 135.96, 83.92, 7.99, 51.94, 125.69, 119.78, 12.01, 2, 143.78, 147.67, 89.9, 114.06, 191.67]
Loading
xychart-beta
    title "Base memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.035, 1.036, 1.536, 2.538, 4.041, 5.043, 6.546, 8.047, 9.049, 10.55, 12.053, 13.054, 14.555, 15.557, 17.059, 18.56, 19.561, 21.064, 22.066, 23.567, 25.069, 26.072, 27.574, 28.575, 30.076, 31.578, 32.579, 34.079, 35.58, 36.582, 38.084, 39.086, 40.586, 41.086, 42.087, 43.089, 44.591, 45.592, 46.093, 46.757]
    y-axis "Memory MiB" 0 --> 500
    line [12.36, 67.16, 113.77, 122.79, 128.8, 168.48, 170.26, 159.31, 185.81, 149.05, 185.88, 178.11, 172.93, 159.64, 175.54, 153.55, 159.63, 178.33, 147.1, 167.94, 293.66, 203.58, 223.48, 244.11, 158.27, 202.59, 177.3, 145.96, 151.73, 161.22, 177.64, 175.55, 159.72, 158.99, 170.07, 169.88, 161.83, 176.09, 200.82, 0]
    line [8.98, 63.49, 110.07, 119.17, 125.35, 164.82, 166.71, 155.63, 182.13, 145.45, 182.28, 174.49, 169.33, 156.04, 171.95, 150.07, 156.03, 174.44, 143.51, 164.36, 290.69, 199.98, 219.88, 240.6, 154.11, 198.76, 173.74, 142.28, 148.05, 157.65, 173.56, 171.91, 156.08, 155.35, 166.44, 164.51, 158.19, 172.47, 197.33, 0]
Loading

HEAD

xychart-beta
    title "HEAD CPU"
    x-axis "Elapsed seconds" [1.036, 1.536, 2.538, 3.539, 4.039, 4.54, 5.041, 6.543, 7.545, 9.047, 10.047, 11.548, 12.55, 14.051, 15.053, 16.556, 17.557, 19.058, 20.058, 21.56, 22.562, 24.063, 25.065, 26.568, 27.569, 29.071, 30.073, 31.575, 32.577, 34.08, 35.08, 36.581, 37.583, 39.083, 40.085, 41.585, 42.586, 44.088]
    y-axis "CPU percent" 0 --> 500
    line [10, 113.91, 123.74, 115.99, 103.98, 147.9, 171.58, 159.75, 101.86, 141.83, 81.9, 123.82, 149.77, 2, 2, 107.8, 153.84, 45.89, 124.04, 125.84, 131.8, 111.94, 117.71, 105.94, 123.93, 125.78, 143.71, 127.84, 111.8, 19.97, 66.02, 119.71, 83.92, 0, 113.81, 105.97, 117.75, 205.55]
Loading
xychart-beta
    title "HEAD memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.036, 1.036, 1.536, 2.538, 3.539, 4.039, 4.54, 5.041, 6.543, 7.545, 9.047, 10.047, 11.548, 12.55, 14.051, 15.053, 16.556, 17.557, 19.058, 20.058, 21.56, 22.562, 24.063, 25.065, 26.568, 27.569, 29.071, 30.073, 31.575, 32.577, 34.08, 35.08, 36.581, 37.583, 39.083, 40.085, 41.585, 42.586, 44.088, 44.644]
    y-axis "Memory MiB" 0 --> 500
    line [12.33, 68.05, 112.96, 118.58, 128.62, 153.59, 159.39, 167.88, 178.91, 158.4, 171.27, 162.09, 169.86, 154, 147.96, 148.93, 156.77, 144.2, 152.74, 184.99, 165.29, 144.39, 260.49, 197.1, 220.47, 237.49, 153.48, 158.15, 167.29, 160.9, 167.63, 166.08, 182.86, 194.45, 164.37, 190.99, 188.09, 165.94, 205.25, 0]
    line [9.07, 64.45, 109.35, 115.04, 124.95, 149.98, 155.8, 164.32, 175.38, 155, 167.73, 158.49, 166.2, 150.36, 144.3, 145.28, 153.11, 140.52, 149.13, 181.34, 161.63, 143.81, 256.57, 193.45, 216.83, 232.97, 149.88, 154.56, 163.2, 157.25, 163.85, 162.3, 179.08, 190.67, 160.59, 188.43, 184.31, 162.49, 201.82, 0]
Loading

Deterministic fixture · required contract

The fixture exercises 15 routes: 8 are expected to emit rows and 7 intentionally exercise empty, loading, or timeout behavior.

Metric Base HEAD Δ
Run status success success —
Extracted rows / contract 40 / 40 40 / 40 0 (0.00%)
Contract fill 100.00% 100.00% 0.00 pp (0.00%)
Sites with rows 8 / 15 8 / 15 0 (0.00%)
Sites meeting row contract 15 / 15 15 / 15 0 (0.00%)
Unexpected empty sites 0 0 0
Partial-row sites 0 0 0
Site outcomes extracted: 7; HTTP error + rows: 1; empty: 3; timeout + empty: 4 extracted: 7; HTTP error + rows: 1; empty: 3; timeout + empty: 4 —
Observed duration 19.87 s 19.85 s -0.01 s (-0.06%)
Estimated CPU 0.40 s 0.42 s +0.02 s (+4.71%)
Peak PSS 65.62 MiB 65.71 MiB +0.09 MiB (+0.13%)
Peak RSS 69.17 MiB 69.18 MiB +0.02 MiB (+0.02%)
Peak threads 18 18 0 (0.00%)
Mismatched sites 0 0 0
Timeout with items 0 0 0

Full HTML, JSON, CSV, logs, and page snapshots: workflow run and full spider-bench-results artifact.

The public-web A/B is informational. The exact HEAD fixture contract runs as a separate required CI check; timing and public-site content deltas remain non-blocking.

@github-actions

Copy link
Copy Markdown

CI Regression Report

Source CI run · source state at render: in_progress · artifacts: 6/6

Check Status Signal
Release regression ✅ HEAD/base failures 0/0; raw binary 0.00%
Frontend differential ✅ 1,020/1,020 cases matched; 0 issues
Agent episodes ✅ 8/8 Moli episodes passed; 0 failures
Runtime/CDP contracts ✅ 26 contract cases; 0 failures
CDP smoke ✅ 52/52 groups passed; 619 scenarios
WebMainBench ✅ 545/545 completed; 0 unexpected failures
Release regression — ✅ HEAD/base failures 0/0; raw binary 0.00%

Package and image size

Metric Base HEAD Delta Delta %
Raw binary 148.50 MiB 148.50 MiB 0 B 0.00%
Stripped binary 102.19 MiB 102.19 MiB 0 B 0.00%
gzip binary 50.94 MiB 50.94 MiB −2 B −0.000004%
Rootfs 155.41 MiB 155.41 MiB 0 B 0.00%
gzip rootfs 59.81 MiB 59.81 MiB −1 B −0.000002%

Startup latency and PSS

Case Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta
Serve ready 27.28 ms 27.30 ms +0.02 ms 4.75 MiB 3.47 MiB −1.28 MiB
CDP first page 50.01 ms 50.76 ms +0.75 ms 3.55 MiB 3.47 MiB −79.00 KiB
CDP warm page 12.32 ms 12.14 ms −0.18 ms 49.15 MiB 48.99 MiB −163.50 KiB
CLI about:blank 16.19 ms 14.76 ms −1.44 ms 3.89 MiB 2.41 MiB −1.48 MiB
CLI local JS 19.48 ms 18.30 ms −1.18 ms 3.39 MiB 3.58 MiB +193.50 KiB

Concurrency matrix

Concurrency Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta HEAD failures Unstable B/H
1 17.34 ms 17.60 ms +0.27 ms 631.00 KiB 675.00 KiB +44.00 KiB 0 0/0
5 20.42 ms 20.01 ms −0.41 ms 12.78 MiB 22.48 MiB +9.70 MiB 0 0/0
10 19.79 ms 21.13 ms +1.34 ms 13.38 MiB 12.80 MiB −597.00 KiB 0 0/0
25 20.38 ms 21.24 ms +0.85 ms 25.97 MiB 12.84 MiB −13.13 MiB 0 0/0
100 19.82 ms 19.84 ms +0.02 ms 26.78 MiB 22.38 MiB −4.40 MiB 0 0/0
Frontend differential — ✅ 1,020/1,020 cases matched; 0 issues
Match DOM mismatch Diagnostic mismatch Moli error Reference error Infrastructure error Mismatched frames Duration
1,020 0 0 0 0 0 0 6m 54.59s
Agent episodes · Moli vs Chromium — ✅ 8/8 Moli episodes passed; 0 failures
Fast contract Episodes Passed Assertions Ready p50 Episode p50
Moli 8 8 47/47 3.53 ms 26.32 ms
Chromium 8 8 47/47 281.17 ms 91.40 ms
Operation p50 Chromium Moli Delta Delta %
navigate 51.37 ms 5.88 ms −45.49 ms −88.55%
observe 0.84 ms 0.93 ms +0.08 ms +9.87%
fill 4.18 ms 3.61 ms −0.57 ms −13.67%
click 5.00 ms 4.49 ms −0.51 ms −10.17%
Idle-resource episode Peak RSS Peak PSS Average CPU Peak CPU Peak processes Sampler
Moli 65.02 MiB 62.38 MiB 0.76% 10.01% 1 ✅
Chromium 1281.82 MiB 411.28 MiB 2.21% 97.63% 13 ⚠️ PSS partial
Runtime and CDP session contracts — ✅ 26 contract cases; 0 failures
Suite Cases Failures Median case p50 Median case p95 Median peak PSS p50
Synthetic fetch 13 0 19.10 ms 20.14 ms 755.00 KiB
Long-lived CDP session 13 0 18.85 ms 19.45 ms —
CDP smoke — ✅ 52/52 groups passed; 619 scenarios

Workers: 4 · cumulative group time: 190.81 s · failed groups: 0

Slowest group Scenarios Duration Status
scrollbar-visibility 22 29.05 s ✅
target-lifecycle 24 17.10 s ✅
dom-input 27 13.19 s ✅
chromium-cdp 56 11.15 s ✅
multi-page 45 11.00 s ✅
WebMainBench · 545 pages — ✅ 545/545 completed; 0 unexpected failures
Completed Successful Expected DNS failure Unexpected failures Panics Crashes Timeouts Empty output
545/545 544 1 0 0 0 0 0

Frozen HTML · Linux · --wait done · 45 seconds per page · no retries. Content quality is evaluated separately.

Diagnostics: webmainbench-results — every page's Markdown, stderr, and exit status. Source run and artifacts

All artifact fields are parsed by the trusted default-branch renderer; missing or invalid inputs remain visible as unavailable.

@ldm0
ldm0 merged commit bd246f6 into main Oct 11, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants