Skip to content

CI: Mainframe Ground Truth timeout cap + rerun classifier (Part of #5137) - #5141

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5137-20261014T1751Z
Oct 14, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5137-20261014T1751Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5137.

Cause table (failed first attempts, logs pulled via gh api, 2026-10-13..14)

Attempt Cause Evidence
MGT 38575753829, 38573649485, 38556221859, 38552861560, 38505338221 (attempt 1) timing: job hit timeout-minutes: 20 cancelled in the pytest step at 20m15s, pytest at 99-100% (not hung). Gate step 4.1 min vs 2.1-3.2 on passing reruns; pytest 15+ min vs 8.5-12.
Det Sweep 38559150273, db2 3/4 network/registry docker run timed out reaching icr.io. Head 11:48Z predates #5097 (bounded pull_image retry): already fixed at source.
Det Sweep 38559150273, det genuine code (PR's own ratchet) not a flake

Not individually classified: the other 11 MGT runs with a rerun and 8 of 9 Det Sweep reruns (attempt 1 was cancelled / no failed job in the query).

Generated Java compile bimodality is not cache hit vs miss: base-generation restore is 0-2 s and the dependency restore 1-3 s on every job. It is "generated Java unchanged" (build skipped, zopeneditor ~45 s) vs changed (full build, carddemo 390-460 s). dsf spends 200-440 s in the unchanged-check itself.

Fixes

  • mainframe-ground-truth.yml (two one-line hunks, away from the tested-tree gates): ground-truth timeout-minutes 20 -> 35 (the cause is internal runner-speed variance, so headroom, not a retry), and --durations=25 on the pytest line so the next slow run names its tests.
  • tests/tools/ci_rerun_stats.py + tests: classifier (timeout / db2_start / ratchet / other) and reruns per day.
  • Det Sweep: no change.

Measuring reruns/day

python tests/tools/ci_rerun_stats.py mainframe-ground-truth.yml det-sweep.yml --since YYYY-MM-DD --timeout ground-truth=35. Baseline 10-13..14: 13 MGT + 9 Det Sweep re-run attempts; re-measure a week after merge.

Sibling gaps

dsf unchanged-check 200-440 s; MGT gate step takes 2-4 min though the header says under a minute.

Gates: pr_gates.py --fast 6/6; ruff/mypy audits clean; new tests + test_ci_retry pass with plain pytest from /tmp. No parser change, no golden bless.

🤖 Generated with Claude Code

… ci_rerun_stats.py measures reruns/day (Part of #5137)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 14, 2026 18:05
@squid-protocol
squid-protocol enabled auto-merge (squash) October 14, 2026 18:06
@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:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Oct 14, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5141 @ 836b8d0: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38612211259/job/116040808683
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Hosted Compute Agent
Version: 20261012.601
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {d7404ec4-2562-4bc6-8bd7-dd7d9bdb41b2}
Region: eastus
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261012.334.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
##[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 (tested-tree skip: $SKIP)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && test "$SKIP" = "true"; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP: false
##[endgroup]
full-suite parts: failure (tested-tree skip: false)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38612211259/job/116018406587
repro: python -m pytest -q tests/tools/test_det_sweep_balance.py::test_a_rerun_shard_overwrites_its_sweep_json_and_merges_without_a_duplicate
failing tests: tests/tools/test_det_sweep_balance.py::test_a_rerun_shard_overwrites_its_sweep_json_and_merges_without_a_duplicate
errors:
fail-on-cache-miss: false
FAILED tests/tools/test_det_sweep_balance.py::test_a_rerun_shard_overwrites_its_sweep_json_and_merges_without_a_duplicate - Failed: DID NOT RAISE ValueError
##[error]Process completed with exit code 1.
log tail:
XFAIL tests/extraction/languages/test_zig.py::test_zig_args_invalid[// fn (a: i32, b: i32)] - Known limitation: No block shielding for args inside comments
XFAIL tests/extraction/languages/test_jcl.py::test_jcl_func_start_invalid[//SYSUDUMP DD DATA,DLM=$$\n//BAD EXEC PGM=X\n$$] - Known limitation: No block shielding for instream data in JCL
XFAIL tests/extraction/languages/test_jcl.py::test_jcl_class_start_invalid[//SYSIN DD \n//FAKE JOB 1\n/] - Known limitation: No block shielding for instream data in JCL
XPASS tests/extraction/languages/test_jcl.py::test_jcl_args_valid["//STEP1 EXEC PGM=PROG,PARM='THIS STRI"...len102-1d86da8b-"'THIS STRING CONTINUES "...len72-7c3fedb5] - Known limitation: Engine cannot parse JCL line con
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid[//DD DATA \n INCLUDE MEMBER=NOPE \n/*] - Known limitation: No block shielding for instream data in JCL
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid['//STEP1 EXEC PGM=PROG1 THIS COMMENT CO'...len69-d3e393cd] - Known limitation: Inline comments aren't stripped before dependency capture
FAILED tests/tools/test_det_sweep_balance.py::test_a_rerun_shard_overwrites_its_sweep_json_and_merges_without_a_duplicate - Failed: DID NOT RAISE ValueError
1 failed, 9704 passed, 22 skipped, 8 xfailed, 3 xpassed, 2 warnings in 1110.75s (0:18:30)
##[error]Process completed with exit code 1.
##[group]Run python tests/tools/evidence_report.py --deltas --live >> "$GITHUB_STEP_SUMMARY"
python tests/tools/evidence_report.py --deltas --live >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
EVIDENCE_REPORT_ADVISORY: 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
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/4d923c11-024e-4d96-bbac-3d72fe567599' 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

@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:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 14, 2026
@squid-protocol squid-protocol added 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 shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 14, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@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