Skip to content

test: collect postfailure Firefox CSS animation GC references - #663

Draft
bubkoo wants to merge 4 commits into
codex/snapshot-source-css-animationsfrom
codex/css-animation-gc-reference-witness
Draft

bubkoo wants to merge 4 commits into
codex/snapshot-source-css-animationsfrom
codex/css-animation-gc-reference-witness

Conversation

@bubkoo

@bubkoo bubkoo commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

The source stage of #661 at b4d8e74568791e76045f9f0542d3abd0bd2444c9 fails both Firefox CSS-animation lifetime controls: the paired native document is collected while the captured document remains, including a disposed capture. This stacked diagnostic draft investigates those failures; it contains no production repair.

The current head 9eb1784a5ef2672271b6a6275a2c84a43f807818 runs four fixed cases sequentially on one Linux runner: original Firefox / hook off, patched Firefox / hook off, original Firefox / hook on, patched Firefox / hook on. Each case invokes the original pnpm test once in a fresh process. Time and order remain possible confounders. Test failures are retained; harness, identity or restoration failures stop the sequence. Source inputs and the original archive/source hashes are checked before and after each case.

The original assertions, three-GC request counts, skips and test deadlines remain unchanged. Postfailure observations use cached primary verdicts; later observations cannot convert a failure into a pass. Passing primary verdicts request no heap. All production sources and the standard CI workflow remain unchanged. Base must remain exact b4d8e74, with verified merge parents and production tree.

Earlier evidence is retained separately:

  • At 2be5cde, standard CI 47207558997 failed the two Firefox controls; diagnostic 47207559433 passed without requesting any heap. The runner image versions differed (20261122.9.1 and 20261129.15.1), so this comparison does not isolate observer effects.
  • At be9e2fc, diagnostic 47214315157 stopped before any test invocation: its harness tried to read an AST dictionary containing named string bindings as a literal. The uploaded nine-member ZIP is preserved (SHA256 3549d90db1095cd292f5e868c0312ce300179d66ee16c34d9259b2e733d6a000). This is a harness failure, not a four-case result.
  • Current head changes only that parser to resolve the copied installer's whitelisted literal string bindings and literal SHA values without executing code. Local controls passed: actual producer/rejected AST variants 7/7, original byte guards 4/4, original sequence controls 11/11, and static checks. Normal commit hooks passed. The three original observer tools remain byte-identical. The corrected remote run completed; results follow below.

Debugger/snapshot installation can change whether a failure reproduces; diagnostic GC/CC can change the graph. Missing targets and budget expiry mean no witness, not a repaired failure. A JavaScript deadline does not cancel native work or prove cleanup. Inspector roots are labeled. Source targets are not deliberately dereferenced, marked or held by the new registry. Original Firefox bytes must be restored before advancing; artifacts retain raw acknowledgements and cleanup state.

Current-head remote results (single attempts, retained alongside earlier failures):

  • Standard CI 47216428511 succeeded: coverage1394 passed/6 skipped, source1275 passed/6 skipped, built package168 passed. The Codecov upload step succeeded. A later exact-head readback found both independent checks successful: patch reports "Coverage not affected" and project reports "No report found to compare against". These messages do not establish an improvement or a complete base comparison. This is the diagnostic PR input graph, not a fresh pass of PR661 exact-b4.
  • One-host diagnostic 47216428371 failed with harnessComplete:true: all four intended cases invoked the original test command exactly once, with no harness errors. Coverage passed1394/6 skipped in every case. Source results in fixed order were1273 passed/2 failed,1272 passed/3 failed,1273 passed/2 failed,1273 passed/2 failed, each with6 skips. Both Firefox animation lifetime controls reported native collected/captured retained in every source case. Case2 also failed a separate Firefox SVG-fragment lifetime assertion.
  • Patched Firefox plus the enabled hook made two postfailure heap requests; both exhausted their budgets and produced no witness or snapshot file. Archive/source identity and restoration receipts are retained; no inference of a DevTools cleanup acknowledgement is made from the workflow's successful final restore step.

The diagnostic ZIP is370938 bytes,126 members, CRC verified, SHA256 035324f54daad764e3b00c1673c82cd597991be337db6c498ea7272b29720bfc. This run establishes the observed failures under these four ordered conditions, not their root cause or a product repair. No further run was triggered after the result.

@codecov

codecov Bot commented Dec 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (codex/snapshot-source-css-animations@b4d8e74). Learn more about missing BASE report.

Additional details and impacted files
@@                           Coverage Diff                           @@
##             codex/snapshot-source-css-animations     #663   +/-   ##
=======================================================================
  Coverage                                        ?   87.34%           
=======================================================================
  Files                                           ?       20           
  Lines                                           ?     2615           
  Branches                                        ?      764           
=======================================================================
  Hits                                            ?     2284           
  Misses                                          ?      135           
  Partials                                        ?      196           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
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