Skip to content

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

Closed

Description

@squid-protocol

Unbounded steps that can hang and burn a job's limit (file:line at main 7e9856e):

  1. tests/tools/cics_crucible.py ~1894 (docker run -d), ~1901 (docker exec ... bash -c script), ~1905 (docker rm -f): no timeout; a looping GnuCOBOL task hangs until cics-crucible.yml's 45-min cap.
  2. tests/tools/equivalence_common.py ~905 (docker run, the GnuCOBOL pass), tests/tools/equivalence_java.py ~489 (javac) and ~514 (java EquivalenceMain): no timeout. proof_sweep.py ~196 has timeout=3600 on its python child only, so a hung docker/java grandchild can survive (orphan).
  3. tests/tools/equivalence_db2.py ~94-106: while True waiting for a free Db2 pool slot, no deadline (job cap 90 min).
  4. tests/tools/det_survey.py ~63/85, tests/tools/mutation.py ~296/307 (mvn/javac), ~322 (Popen, no wait timeout), tests/tools/porting_loop.py ~71-72/360: no timeout.
  5. Workflows without timeout-minutes (GitHub default 360 min): publish.yml jobs (~13, 36, 75, 94, 113), mirror-tag-sync.yml ~19. evidence-refresh.yml ~718 refresh is capped at 300 min (it takes ~11).
  6. cics-crucible.yml ~126 builds the GnuCOBOL image every run with no cache: copy det-sweep.yml ~197-211's image-tar cache.

Fix. Explicit timeout= on each subprocess call (sized ~3-5x its normal time, a named constant per module), TimeoutExpired turned into the tool's existing failure path with a clear message; for docker: --stop-timeout / a wrapper so a timed-out container is removed (no orphans); Db2 pool wait: a deadline (~20 min) that raises by name; workflow caps ~1.5-2x measured; the image cache step. No behaviour change on the happy path.

Acceptance. Unit tests for at least: the Db2 deadline raises; a subprocess timeout becomes the named failure (monkeypatched); gates clean; CI green.

Evidence: pipeline audit 2026-10-11 (four read-only scouts; full reports in the orchestrator handoffs, pipeline-audit-2026-10-11/A-D). Precedent: #4899 (unicode gauntlet nested pools: 182 s -> 39 s, peak load 82.5 -> 10.5, byte-identical output), #4882 (heavy-run.sh GG_JOB_CORES), #4862/#4865 (macOS hang; pytest --timeout).

🤖 Generated with Claude Code

Activity

  1. added
    ci-cd
    enhancement
    priority: high
    on Oct 11, 2026
  2. added
    scope:infra
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ci-cdenhancementpriority: highscope:infra

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions