Skip to content

Update corpus driver fixtures for shape statistics preflight - #334

Merged
284km merged 2 commits into
mainfrom
codex-rails1-ci-shape-stat-fixtures
Nov 26, 2026
Merged

284km merged 2 commits into
mainfrom
codex-rails1-ci-shape-stat-fixtures

Conversation

@284km

@284km 284km commented Nov 26, 2026

Copy link
Copy Markdown
Owner

The corpus preflight now requires sh_cls_var/sh_cls_cap statistics and the IV-door source guard. Its two driver-test fixtures did not provide them, so unittest-harness and runtime-load-path CI stopped before exercising their intended checks.

Update the synthetic interpreters to answer the new probe, add the IV-door stub beside existing guard stubs, and account for the additional invocation. The load-path test checks that the statistics probe receives the same library ordering; new negative controls verify that either missing statistics row or either row exceeding 300 stops the driver before reference corpus execution.

Compared with main 8e757236; measured source f4751983e8f98a6f427b3ef11ad24426491ab302. The diff is the two Python check files and these records. Runtime/corpus inputs have no delta. Clean Ruby 4.0.10 through tools/ref_ruby.sh, revision a704b7cd95a42cc0cf5f307137bf3aac0285b915, no extras, Prism 1.8.2. Ordinary O2 compiler 9dec2ff6, mgz 661a01d8.

  • Corpus --both: 973/973 hash ON/OFF; VM: 973 VM / 0 fallback / 0 differences.
  • Nine source gates including IV-door, bracket check and default hygiene pass. Explicit changed-record hygiene checked separately.
  • Related driver checks run in three alternating before/after pairs, 600 s / 2 GiB bounds, without limits. Before failures reproduce the reported baseline CI problem; after runs pass.
Check Main tests / failures Candidate tests / failures
tools/runtime_load_path_check.py 6 / 2 8 / 0
unittest/harness_check.py 21 / 2 21 / 0

Peak process-family RSS, KiB, all three samples:

Check Main Candidate
tools/runtime_load_path_check.py 44592 / 37792 / 39008 39712 / 37312 / 38848
unittest/harness_check.py 44576 / 45152 / 45232 44112 / 45104 / 44928

Samples vary; no memory improvement is claimed. These are driver fixtures, so the related checks above take the place of a CRuby/Rails test selection. Digests, UTC times and the full paired results are in unittest/records/ci-shape-stat-fixtures.json.

@284km 284km left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of 8a29f72d. No findings.

This repairs the two driver-fixture checks that #322's new run_corpus.sh preflight (the sh_cls_var / sh_cls_cap row bound and iv_door_check.sh) left stopping early. The synthetic interpreters now answer the MERE_RUBY_STORE_STATS=1 probe, the IV-door stub sits beside the other guard stubs, and the run count goes from 5 to 6. The new negative controls (a missing row, a row at 301) check the exact messages run_corpus.sh prints (holds no row keys / holds 301 keys) and that the reference pass never starts. Only test files change; there is no runtime delta.

@284km
284km merged commit d4414ac into main Nov 26, 2026
5 of 19 checks passed
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