Skip to content

CI: a cached Maven miss earns the -U rerun; a rerun det shard's artifact replaces the failed attempt's (Part of #8215) - #8216

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
ci/maven-cached-miss-retry
Nov 10, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
ci/maven-cached-miss-retry

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Part of #8215

What

maven_exe.run_maven_retrying_resolution (#7561) reruns a build once with -U when Maven could not fetch a dependency. Its markers missed Maven's text for a miss it cached earlier in the same local repository ("... was not found in during a previous attempt. This failure was cached in the local repository and resolution is not reattempted ..."). So after one Central miss, every later build of the job failed with no retry.

Seen in Det Sweep run 42721961353 (PR #8198), shard 6/6: the first build missed spring-boot-starter-parent:pom:3.2.4 on Central (retried once, still no answer), the other 29 got the cached-miss text and were not retried: det: 0/30 proven. The other 11 shards passed on the same restored cache.

  • tests/tools/maven_exe.py: the marker This failure was cached in the local repository. -U is what makes Maven ask again.
  • tests/tools/test_maven_resolution_retry.py: the real log line is told as a resolution failure and reruns with -U.

Second cause from the same run (#8215 item 3): a Db2 shard that fails before its sweep still uploads det-sweep-db2-N with only timing.json. After gh run rerun --failed (what the shepherd's infra retry runs) the run held two artifacts of that name, the det job downloaded the first attempt's, and every case of the shard that had just passed read no result (its shard did not report).

  • .github/workflows/det-sweep.yml: overwrite: true on the four per-shard uploads (results and logs, both lanes), so a rerun's artifact replaces the failed attempt's.

Class

Class: Maven resolution-failure wordings that earn the one retry. Members: "Could not find artifact", "Could not transfer artifact", "Connection reset", "Read timed out" (present), the cached-miss text (this PR). Compile and test failures still run once.

Evidence

pytest tests/tools/test_maven_resolution_retry.py tests/cobol_mainframe/test_java_subprocess_utf8.py: 55 passed. pr_gates.py --fast: 9/9 gates pass. No proof run: no case, harness output or translator code changes.

Not tested: overwrite: true replacing an artifact of an earlier attempt of the same run. upload-artifact documents it as deleting a same-name artifact before the upload; the first infra rerun of a det shard after this merges shows whether it holds across attempts (one det-sweep-db2-N per shard in the run).

Not in this PR

The other items of #8215: the aggregate showing why a case is NOT PROVEN when the Java side never built, the reconcile cron, and the same artifact shape in evidence-refresh.yml and cics-crucible.yml.

Lessons for agents

A det shard that proves 0 of N in a few minutes with empty reasons is not a translator failure: read det-sweep-logs-<n>/<case>/proof/java/maven.log from the run's artifacts before treating the red as real. A failed-jobs-only rerun reruns only the aggregate on the same shard results; rerun the whole run.

Cross-repo: none.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits November 10, 2026 05:37
One Central miss on a shared local repository made Maven answer every later build of the job with its cached-miss
text, which matched no resolution marker, so none was retried: det sweep run 42721961353 lost shard 6/6 (0 of 30).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
…rt of #8215)

A Db2 shard that fails before its sweep still uploads timing.json as det-sweep-db2-N. After gh run rerun --failed
the run held two artifacts of that name and the det job took the first attempt's (no sweep.json): every case of a
shard that had passed read 'no result (its shard did not report)' (run 42721961353, attempt 4).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@squid-protocol squid-protocol changed the title Maven retry: a cached miss earns the -U rerun too (Part of #8215) CI: a cached Maven miss earns the -U rerun; a rerun det shard's artifact replaces the failed attempt's (Part of #8215) Nov 10, 2026
@squid-protocol
squid-protocol marked this pull request as ready for review November 10, 2026 12:32
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 10, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 10, 2026 12:34
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit 668e303 into main Nov 10, 2026
80 checks passed
@squid-shepherd
squid-shepherd Bot deleted the ci/maven-cached-miss-retry branch November 10, 2026 13:14
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