Skip to content

fix(geometry): implement DOMPointReadOnly construction and factory - #464

Open
ldm0 wants to merge 1 commit into
mainfrom
wpt/dompoint-readonly-factory
Open

ldm0 wants to merge 1 commit into
mainfrom
wpt/dompoint-readonly-factory

Conversation

@ldm0

@ldm0 ldm0 commented Sep 9, 2026

Copy link
Copy Markdown
Member

Extract an independently mergeable topic from wpt-misc-fix at a70a96f.

Source commits:

Validation:

  • cargo fmt --all
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo nextest run --no-fail-fast

@github-actions

github-actions Bot commented Sep 9, 2026 •

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 41399710fd → HEAD 9dbff36d46; benchmark order: head-first; workflow: success.

Session resilience

Metric Base HEAD
Attempted / planned 200 / 200 200 / 200
Direct observable pass 199 / 200 199 / 200
Failures / recovered 1 / 1 1 / 1
Recovery failures 0 0
Lifecycle order violations 0 0
Network order violations 0 0
Wall time 284.9 s 290.1 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 216.9 MiB 219.8 MiB +2.9 MiB
Periodic peak PSS 213.8 MiB 216.1 MiB +2.3 MiB
RSS · first 10 avg 164.3 MiB 166.9 MiB +2.7 MiB
RSS · last 10 avg 157.1 MiB 130.1 MiB -27.1 MiB
RSS · last − first window -7.1 MiB -36.9 MiB -29.7 MiB
RSS · warm slope / 100 nav -5.2 MiB -16.4 MiB -11.2 MiB
PSS · first 10 avg 160.4 MiB 163.4 MiB +3.0 MiB
PSS · last 10 avg 153.9 MiB 127.8 MiB -26.1 MiB
PSS · last − first window -6.5 MiB -35.6 MiB -29.1 MiB
PSS · warm slope / 100 nav -5.0 MiB -15.6 MiB -10.6 MiB
Peak file descriptors 64 63 -1
Peak threads 31 31 0

HEAD memory by 50-navigation quarter

HEAD range Avg RSS Final RSS Peak RSS Avg PSS Final PSS Peak FD
1–50 161.4 MiB 150.8 MiB 214.2 MiB 157.8 MiB 147.1 MiB 52
51–100 146.1 MiB 105.8 MiB 213.1 MiB 143.5 MiB 103.6 MiB 53
101–150 139.9 MiB 136.2 MiB 188.6 MiB 137.8 MiB 133.9 MiB 54
151–200 135.6 MiB 105.8 MiB 204.7 MiB 133.4 MiB 103.5 MiB 54

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

github-actions Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Spider Bench A/B

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

Public HEAD: 179 / 240 rows; 37 / 48 sites produced rows; 11 unexpected empty sites.

✅ Deterministic fixture contract is clean.

Common ancestor 41399710fdc2 → HEAD 9dbff36d46ed; benchmark order: head-first; workflow: success.

Public 48-site run · informational

Metric Base HEAD Δ
Run status success success —
Extracted rows / contract 184 / 240 179 / 240 -5 (-2.72%)
Contract fill 76.67% 74.58% -2.09 pp (-2.73%)
Sites with rows 38 / 48 37 / 48 -1 (-2.63%)
Sites meeting row contract 36 / 48 35 / 48 -1 (-2.78%)
Unexpected empty sites 10 11 +1 (+10.00%)
Partial-row sites 2 2 0 (0.00%)
Site outcomes extracted: 37; HTTP error + rows: 1; empty: 7; HTTP error + empty: 1; snapshot error + empty: 2 extracted: 35; HTTP error + rows: 2; empty: 8; HTTP error + empty: 1; snapshot error + empty: 2 —
Observed duration 48.30 s 52.10 s +3.80 s (+7.86%)
Estimated CPU 49.48 s 44.30 s -5.18 s (-10.47%)
Peak PSS 279.76 MiB 264.46 MiB -15.30 MiB (-5.47%)
Peak RSS 283.83 MiB 269.18 MiB -14.66 MiB (-5.16%)
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 32 / 40 27 / 40 -5
games 37 / 40 37 / 40 0
life 25 / 40 25 / 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.039, 5.539, 6.541, 8.043, 9.544, 10.046, 11.046, 12.047, 13.55, 15.05, 16.05, 17.552, 19.052, 20.053, 21.555, 23.058, 24.56, 25.561, 26.062, 27.063, 28.564, 29.567, 31.068, 32.571, 33.573, 35.074, 36.577, 37.579, 39.08, 40.583, 42.084, 43.085, 44.587, 46.09, 47.09]
    y-axis "CPU percent" 0 --> 200
    line [29.99, 57.97, 123.82, 128, 145.85, 147.81, 141.62, 123.76, 189.48, 136.04, 69.92, 153.6, 107.94, 4, 119.99, 6, 37.93, 0, 43.87, 141.96, 97.84, 109.86, 137.83, 141.91, 153.55, 121.89, 159.74, 119.83, 109.94, 111.73, 21.98, 119.91, 83.98, 95.88, 57.9, 89.9, 57.85, 115.92]
Loading
xychart-beta
    title "Base memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.036, 1.036, 1.536, 2.538, 4.039, 5.539, 6.541, 8.043, 9.544, 10.046, 11.046, 12.047, 13.55, 15.05, 16.05, 17.552, 19.052, 20.053, 21.555, 23.058, 24.56, 25.561, 26.062, 27.063, 28.564, 29.567, 31.068, 32.571, 33.573, 35.074, 36.577, 37.579, 39.08, 40.583, 42.084, 43.085, 44.587, 46.09, 47.09, 48.302]
    y-axis "Memory MiB" 0 --> 500
    line [11.96, 87.55, 98.87, 114.54, 137.51, 160.93, 154.66, 158.93, 175.15, 178.21, 173.99, 164.78, 173.29, 168.41, 159.52, 153.91, 148.21, 140.5, 136.25, 151.84, 162.61, 241.61, 283.83, 207.39, 208, 163.15, 163.78, 218.42, 205.82, 150.77, 155.77, 155.03, 224.65, 240.86, 173.66, 178.99, 175.5, 152.72, 170.12, 0]
    line [8.67, 84.28, 95.15, 110.3, 133.44, 156.9, 150.56, 154.88, 171.13, 174.1, 169.95, 160.64, 169.34, 164.72, 155.37, 149.76, 144.11, 136.5, 132.13, 147.71, 158.56, 237.54, 279.76, 202.28, 203.93, 159.17, 159.68, 214.82, 201.9, 146.71, 151.71, 150.97, 220.66, 236.8, 169.67, 175.16, 171.45, 148.6, 166.38, 0]
Loading

HEAD

xychart-beta
    title "HEAD CPU"
    x-axis "Elapsed seconds" [1.537, 2.54, 3.04, 4.543, 5.544, 6.045, 7.045, 8.547, 10.048, 11.55, 13.054, 14.558, 16.063, 17.566, 19.067, 20.068, 21.569, 23.074, 24.58, 25.582, 26.082, 27.587, 29.089, 30.591, 32.093, 33.094, 34.597, 36.102, 37.605, 39.107, 40.606, 42.111, 43.615, 45.118, 46.12, 47.621, 49.124, 50.624]
    y-axis "CPU percent" 0 --> 500
    line [117.94, 119.65, 133.9, 91.81, 193.98, 113.82, 153.96, 115.87, 123.69, 137.71, 123.47, 105.91, 0, 83.89, 70.02, 7.99, 101.85, 87.52, 114.1, 103.84, 102.04, 107.85, 127.89, 117.83, 107.88, 69.95, 19.95, 71.59, 79.84, 153.94, 66.08, 0, 2, 0, 85.96, 13.97, 107.86, 133.97]
Loading
xychart-beta
    title "HEAD memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.036, 1.537, 2.54, 3.04, 4.543, 5.544, 6.045, 7.045, 8.547, 10.048, 11.55, 13.054, 14.558, 16.063, 17.566, 19.067, 20.068, 21.569, 23.074, 24.58, 25.582, 26.082, 27.587, 29.089, 30.591, 32.093, 33.094, 34.597, 36.102, 37.605, 39.107, 40.606, 42.111, 43.615, 45.118, 46.12, 47.621, 49.124, 50.624, 52.099]
    y-axis "Memory MiB" 0 --> 500
    line [12.07, 107.46, 110.81, 123.53, 149.49, 154.68, 168.1, 161.63, 154.41, 190.83, 167.98, 179.75, 170.88, 157.16, 146.77, 143.84, 145.68, 160.39, 157.82, 151.5, 269.18, 206.48, 202.06, 164.45, 174.44, 173.61, 146.38, 144.3, 148.52, 149.77, 241.62, 188.97, 155.14, 153.54, 153.54, 173.79, 151.86, 153.57, 162.2, 0]
    line [8.35, 103.45, 106.79, 119.52, 145.21, 150.7, 163.92, 157.49, 150.26, 186.74, 163.86, 175.6, 166.77, 153, 142.65, 139.74, 141.53, 156.64, 153.6, 147.39, 264.46, 201.93, 197.9, 160.19, 170.28, 169.46, 142.23, 140.33, 144.37, 145.62, 238.16, 184.83, 150.99, 149.38, 149.38, 169.65, 147.68, 149.43, 158.21, 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.89 s 19.90 s +0.01 s (+0.03%)
Estimated CPU 0.44 s 0.42 s -0.02 s (-4.54%)
Peak PSS 57.61 MiB 57.73 MiB +0.12 MiB (+0.21%)
Peak RSS 61.16 MiB 61.41 MiB +0.25 MiB (+0.41%)
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

github-actions Bot commented Sep 9, 2026 •

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.003494%
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 ✅ 50/50 groups passed; 574 scenarios
WebMainBench ✅ 545/545 completed; 0 unexpected failures
Release regression — ✅ HEAD/base failures 0/0; raw binary +0.003494%

Package and image size

Metric Base HEAD Delta Delta %
Raw binary 146.52 MiB 146.53 MiB +5.24 KiB +0.003494%
Stripped binary 100.55 MiB 100.56 MiB +4.00 KiB +0.003885%
gzip binary 50.16 MiB 50.16 MiB +908 B +0.001726%
Rootfs 153.43 MiB 153.43 MiB 0 B 0.00%
gzip rootfs 58.94 MiB 58.94 MiB +1.13 KiB +0.001864%

Startup latency and PSS

Case Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta
Serve ready 27.17 ms 27.15 ms −0.03 ms 4.10 MiB 4.15 MiB +53.00 KiB
CDP first page 50.78 ms 50.85 ms +0.07 ms 4.63 MiB 3.47 MiB −1.16 MiB
CDP warm page 13.46 ms 13.31 ms −0.16 ms 48.39 MiB 48.19 MiB −198.00 KiB
CLI about:blank 14.63 ms 14.59 ms −0.04 ms 3.77 MiB 2.50 MiB −1.27 MiB
CLI local JS 18.44 ms 18.12 ms −0.32 ms 3.67 MiB 3.27 MiB −407.00 KiB

Concurrency matrix

Concurrency Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta HEAD failures Unstable B/H
1 17.28 ms 17.49 ms +0.21 ms 576.00 KiB 573.00 KiB −3.00 KiB 0 0/0
5 19.74 ms 19.90 ms +0.17 ms 26.36 MiB 13.49 MiB −12.88 MiB 0 0/0
10 21.89 ms 22.45 ms +0.55 ms 15.18 MiB 7.92 MiB −7.26 MiB 0 0/0
25 20.82 ms 21.98 ms +1.16 ms 12.46 MiB 12.57 MiB +105.50 KiB 0 0/0
100 20.23 ms 20.07 ms −0.16 ms 15.26 MiB 11.88 MiB −3.38 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 31.34s
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.43 ms 25.42 ms
Chromium 8 8 47/47 250.63 ms 85.02 ms
Operation p50 Chromium Moli Delta Delta %
navigate 41.00 ms 6.89 ms −34.11 ms −83.20%
observe 0.96 ms 0.84 ms −0.12 ms −12.80%
fill 4.06 ms 3.35 ms −0.71 ms −17.43%
click 5.00 ms 4.16 ms −0.83 ms −16.65%
Idle-resource episode Peak RSS Peak PSS Average CPU Peak CPU Peak processes Sampler
Moli 63.68 MiB 61.91 MiB 0.66% 10.00% 1 ✅
Chromium 1273.86 MiB 408.24 MiB 1.87% 88.15% 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 17.39 ms 18.13 ms 616.00 KiB
Long-lived CDP session 13 0 19.06 ms 19.43 ms —
CDP smoke — ✅ 50/50 groups passed; 574 scenarios

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

Slowest group Scenarios Duration Status
target-lifecycle 24 17.73 s ✅
dom-input 27 13.43 s ✅
multi-page 45 12.26 s ✅
chromium-cdp 56 11.10 s ✅
layout-screenshot 5 8.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 force-pushed the wpt/dompoint-readonly-factory branch from 16565b9 to b222e3d Compare September 26, 2026 23:14
Extract an independently mergeable topic from wpt-misc-fix at
a70a96f.

Source commits:
- 092303b
- cfebe74

Validation:
- cargo fmt --all
- cargo clippy --workspace --all-targets --all-features -- -D warnings
- cargo nextest run --no-fail-fast
@ldm0
ldm0 force-pushed the wpt/dompoint-readonly-factory branch from b222e3d to 9dbff36 Compare September 26, 2026 23:45
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.

1 participant