Skip to content

trial.py verify --rebuild-oracle: oracle Dockerfile rebuilds to the pinned oracle (Part of #8322) - #8337

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8322-20261112T0256Z
Nov 12, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8322-20261112T0256Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8322.

Checklist: partial [c:0dcec64c] -- ticket regeneration at the frozen engine 5e4575d77 is not done.

What

trial.py verify trial-001 (#8336) already passes all its checks. This adds the missing one: --rebuild-oracle builds
tests/equivalence/gnucobol.Dockerfile fresh (--no-cache) to a scratch tag, fingerprints it, requires it to match the
pin and the local gitgalaxy-gnucobol:3 on cobc and package version, and always removes the tag. Opt-in (docker + network);
default verify stays read-only. Files: trial.py, equivalence_oracle.py (rebuild), test_trials.py, the prereg doc line.

Facts checked

  • Real run: verify trial-001 --rebuild-oracle -> all 8 checks ok (rules hash 23338a4462cb, declaration hash, cobc 3.1.2.0, gnucobol3 3.1.2-5+b1 reproduced); scratch tag removed.
  • pytest tests/cobol_mainframe/test_trials.py -k "verify or rebuild": 6 passed; audit_check.py: all clear.

Class sweep

Class: every fact a trial's freeze pins must be re-checkable mechanically. Done: commits, ticket source, rules hash,
declaration hash, oracle pin (#8336), oracle rebuild (here).

Sibling gaps

  • Ticket regeneration at the frozen engine (scan -> refract -> cobol-to-java, target h2): all 28 eligible burned programs; needs a frozen-engine checkout (sweep scope).

Lessons for agents

  • python is not on PATH in a fresh worker shell: export the selfscan venv bin first in every Bash call.

🤖 Generated with Claude Code

…he pinned oracle (Part of #8322)

Opt-in: builds gnucobol.Dockerfile with no cache to a scratch tag, fingerprints it, checks it against
the pin and the local gitgalaxy-gnucobol:3 (cobc, package version), always removes the tag.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 12, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 12, 2026 03:01
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 12, 2026 03:01
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 12, 2026 03:08
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8337 @ 3d7cbf5: 1 failed check(s)

== ground-truth part 1/4 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/43145354425/job/130941902738
repro: python -m pytest -q tests/cobol_mainframe/test_docker_build_retry.py::test_every_docker_build_in_the_tools_goes_through_the_retry_helper
failing tests: tests/cobol_mainframe/test_docker_build_retry.py::test_every_docker_build_in_the_tools_goes_through_the_retry_helper
errors:
fail-on-cache-miss: false
E AssertionError: bare docker build, use equivalence_common.docker_build: ['tests/tools/equivalence_oracle.py:108']
tests/cobol_mainframe/test_docker_build_retry.py:110: AssertionError
FAILED tests/cobol_mainframe/test_docker_build_retry.py::test_every_docker_build_in_the_tools_goes_through_the_retry_helper - AssertionError: bare docker build, use equivalence_common.docker_build: ['tests/tools/equivalence_oracle.py:108']
##[error]Process completed with exit code 1.
log tail:
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
MAINFRAME_ENGINE_KEY: efe4768fb128fec1e49b7b8f66dd619118cdaa06b464fad7fcfa57945cbc08e2
PYTHONUTF8: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-ground-truth-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 98426
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 0d1324cde0d4bc9efce4b3dbabe8b6e3018e492f2effee41a4e2eede9bc099a4
Finalizing artifact upload
Artifact test-times-ground-truth-part-1 successfully finalized. Artifact ID 13911641656
Artifact test-times-ground-truth-part-1 has been successfully uploaded! Final size is 98426 bytes. Artifact ID is 13911641656
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/43145354425/artifacts/13911641656
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/300d54f3-4619-4a27-a682-363d0c88ba3d' 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-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 12, 2026
…8322)

The retry-helper test forbids a bare docker build in tests/tools.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 12, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (38f0b3f) 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). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 12, 2026 03:18
@squid-shepherd squid-shepherd Bot 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 labels Nov 12, 2026
@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 Nov 12, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 12, 2026 03:19
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 12, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 12, 2026 03:20
@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 12, 2026
@squid-shepherd
squid-shepherd Bot merged commit 614927d into main Nov 12, 2026
88 of 111 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8322-20261112T0256Z branch November 12, 2026 04:04
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