Skip to content

feat(emulation): comprehensive Emulation support - #534

Open
ldm0 wants to merge 17 commits into
mainfrom
emulation
Open

feat(emulation): comprehensive Emulation support#534
ldm0 wants to merge 17 commits into
mainfrom
emulation

Conversation

@ldm0

@ldm0 ldm0 commented Sep 13, 2026

Copy link
Copy Markdown
Member

No description provided.

Close retired mailboxes and cancel their generations under the registry lock, then release callback captures after unlocking. Publish environment invalidations through the registry while retaining only notifiers that need waking.

Cover callback destruction during unregister and replacement, lock-free owner wake, and delayed wake after teardown. Validated with cargo fmt --all, all-target all-feature Clippy, 52 related tests over 5 stress iterations, and the complete Nextest suite (17505 passed, 13 skipped).
@github-actions

github-actions Bot commented Sep 13, 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 92737248a663 → HEAD 8d157e4f4414; benchmark order: head-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: 37; HTTP error + rows: 1; empty: 7; HTTP error + empty: 1; snapshot error + empty: 2 extracted: 36; HTTP error + rows: 2; empty: 7; HTTP error + empty: 1; snapshot error + empty: 2
Observed duration 59.42 s 66.68 s +7.27 s (+12.23%)
Estimated CPU 44.73 s 43.61 s -1.13 s (-2.51%)
Peak PSS 206.29 MiB 194.32 MiB -11.97 MiB (-5.80%)
Peak RSS 209.14 MiB 198.85 MiB -10.30 MiB (-4.92%)
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.536, 3.539, 5.04, 6.541, 8.043, 8.544, 10.045, 11.548, 13.051, 15.055, 16.558, 18.06, 18.561, 20.061, 21.562, 23.064, 25.068, 26.569, 28.07, 30.074, 31.577, 33.079, 34.582, 36.585, 38.086, 39.588, 41.589, 43.091, 44.592, 46.596, 48.098, 49.6, 51.102, 53.106, 54.608, 55.609, 56.11, 58.112]
    y-axis "CPU percent" 0 --> 500
    line [127.89, 131.8, 157.95, 173.51, 0, 9.97, 0, 7.98, 0, 0, 95.9, 139.92, 193.79, 127.97, 129.96, 137.91, 5.99, 20, 2, 3.99, 79.85, 15.96, 3.99, 127.99, 127.97, 109.74, 101.96, 71.8, 125.92, 17.96, 81.83, 10, 133.72, 15.98, 95.94, 119.9, 129.78, 125.67]
Loading
xychart-beta
    title "Base memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.034, 1.536, 3.539, 5.04, 6.541, 8.043, 8.544, 10.045, 11.548, 13.051, 15.055, 16.558, 18.06, 18.561, 20.061, 21.562, 23.064, 25.068, 26.569, 28.07, 30.074, 31.577, 33.079, 34.582, 36.585, 38.086, 39.588, 41.589, 43.091, 44.592, 46.596, 48.098, 49.6, 51.102, 53.106, 54.608, 55.609, 56.11, 58.112, 59.418]
    y-axis "Memory MiB" 0 --> 500
    line [12.07, 105.93, 136.28, 155.73, 160.43, 160.63, 159.57, 159.57, 159.57, 159.57, 159.55, 167.91, 188.27, 178.19, 160.4, 177.35, 169.2, 154.55, 138.54, 137.26, 139.58, 155.1, 148.08, 141.33, 170.73, 155.89, 188.87, 204.91, 162.88, 189.44, 147.13, 144.39, 148.44, 168.14, 174.64, 173.38, 209.14, 167.12, 170.78, 0]
    line [8.99, 102.54, 133.87, 152.35, 157.13, 157.24, 156.18, 156.18, 156.18, 156.18, 156.17, 164.53, 184.53, 174.69, 157.02, 173.91, 164.94, 151.2, 135.1, 133.83, 136.19, 151.51, 144.49, 137.74, 167.3, 152.33, 185.29, 201.32, 159.29, 184.23, 143.54, 140.82, 144.85, 164.54, 171.06, 169.79, 206.29, 163.42, 167.24, 0]
Loading

HEAD

xychart-beta
    title "HEAD CPU"
    x-axis "Elapsed seconds" [1.535, 2.037, 4.038, 5.539, 7.542, 9.545, 11.548, 13.55, 15.554, 17.056, 19.06, 21.064, 23.068, 25.072, 27.076, 28.579, 30.583, 32.587, 34.59, 36.592, 38.592, 40.092, 42.093, 44.097, 46.1, 48.103, 48.605, 50.107, 51.609, 53.612, 55.614, 57.617, 59.619, 61.621, 62.622, 63.123, 65.125, 66.126]
    y-axis "CPU percent" 0 --> 500
    line [123.92, 101.72, 128, 167.82, 169.91, 185.81, 69.94, 109.88, 0, 29.94, 3.99, 3.99, 2, 3.99, 3.99, 0, 0, 2, 0, 6, 0, 51.98, 18, 101.81, 127.73, 111.9, 117.74, 65.84, 111.89, 19.99, 81.85, 121.89, 85.9, 77.91, 123.8, 139.81, 123.87, 211.74]
Loading
xychart-beta
    title "HEAD memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.035, 1.535, 2.037, 4.038, 5.539, 7.542, 9.545, 11.548, 13.55, 15.554, 17.056, 19.06, 21.064, 23.068, 25.072, 27.076, 28.579, 30.583, 32.587, 34.59, 36.592, 38.592, 40.092, 42.093, 44.097, 46.1, 48.103, 48.605, 50.107, 51.609, 53.612, 55.614, 57.617, 59.619, 61.621, 62.622, 63.123, 65.125, 66.126, 66.683]
    y-axis "Memory MiB" 0 --> 500
    line [11.83, 106.82, 112.45, 136.65, 181, 172.18, 160.71, 181.93, 174.23, 150.05, 136.58, 137.75, 136.7, 136.7, 136.76, 136.9, 137.13, 137.76, 137.7, 137.93, 140.45, 139.13, 148.08, 147.39, 158.8, 158.05, 177.6, 198.85, 155.66, 158.73, 145.03, 149.02, 189.19, 181.07, 169.3, 198.59, 166.75, 169.62, 197.45, 0]
    line [8.65, 103.31, 108.89, 133.06, 176.5, 168.56, 157.29, 178.5, 171.34, 146.56, 133.23, 134.4, 133.36, 133.36, 133.42, 133.56, 133.81, 134.44, 134.38, 134.61, 137.13, 135.81, 144.78, 143.85, 155.83, 154.59, 174.15, 194.27, 152.24, 155.27, 141.57, 145.56, 185.65, 177.6, 165.84, 194.32, 163.29, 166.16, 194.06, 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.00 s (+0.01%)
Estimated CPU 0.41 s 0.41 s 0.00 s (0.00%)
Peak PSS 57.53 MiB 58.59 MiB +1.06 MiB (+1.85%)
Peak RSS 60.87 MiB 61.86 MiB +0.99 MiB (+1.63%)
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 13, 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 92737248a6 → HEAD 8d157e4f44; benchmark order: head-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 283.0 s 287.7 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.1 MiB 211.0 MiB -5.2 MiB
Periodic peak PSS 212.5 MiB 207.7 MiB -4.8 MiB
RSS · first 10 avg 154.2 MiB 157.8 MiB +3.6 MiB
RSS · last 10 avg 164.7 MiB 166.7 MiB +2.0 MiB
RSS · last − first window +10.5 MiB +8.8 MiB -1.7 MiB
RSS · warm slope / 100 nav +0.5 MiB +2.5 MiB +2.0 MiB
PSS · first 10 avg 150.7 MiB 154.5 MiB +3.9 MiB
PSS · last 10 avg 161.8 MiB 163.3 MiB +1.5 MiB
PSS · last − first window +11.1 MiB +8.8 MiB -2.4 MiB
PSS · warm slope / 100 nav +1.0 MiB +2.4 MiB +1.4 MiB
Peak file descriptors 61 61 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 161.6 MiB 151.3 MiB 201.7 MiB 158.4 MiB 148.3 MiB 52
51–100 163.7 MiB 147.1 MiB 205.2 MiB 160.4 MiB 143.8 MiB 52
101–150 165.1 MiB 150.0 MiB 205.3 MiB 161.7 MiB 146.6 MiB 52
151–200 166.8 MiB 145.0 MiB 206.5 MiB 163.4 MiB 141.5 MiB 52

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 13, 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.022487%
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 47/48 groups passed; 509 scenarios
Release regression — ✅ HEAD/base failures 0/0; raw binary −0.022487%

Package and image size

Metric Base HEAD Delta Delta %
Raw binary 149.35 MiB 149.32 MiB −34.39 KiB −0.022487%
Stripped binary 103.68 MiB 103.65 MiB −32.00 KiB −0.030141%
gzip binary 50.25 MiB 50.25 MiB −8.62 KiB −0.016751%
Rootfs 156.26 MiB 156.22 MiB −40.00 KiB −0.024998%
gzip rootfs 59.08 MiB 59.07 MiB −16.37 KiB −0.027060%

Startup latency and PSS

Case Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta
Serve ready 27.41 ms 27.12 ms −0.28 ms 3.88 MiB 3.72 MiB −162.50 KiB
CDP first page 51.53 ms 49.55 ms −1.98 ms 3.83 MiB 3.70 MiB −134.50 KiB
CDP warm page 13.42 ms 12.68 ms −0.74 ms 48.43 MiB 49.79 MiB +1.36 MiB
CLI about:blank 14.24 ms 14.00 ms −0.24 ms 2.74 MiB 3.59 MiB +865.00 KiB
CLI local JS 16.96 ms 18.21 ms +1.25 ms 3.98 MiB 3.72 MiB −267.00 KiB

Concurrency matrix

Concurrency Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta HEAD failures Unstable B/H
1 16.32 ms 16.02 ms −0.29 ms 699.00 KiB 663.00 KiB −36.00 KiB 0 0/0
5 19.82 ms 18.95 ms −0.87 ms 12.68 MiB 16.79 MiB +4.10 MiB 0 0/0
10 18.94 ms 18.93 ms −0.01 ms 22.21 MiB 14.90 MiB −7.31 MiB 0 0/0
25 20.66 ms 19.51 ms −1.14 ms 27.54 MiB 13.81 MiB −13.73 MiB 0 0/0
100 19.10 ms 19.41 ms +0.31 ms 26.67 MiB 13.99 MiB −12.68 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 23.85s
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 2.96 ms 25.26 ms
Chromium 8 8 47/47 257.83 ms 85.92 ms
Operation p50 Chromium Moli Delta Delta %
navigate 41.14 ms 6.68 ms −34.46 ms −83.76%
observe 0.85 ms 0.84 ms −0.00 ms −0.49%
fill 3.70 ms 2.98 ms −0.71 ms −19.23%
click 5.58 ms 3.70 ms −1.88 ms −33.67%
Idle-resource episode Peak RSS Peak PSS Average CPU Peak CPU Peak processes Sampler
Moli 64.34 MiB 62.53 MiB 0.64% 10.01% 1
Chromium 1287.18 MiB 412.60 MiB 1.84% 88.09% 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.83 ms 18.94 ms 792.00 KiB
Long-lived CDP session 13 0 19.19 ms 19.42 ms
CDP smoke — ❌ 47/48 groups passed; 509 scenarios

Workers: 4 · cumulative group time: 149.53 s · failed groups: 1

Slowest group Scenarios Duration Status
target-lifecycle 24 18.27 s
multi-page 45 11.69 s
dom-input 27 11.51 s
layout-screenshot 5 7.63 s
core 35 7.22 s

Failed groups

  • chromium-cdpfailed · Traceback (most recent call last): File "/__w/moli/moli/moli-cdp-smoke/moli_cdp_smoke/runner.py", line 709, in async_main await run_smoke(endpoint, fixtur

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