Repository navigation
DOOM-rosetta: measurements-only golden, pytest -m doom_rosetta, doom_rosetta_check.py (Part of #5619) - #5809
Merged
Merged
Conversation
…rosetta_check.py (Part of #5619) Manifest moves to tests/doom_rosetta/manifest.csv with an expected_fails column. Golden under tests/golden_doom_rosetta/<port>.json.gz (measurements and function-tuple hashes, no names, no third-party code). Opt-in zero-drift test, bless tool and a local diagnose mode. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 21, 2026 02:24
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 21, 2026 02:24
Contributor
|
|
||
| import argparse | ||
| import contextlib | ||
| import csv |
This was referenced Oct 21, 2026
doom-rosetta.yml: LOC-sharded zero-drift check, Universal Ctags, cached clones (Part of #5619)
#5813
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5619 (slice 2 of 4; slice 1 = #5717).
What
tests/doom_rosetta/manifest.csv(class and license kept) with a newexpected_failscolumn: doom-ios and doomsdaylanguage(the.h-beside-.mcaveat), cssdoom and sqldoomfunctions(JavaScript counts above ctags and tree-sitter, 4.7% / 11.4% over ctags; unresolved, no claim made about which count is right).tests/golden_doom_rosetta/<port>.json.gz, 44 licensed ports, 552 KB total (gzip, mtime 0 so a re-bless is byte-identical;*.jsonis git-ignored, so.json.gzrather than a whitelist line). Measurements only: the six-check row, SARIF counts by rule and level, per first-party file language / LOC / function and class counts / hash of sorted(name, start_line, loc, complexity)tuples (no names), and the exclusion path + reason table. No third-party code.pytest -m doom_rosetta: clones fetched at the manifest SHA (never committed), rescans every time (no reuse keyed by engine SHA), diffs against the golden and names port, file and field.DOOM_ROSETTA_PORTS=a,bnarrows the run (for slice 3's shards). The test skips itself unless the marker expression selects it, becausesmoke-test.ymlreplacesaddoptswith its own-mand would otherwise run it in the full suite.tests/tools/doom_rosetta_check.py [--only ..] [--update --yes] [--diagnose PORT [--file PATH]]: check, bless with scope report, and a local diagnose mode that prints the real function names of a drifted file.Evidence
ok, zero drift (default worker count,GITGALAXY_DISABLE_GIT_HISTORY=1). Serial wall on the owner's box: 7m36s for all 44 ports (a CI shard time is slice 3's measurement).func_startanchor made to reject lines starting withstatic, reverted):pytest -m doom_rosettaon linuxdoom and gore passes. Plainpytestfrom an unrelated directory collects and runs the fast tests.pr_gates.py --fast7/7.expected_failsabove.Owner decisions
Owner OK (2026-10-19): add/edit workflows only if needed (workflow itself is slice 3; do not add doom-rosetta.yml here). No workflow was needed or edited in this slice.
Cross-repo
None. Licensing: licensed ports only in the manifest and golden; one removed port set is not named (see #5717).
Remaining slices
doom-rosetta.yml, matrix-sharded by LOC (reads the manifest,DOOM_ROSETTA_PORTS, caches clones keyed byhashFilesof the manifest, installs Universal Ctags), PR wall time and runner-minutes in the body.--oracle(ctags + tree-sitter), clean-scan table artifact,diff --fail-on-regression.tests/doom_rosetta/README.md(how to bless, add a port, policy) and refreshingtests/tools/doom_speedrun/README.md, which still says the manifest sits beside it (kept out of this PR by the hand-written-file cap).Lessons for agents
-minsmoke-test.ymlreplaces pyprojectaddopts, so an opt-in marker must also self-skip in the test (or every-moverride in the workflows must repeat the exclusion).*.jsonis git-ignored repo-wide; a committed generated data file is cheapest as.json.gz, no whitelist line needed.🤖 Generated with Claude Code