Skip to content

fix(bench): restore Lynx stage profile smoke - #293

Merged
Huxpro merged 2 commits into
new-lynxfrom
fix/lynx-stage-profile-smoke-255
Sep 6, 2026
Merged

Huxpro merged 2 commits into
new-lynxfrom
fix/lynx-stage-profile-smoke-255

Conversation

@Huxpro

@Huxpro Huxpro commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes #255 after #292 landed the pure stage-contract half.

  • repair stages/run.mjs against the current first-screen profile contract (render / publish / capture / announce) and delete the retired, never-assigned staged-host fields
  • fail CPU-profile smoke closed when the critical applier walk bucket disappears or the per-reading median unnamed share exceeds 40%
  • drive both the real profiled FCP path and three Chromium CPU-profile readings in the current-head browser CI lane

The reproduced failure was profile bundle omitted stage profiling marker firstScreenPrepareMs. That marker existed only in an injected TypeScript interface and was erased; if the preflight were merely relaxed, the analyzer would silently read the missing fields as zero. This change follows the runtime's actual phase markers instead.

The local Chromium smoke completed at 1,000 rows. Its control/profile FCP readings (212.8/212.5 ms) are deliberately non-reportable smoke values, not a performance claim. The three-read CPU smoke retained applier walk at 8.744 ms median and measured a 31.98% median unnamed share under the frozen 40% ceiling.

Validation

  • pnpm format:check
  • pnpm typecheck
  • pnpm test
  • targeted tests:
    • pnpm --dir benchmarks/lynx-table test:stages (218/218)
    • pnpm ci:workflow:test (111/111)
    • pnpm format:files:check
    • pnpm typecheck:files (no changed file belongs to a TypeScript project)
    • pnpm sync
    • node stages/run.mjs --smoke --rows 1000 --fcp-only --allow-busy-host --output-tag issue255-fixed
    • node stages/mts-profile.mjs --rows 1000 --reps 3 --cells octane-profile --allow-busy-host --label issue255-coverage --max-unmatched-share 0.4

Risk / follow-ups

The 40% ceiling is an instrument-health gate, not an optimization target. It is intentionally above the 27.6–32.0% local medians observed on current code and below the 41.4% drift from #255. Reportable performance runs remain ungated by this smoke-only option and must retain their full raw evidence.

No changeset: this changes benchmark instrumentation and CI only, not a published package.

Provenance

  • An agent produced this diff (agent-authored)

@Huxpro
Huxpro marked this pull request as ready for review September 6, 2026 22:09
@Huxpro
Huxpro merged commit e82160f into new-lynx Sep 6, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant