You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI: classify MGT/det re-run causes, find the Generated Java cache-miss cause (Part of #5137, #5142) - #5184
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
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).
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.
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.
== 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shepherd:mergeMaintainer: merge when green (auto-merge, squash). Guide: docs/ci.mdshepherd:needs-fixBot: a real failure on this head; see the digest comment. Guide: docs/ci.md
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5137, #5142. The workflow fixes need
.github/workflowsedits, which this PR does not make: exact diffs are below for the owner.Cause table (failed attempts, 2026-10-13..15)
test_mutation_toolingflag order: main moved under a stale PR (#5173)test_cobolrt_rules: main moved (#5175)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
compilebimodality: confirmed cache hit vs missCache 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 showsCache 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 causesartifact_missingandtest_failure;--step NAMEprints per-run seconds of a step (for the before/after of this).For the owner (not applied):
owner-diff-5137-workflows.patchin the handoffs dirjava-compile.yml: key the same-base cache byhashFilesof the generation inputs (thepaths: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 matchingtests/tools/test_cache_keys.pyupdate (verified: 51 passed in a copy of the tree with both applied).mainframe-ground-truth.yml: header says the gate is "well under a minute"; theGate againststep 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
Gates
pr_gates.py --fast6/6 pass;pytest tests/tools/test_ci_rerun_stats.py16 passed. No golden/ratchet effect (tests/tools only).Lessons for agents
hashFileskey on a path-filtered workflow beats a commit-sha key: the sha only exists for commits that triggered the workflow.🤖 Generated with Claude Code