Skip to content

fix(indexeddb): finish upgrade opens after transaction completion - #427

Open
ldm0 wants to merge 2 commits into
fix/svg-create-rectfrom
fix/indexeddb-upgrade-order
Open

fix(indexeddb): finish upgrade opens after transaction completion#427
ldm0 wants to merge 2 commits into
fix/svg-create-rectfrom
fix/indexeddb-upgrade-order

Conversation

@ldm0

@ldm0 ldm0 commented Sep 7, 2026

Copy link
Copy Markdown
Member

Dependency / merge order

Stacked on #426 (fix/svg-create-rect) so this PR contains exactly one IndexedDB commit. The dependency is the combined SVG-gated application-startup smoke, not the IndexedDB implementation. Merge #426 first, then rebase this commit onto main and retarget this PR; if #426 is squash-merged, do not merge the old SVG commit a second time.

Summary

  • Keep the exact open request attached to the upgrade transaction until accepted requests and their microtasks finish.
  • Publish open success/error in a separate task after transaction completion; cover abort rollback and a connection closed before result delivery.
  • Preserve FIFO among waiting open/delete requests for the same database and remove eager/duplicate lifecycle paths.
  • Preserve task-boundary, migration, microtask, rollback, deletion-order, and combined application-startup regressions. The standalone SVGRect contract lives in fix(svg): expose detached SVGRect values #426.

Validation

  • Local: cargo fmt --all and git diff --check passed.
  • Per request, Clippy, nextest, and runtime smoke are left to CI; they were not rerun locally for this split.

ldm0 added 2 commits September 8, 2026 04:30
Implement SVGSVGElement.createSVGRect with the native SVGRect prototype, restricted float fields and receiver validation. Cover the interface and JSXGraph capability-detection contract with a Chromium-calibrated fixture.
Retain the exact open request until normal transaction request draining and checkpoint deactivation complete. Publish open success or error in a separate task, handle aborted/closed provisional connections, and preserve FIFO among waiting open/delete requests.

Remove eager upgrade-completion and duplicate blocked-request dispatch paths. Update selected-task boundary regressions and add Chromium-calibrated CDP coverage for migration, microtasks, rollback, deletion order and SVG-gated application startup.
@github-actions

github-actions Bot commented Sep 7, 2026

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 cd7afb65aadb → HEAD a7938ba45382; 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 45.65 s 40.95 s -4.70 s (-10.30%)
Estimated CPU 47.71 s 39.59 s -8.13 s (-17.03%)
Peak PSS 244.59 MiB 218.14 MiB -26.45 MiB (-10.81%)
Peak RSS 248.34 MiB 221.83 MiB -26.51 MiB (-10.67%)
Peak threads 26 26 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.038, 1.538, 2.54, 3.542, 4.043, 5.044, 6.046, 6.547, 7.548, 9.049, 10.049, 11.551, 13.052, 14.054, 15.556, 16.557, 18.06, 19.063, 20.563, 21.564, 23.067, 24.569, 25.571, 27.074, 28.075, 29.577, 30.579, 32.081, 33.082, 34.583, 36.086, 37.086, 38.588, 39.588, 41.088, 42.091, 43.592, 44.594]
    y-axis "CPU percent" 0 --> 500
    line [39.89, 125.86, 127.82, 127.75, 129.82, 233.7, 239.35, 149.72, 176, 113.97, 191.86, 73.98, 143.73, 129.93, 1.99, 93.98, 101.89, 17.96, 121.99, 55.95, 113.91, 105.79, 145.74, 95.71, 145.86, 123.85, 17.96, 79.82, 19.99, 97.9, 119.91, 137.9, 19.98, 4, 133.93, 141.68, 91.91, 113.71]
Loading
xychart-beta
    title "Base memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.036, 1.038, 1.538, 2.54, 3.542, 4.043, 5.044, 6.046, 6.547, 7.548, 9.049, 10.049, 11.551, 13.052, 14.054, 15.556, 16.557, 18.06, 19.063, 20.563, 21.564, 23.067, 24.569, 25.571, 27.074, 28.075, 29.577, 30.579, 32.081, 33.082, 34.583, 36.086, 37.086, 38.588, 39.588, 41.088, 42.091, 43.592, 44.594, 45.646]
    y-axis "Memory MiB" 0 --> 500
    line [12.23, 88.42, 105.08, 114.32, 137.69, 134.61, 166.84, 160.11, 177.51, 156.05, 157.95, 181.68, 162.91, 164.35, 155.11, 131.18, 141.57, 151.24, 146.65, 168.93, 151.73, 160.89, 191.29, 194.05, 170.46, 175.25, 184.31, 150.68, 146.12, 154.56, 169.32, 248.34, 175.61, 158.23, 148.93, 162.28, 156.73, 157.85, 173.97, 0]
    line [8.97, 84.86, 101.48, 110.7, 134.1, 130.93, 163.26, 156.56, 171.26, 153.07, 154.29, 178.04, 159.24, 161.08, 151.8, 127.52, 137.93, 147.38, 142.96, 165.56, 148.02, 157.1, 187.65, 190.4, 166.71, 170.13, 180.57, 146.93, 142.38, 150.81, 165.56, 244.59, 171.88, 154.48, 145.18, 158.54, 151.72, 154.1, 170.32, 0]
Loading

HEAD

xychart-beta
    title "HEAD CPU"
    x-axis "Elapsed seconds" [1.035, 2.036, 2.536, 3.036, 3.537, 4.538, 5.538, 7.042, 8.043, 9.044, 10.547, 11.547, 12.547, 13.549, 15.051, 16.052, 17.054, 18.055, 19.557, 20.559, 21.559, 23.061, 24.061, 25.063, 26.065, 27.567, 28.569, 29.571, 31.072, 32.073, 33.073, 34.074, 35.575, 36.578, 37.579, 38.08, 38.581, 40.082]
    y-axis "CPU percent" 0 --> 200
    line [59.86, 117.84, 130.02, 98.01, 107.82, 163.91, 163.96, 105.79, 185.64, 99.99, 151.93, 125.96, 105.99, 95.82, 44.01, 49.91, 15.97, 0, 75.94, 105.75, 109.96, 129.64, 65.98, 141.78, 131.81, 17.97, 77.94, 113.75, 67.98, 101.84, 96.04, 19.98, 0, 127.69, 109.9, 187.76, 19.95, 119.97]
Loading
xychart-beta
    title "HEAD memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.034, 1.035, 2.036, 2.536, 3.036, 3.537, 4.538, 5.538, 7.042, 8.043, 9.044, 10.547, 11.547, 12.547, 13.549, 15.051, 16.052, 17.054, 18.055, 19.557, 20.559, 21.559, 23.061, 24.061, 25.063, 26.065, 27.567, 28.569, 29.571, 31.072, 32.073, 33.073, 34.074, 35.575, 36.578, 37.579, 38.08, 38.581, 40.082, 40.946]
    y-axis "Memory MiB" 0 --> 500
    line [12.3, 90.97, 112.4, 134.36, 134.51, 147.01, 167.29, 168.49, 154.57, 193.09, 164.04, 168.9, 158.78, 154.62, 164.09, 148.3, 142.78, 141.17, 137.37, 150.81, 163.98, 189.7, 160.96, 162.4, 164.07, 176.54, 151.75, 160.38, 154.75, 160.53, 221.83, 197.98, 166.22, 158.1, 197.06, 175.42, 162.89, 161.34, 176.32, 0]
    line [9.08, 87.24, 108.35, 130.66, 130.8, 143.28, 163.5, 164.79, 151.03, 188.75, 160.32, 165.13, 155.02, 150.86, 160.33, 144.54, 139.02, 137.44, 133.61, 146.67, 155.9, 185.92, 157.21, 158.65, 160.32, 172.88, 148.11, 156.66, 151.09, 156.06, 218.14, 194.23, 162.48, 154.36, 195.83, 171.71, 159.14, 157.6, 172.52, 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.88 s 19.87 s -0.01 s (-0.03%)
Estimated CPU 0.43 s 0.43 s 0.00 s (0.00%)
Peak PSS 57.85 MiB 57.62 MiB -0.24 MiB (-0.41%)
Peak RSS 61.56 MiB 61.27 MiB -0.29 MiB (-0.46%)
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 7, 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 cd7afb65aa → HEAD a7938ba453; benchmark order: base-first; workflow: success.

Session resilience

Metric Base HEAD
Attempted / planned 200 / 200 200 / 200
Direct observable pass 200 / 200 200 / 200
Failures / recovered 0 / 0 0 / 0
Recovery failures 0 0
Lifecycle order violations 0 0
Network order violations 0 0
Wall time 327.0 s 407.0 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 207.7 MiB 207.6 MiB -0.1 MiB
Periodic peak PSS 204.2 MiB 203.5 MiB -0.6 MiB
RSS · first 10 avg 164.4 MiB 164.1 MiB -0.3 MiB
RSS · last 10 avg 162.5 MiB 123.3 MiB -39.2 MiB
RSS · last − first window -1.9 MiB -40.8 MiB -38.9 MiB
RSS · warm slope / 100 nav +2.9 MiB -24.7 MiB -27.6 MiB
PSS · first 10 avg 160.6 MiB 160.7 MiB +0.1 MiB
PSS · last 10 avg 159.0 MiB 120.8 MiB -38.2 MiB
PSS · last − first window -1.6 MiB -39.9 MiB -38.3 MiB
PSS · warm slope / 100 nav +3.0 MiB -23.5 MiB -26.5 MiB
Peak file descriptors 59 59 0
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 158.0 MiB 149.6 MiB 207.6 MiB 154.1 MiB 145.5 MiB 54
51–100 157.8 MiB 143.5 MiB 194.9 MiB 154.0 MiB 140.4 MiB 49
101–150 145.2 MiB 114.2 MiB 172.8 MiB 142.2 MiB 111.8 MiB 50
151–200 125.6 MiB 109.8 MiB 171.7 MiB 123.1 MiB 107.2 MiB 50

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 7, 2026

Copy link
Copy Markdown

CI Regression Report

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

Check Status Signal
Release regression HEAD/base failures 0/0; raw binary −0.002809%
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 45/45 groups passed; 462 scenarios
Release regression — ✅ HEAD/base failures 0/0; raw binary −0.002809%

Package and image size

Metric Base HEAD Delta Delta %
Raw binary 149.12 MiB 149.12 MiB −4.29 KiB −0.002809%
Stripped binary 103.38 MiB 103.38 MiB −4.00 KiB −0.003778%
gzip binary 50.17 MiB 50.17 MiB −1.02 KiB −0.001985%
Rootfs 156.03 MiB 156.03 MiB 0 B 0.00%
gzip rootfs 58.99 MiB 58.99 MiB +363 B +0.000587%

Startup latency and PSS

Case Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta
Serve ready 27.06 ms 27.27 ms +0.22 ms 3.54 MiB 4.43 MiB +906.50 KiB
CDP first page 50.51 ms 50.59 ms +0.09 ms 4.17 MiB 3.23 MiB −959.00 KiB
CDP warm page 13.52 ms 13.67 ms +0.15 ms 48.85 MiB 48.74 MiB −110.00 KiB
CLI about:blank 13.99 ms 14.11 ms +0.13 ms 2.37 MiB 2.58 MiB +212.00 KiB
CLI local JS 17.61 ms 17.94 ms +0.33 ms 3.45 MiB 4.52 MiB +1.06 MiB

Concurrency matrix

Concurrency Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta HEAD failures Unstable B/H
1 16.45 ms 17.87 ms +1.42 ms 715.00 KiB 460.00 KiB −255.00 KiB 0 0/0
5 19.35 ms 21.98 ms +2.64 ms 13.60 MiB 12.06 MiB −1.54 MiB 0 0/0
10 21.97 ms 26.93 ms +4.96 ms 11.60 MiB 10.93 MiB −685.50 KiB 0 0/0
25 21.19 ms 27.16 ms +5.98 ms 12.00 MiB 9.19 MiB −2.81 MiB 0 0/0
100 24.14 ms 35.43 ms +11.29 ms 10.83 MiB 3.96 MiB −6.87 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 35.15s
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 4.24 ms 33.83 ms
Chromium 8 8 47/47 394.65 ms 126.42 ms
Operation p50 Chromium Moli Delta Delta %
navigate 55.50 ms 9.80 ms −45.70 ms −82.34%
observe 3.25 ms 1.16 ms −2.08 ms −64.17%
fill 5.90 ms 3.90 ms −2.00 ms −33.85%
click 13.05 ms 4.25 ms −8.80 ms −67.43%
Idle-resource episode Peak RSS Peak PSS Average CPU Peak CPU Peak processes Sampler
Moli 63.37 MiB 60.30 MiB 0.79% 20.03% 1
Chromium 1308.83 MiB 355.71 MiB 2.26% 87.82% 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 16.89 ms 17.66 ms 619.00 KiB
Long-lived CDP session 13 0 19.53 ms 20.37 ms
CDP smoke — ✅ 45/45 groups passed; 462 scenarios

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

Slowest group Scenarios Duration Status
chromium-cdp 56 12.41 s
multi-page 45 10.73 s
dom-input 26 10.48 s
layout-screenshot 5 7.70 s
core 35 7.16 s

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

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