Skip to content

CI: classify MGT/det re-run causes, find the Generated Java cache-miss cause (Part of #5137, #5142) - #5184

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5137-20261015T1048Z
Oct 15, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5137-20261015T1048Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5137, #5142. The workflow fixes need .github/workflows edits, which this PR does not make: exact diffs are below for the owner.

Cause table (failed attempts, 2026-10-13..15)

Run Cause State
MGT 38626152509 attempts 1-3 timeout: 20 min cap hit in pytest fixed by #5141 (cap 35)
MGT 38649615774 (PR) test_mutation_tooling flag order: main moved under a stale PR (#5173) not a flake; fixed on main
MGT 38674629306 (PR) test_cobolrt_rules: main moved (#5175) not a flake, not confirmed
MGT 38663654231, 38673671124 (push) publish-history "artifact not found" fixed by #5177
Det Sweep 1 failure in last 100 runs (38674629494); not analysed open

No cause found is external, so no retries. Network/registry and Db2-start rows: none seen in the sample. Re-runs/day: before = issue body (13 MGT, 9 det in 39 h); after = python tests/tools/ci_rerun_stats.py mainframe-ground-truth.yml det-sweep.yml --since <date> a few days after #5141/#5177 (so far 3 MGT re-runs on 10-14, all the 20 min cap).

Generated Java compile bimodality: confirmed cache hit vs miss

Cache key is java-same-base-<corpus>-<PR base sha>, but the main push run is path-filtered, so only 39 of 90 main commits since 10-13 (43%) have an entry. A dsf log shows Cache not found for input keys: java-same-base-dsf-0a6f3c6d8 (a workflow-only commit); the unchanged-check then generated both sides: 321 s (dsf 300-440 s in all 5 sampled PR runs; other corpora 10-80 s).

Changes in this PR

  • ci_rerun_stats.py: new causes artifact_missing and test_failure; --step NAME prints per-run seconds of a step (for the before/after of this).
  • Tests: whole classifier input class (+ unfinished step).

For the owner (not applied): owner-diff-5137-workflows.patch in the handoffs dir

  1. java-compile.yml: key the same-base cache by hashFiles of the generation inputs (the paths: list) of the base checkout on a PR and of main's own on a push, instead of the base commit. Misses then only when those inputs changed. Plus the matching tests/tools/test_cache_keys.py update (verified: 51 passed in a copy of the tree with both applied).
  2. mainframe-ground-truth.yml: header says the gate is "well under a minute"; the Gate against step measures 2.3-4.1 min on 3 recent runs with corpora cache hits (fetch 0 s), i.e. the scan itself. Comment corrected in the patch; a faster scan is a sibling gap.

Sibling gaps

  • MGT gate step 2-4 min is the cold scan (scan cache is keyed by engine state, so every engine PR rescans): not fixed.
  • Det Sweep re-runs: only 1 failure sampled; needs a longer window.

Gates

pr_gates.py --fast 6/6 pass; pytest tests/tools/test_ci_rerun_stats.py 16 passed. No golden/ratchet effect (tests/tools only).

Lessons for agents

  • A run's hashFiles key on a path-filtered workflow beats a commit-sha key: the sha only exists for commits that triggered the workflow.
  • A rerun that "passes on the same SHA" can be main having moved under a stale PR: check which test failed against main's recent commits before calling it a flake.

🤖 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 15, 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 15, 2026 10:55
@squid-protocol
squid-protocol enabled auto-merge (squash) October 15, 2026 10:56
@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 #5184 @ 0696515: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38723660577/job/116390763881
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Hosted Compute Agent
Version: 20261002.596
Commit: c3d12f3313a95f25162a1503be624f3b0617f8c0
Build Date: 2026-10-02T22:28:27Z
Worker ID: {14669f8d-e937-4560-bc8b-3899793d1e68}
Region: eastus
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 (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:
##[endgroup]
full-suite parts: failure (tested-tree skip: )
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 1/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38723660577/job/116384114233
repro: python -m pytest -q tests
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
FAIL tests/cobol_mainframe/test_det_translate.py::test_det_cics_moves_ts_bytes_between_pages_strictly: 10.0s is over 10s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
FAIL tests/cobol_mainframe/test_det_translate.py::test_det_runtime_passes_opaque_commarea_bytes_on: 10.2s is over 10s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
##[error]Process completed with exit code 1.
log tail:
SKIPPED [3] tests/cobol_mainframe/test_pointer_commarea_4270.py:192: needs Docker and a JDK 17 (JAVA_HOME / JDK_17)
SKIPPED [2] tests/cobol_mainframe/test_link_commarea_bytes_4806.py:115: needs Docker (GnuCOBOL) and a JDK + Maven
SKIPPED [19] tests/cobol_mainframe/test_det_nondigit_zoned.py:490: needs Docker (EQUIVALENCE_E2E=1)
SKIPPED [3] tests/cobol_mainframe/test_link_xctl_commarea_4816.py:149: needs Docker (GnuCOBOL) and a JDK + Maven
3978 passed, 577 skipped, 1 warning in 973.96s (0:16:13)
##[group]Run python tests/tools/time_ratchet.py check --times "$RUNNER_TEMP/times-part-1.json"
python tests/tools/time_ratchet.py check --times "$RUNNER_TEMP/times-part-1.json"
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]
FAIL tests/cobol_mainframe/test_det_translate.py::test_det_cics_moves_ts_bytes_between_pages_strictly: 10.0s is over 10s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
FAIL tests/cobol_mainframe/test_det_translate.py::test_det_runtime_passes_opaque_commarea_bytes_on: 10.2s is over 10s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
4555 tests checked, 2 over the per-test limit
##[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/707fc1a6-bcb9-45b8-8486-117b67bbe917' 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:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 15, 2026
@squid-protocol
squid-protocol merged commit 928ce59 into main Oct 15, 2026
61 of 64 checks passed
@squid-protocol
squid-protocol deleted the churn/5137-20261015T1048Z branch October 15, 2026 11:31
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 shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant