Skip to content

doom-rosetta.yml: LOC-sharded zero-drift check, Universal Ctags, cached clones (Part of #5619) - #5813

Merged
squid-protocol merged 4 commits into
mainfrom
churn/5619-doom-ci-shards
Oct 21, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/5619-doom-ci-shards

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Part of #5619 (slice 3 of 4). Adds .github/workflows/doom-rosetta.yml, the CI face of #5809's pytest -m doom_rosetta.

Owner decisions

  • Queue item had allow_workflows: true: the workflow edit is owner-approved. Kept minimal: one new file, no change to existing workflows.

What it does

  • plan job: packs the 44 manifest ports into 4 shards by LOC (largest first into the lightest shard, LOC read from the golden's per-file rows). Locally: 1.667M / 1.666M / 1.669M / ~1.67M LOC per shard (total 6.67M).
  • shard matrix: sets DOOM_ROSETTA_PORTS, runs pytest -m doom_rosetta tests/doom_rosetta. Installs Universal Ctags with the same retry and Universal Ctags preflight as tri-comparison-audit.yml.
  • Clone cache per shard, keyed by hashFiles(manifest.csv) (the manifest pins every SHA). Clones live outside the checkout (DOOM_SPEEDRUN_WORK).
  • Each shard writes its wall time to the job summary; PR wall time = slowest shard. Triggers: PR on engine/golden/manifest paths (draft skipped, ci: draft PRs skip the heavy PR workflows (free-tier runner pool saturated by churn WIP pushes) #5104) and workflow_dispatch.

Evidence

  • Planner script run locally: valid matrix JSON. Two-port shard path (DOOM_ROSETTA_PORTS=fsharp-doom,fps-cob) passes locally in 6 s. Serial full run was 7m36s (DOOM-rosetta: measurements-only golden, pytest -m doom_rosetta, doom_rosetta_check.py (Part of #5619) #5809), so expect roughly 2-3 min of scanning per shard plus cold clone fetch.
  • Tree-wide guards (source reads, generated branch, sweep plan, critical-path split, workflow inputs): 136 passed.
  • NOT measured: real CI wall time (cold and cached). First run on this PR is the measurement; I did not wait on CI.

Risks

  • ctags version drift: golden holds ctags_functions/func_delta_pct/functions_agree from ctags 5.9.0; ubuntu-latest's apt ctags may differ and show as drift. If so, re-bless is wrong; pin or adjust.
  • Install uses the zero-dep legs' yaml.txt + pytest.txt; if the golden was blessed with the engines extra, drift would show.

Class

Class: opt-in corpus checks that need sharding and a CI home. Members:

Member Status Evidence
DOOM-rosetta zero-drift gate (pytest -m doom_rosetta) handled here: sharded workflow planner + 2-port shard run locally
Nightly --oracle run, artifact, diff --fail-on-regression missing, slice 4 different mechanism (schedule + artifact)
tests/doom_rosetta/README.md, doom_speedrun README refresh missing, slice 4 docs, 5-file cap

Sibling gaps

None: every member of the class is either handled here or listed under Remaining slices.

Remaining slices

4: nightly --oracle run + artifact + diff --fail-on-regression; tests/doom_rosetta/README.md; refresh tests/tools/doom_speedrun/README.md.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 21, 2026 03:00
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 03:00
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5813 @ 3fa035c: 4 failed check(s)

== full-suite part 1/3 (failure) -- main
https://github.com/squid-protocol/gitgalaxy/actions/runs/39536191015/job/119015493373
repro: fails on main too: fix main (then merge origin/main here)
failing tests: tests/core_engine/test_pipeline_pins.py::test_our_own_pipelines_are_clean[.github/workflows/doom-rosetta.yml]
errors:
fail-on-cache-miss: false
[--ai-guardrails] [--fail-on-secrets]
[--fail-on-malware]
--fail-on-secrets CI/CD Gate: Fail build if hardcoded secrets are
--fail-on-malware CI/CD Gate: Fail build if ML threat inference flags
CI/CD Gate: Fail build if any file exceeds this risk
CI/CD Gate: fail the build if any file's structural
E AssertionError: {(113, 'apt')}
tests/core_engine/test_pipeline_pins.py:368: AssertionError
FAILED tests/core_engine/test_pipeline_pins.py::test_our_own_pipelines_are_clean[.github/workflows/doom-rosetta.yml] - AssertionError: {(113, 'apt')}
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 189709
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 012e09ae6dc83fb40f1d06faa8f0fd613a43929a4248889f798f0c850d4747d2
Finalizing artifact upload
Artifact test-times-part-1 successfully finalized. Artifact ID 12318147294
Artifact test-times-part-1 has been successfully uploaded! Final size is 189709 bytes. Artifact ID is 12318147294
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39536191015/artifacts/12318147294
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/8d982179-4288-455f-9528-c91f7fba4bc4' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

== shard 1 (1669449 LOC) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39536191670/job/119014746075
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[doomsday]
errors:
fail-on-cache-miss: false
E AssertionError:
tests/doom_rosetta/test_doom_rosetta.py:40: AssertionError
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[doomsday] - AssertionError:
##[error]Process completed with exit code 1.
log tail:
summary.expected_fails_met: True -> False
summary.fails: 'language' -> 'language functions'
summary.functions_agree: 'tree-sitter' -> ''
summary.verdict: '5/6' -> '4/6'
(bless an intended change with tests/tools/doom_rosetta_check.py --update --yes)
assert not "doomsday: 4 difference(s) from the golden\n summary.expected_fails_met: True -> False\n summary.fails: 'language' -> 'language functions'\n summary.functions_agree: 'tree-sitter' -> ''\n summary.verdict: '5/6' -> '4/6'"
1 failed, 9 passed, 6 deselected in 144.45s (0:02:24)
##[error]Process completed with exit code 1.
##[group]Run s=$(( $(date +%s) - T0 ))
s=$(( $(date +%s) - T0 ))
echo "shard 1 (1669449 LOC): ${s}s" >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
DOOM_SPEEDRUN_WORK: /home/runner/work/gitgalaxy/gitgalaxy/../doom-work
DOOM_ROSETTA_PORTS: chocolate-doom,cssdoom,dartdoom,doomgeneric,doomsday,edge-classic,mood,room4doom,rust-doom,sdl-doom
T0: 1792552156
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/75d65667-ae61-4574-bfb2-c9c81c7c094f' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

== shard 2 (1666363 LOC) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39536191670/job/119014746110
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[doom-fx]
errors:
fail-on-cache-miss: false
E AssertionError:
tests/doom_rosetta/test_doom_rosetta.py:40: AssertionError
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[doom-fx] - AssertionError:
##[error]Process completed with exit code 1.
log tail:
summary.fails: '' -> 'functions'
summary.functions_agree: 'tree-sitter' -> ''
summary.verdict: 'PERFECT' -> '5/6'
exclusion convert/ConvSound1: reason 'Unsupported Format (.undeterminable)' -> 'Unresolved Ambiguity (No Retainable Structure)'
(bless an intended change with tests/tools/doom_rosetta_check.py --update --yes)
assert not "doom-fx: 5 difference(s) from the golden\n summary.expected_fails_met: True -> False\n summary.fails: '' -> 'functi... convert/ConvSound1: reason 'Unsupported Format (.undeterminable)' -> 'Unresolved Ambiguity (No Retainable S
1 failed, 10 passed, 6 deselected in 191.90s (0:03:11)
##[error]Process completed with exit code 1.
##[group]Run s=$(( $(date +%s) - T0 ))
s=$(( $(date +%s) - T0 ))
echo "shard 2 (1666363 LOC): ${s}s" >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
DOOM_SPEEDRUN_WORK: /home/runner/work/gitgalaxy/gitgalaxy/../doom-work
DOOM_ROSETTA_PORTS: agentic-cobol-doom-codex,doom-ascii,doom-fx,doom-scheme,doom3do,doomretro,fps-cob,gzdoom,mochadoom,nugget-doom,odamex
T0: 1792552302
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/813fee9a-978e-4ccd-995c-ca7e91c49455' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

== shard 4 (1666524 LOC) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39536191670/job/119014746168
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[helion]
errors:
fail-on-cache-miss: false
E AssertionError:
tests/doom_rosetta/test_doom_rosetta.py:40: AssertionError
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[helion] - AssertionError:
##[error]Process completed with exit code 1.
log tail:
summary.expected_fails_met: True -> False
summary.fails: '' -> 'functions'
summary.functions_agree: 'tree-sitter' -> ''
summary.verdict: 'PERFECT' -> '5/6'
(bless an intended change with tests/tools/doom_rosetta_check.py --update --yes)
assert not "helion: 4 difference(s) from the golden\n summary.expected_fails_met: True -> False\n summary.fails: '' -> 'functions'\n summary.functions_agree: 'tree-sitter' -> ''\n summary.verdict: 'PERFECT' -> '5/6'"
1 failed, 11 passed, 6 deselected in 178.43s (0:02:58)
##[error]Process completed with exit code 1.
##[group]Run s=$(( $(date +%s) - T0 ))
s=$(( $(date +%s) - T0 ))
echo "shard 4 (1666524 LOC): ${s}s" >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
DOOM_SPEEDRUN_WORK: /home/runner/work/gitgalaxy/gitgalaxy/../doom-work
DOOM_ROSETTA_PORTS: agentic-cobol-doom-cc,crispy-doom,doo-cr,doomf77,fastdoom,helion,inter-doom,kocoa-doom,managed-doom,prboom-plus,sqldoom,srb2
T0: 1792552304
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/414827e5-693d-4824-9bd5-8bb444f0b584' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 21, 2026
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (b481096) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 21, 2026
…(Part of #5619)

scripts/local_demo.sh functions 10 -> 12, scripts/run_with_server.sh 1 -> 2 (summary.functions 540 -> 543); the engine
change is #5812, merged into this branch from main.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 04:08
@squid-protocol
squid-protocol merged commit d2a93d9 into main Oct 21, 2026
39 checks passed
@squid-protocol
squid-protocol deleted the churn/5619-doom-ci-shards branch October 21, 2026 04:08
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant