Skip to content

Maven: a present-but-unavailable artifact drops its origin files before the -U rerun (Part of #8215) - #8989

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8215-20261122T0600Z
Nov 22, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8215-20261122T0600Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

A restore-key Maven cache hit can hold the Spring Boot parent POM tagged (_remote.repositories) with another origin; Maven then reports (present, but unavailable) and asks Central again, where -U does not help under throttling. maven_exe.run_maven_retrying_resolution now deletes the _remote.repositories files of the local repo (-Dmaven.repo.local= or ~/.m2/repository) before the -U rerun when that text appears, so Maven treats the cached files as installed. The text is also an explicit resolution-failure marker.

Answer to the checklist question: a shard depends on Central for the parent only when it restored through a restore key (origin mismatch) or missed; an exact-key hit does not.

Checklist: done [c:eedd858c]

Class

Maven resolution failures that the local repository could answer. Sibling gaps: the workflows could delete _remote.repositories unconditionally after the cache restore (det-sweep.yml, cics-crucible.yml, ports-compile.yml, equivalence-e2e.yml + pin test) instead of only on failure.

Remaining slices

  • the unconditional post-restore step above (over the 5-file cap).

Tests

test_maven_resolution_retry.py, test_maven_callers_retry_8215.py, test_maven_exe_4939.py pass; ruff clean.

Lessons for agents

None.

🤖 Generated with Claude Code

…efore the -U rerun (Part of #8215)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 22, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 22, 2026 06:08
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 06:12
@squid-shepherd
squid-shepherd Bot merged commit 1cef601 into main Nov 22, 2026
62 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8215-20261122T0600Z branch November 22, 2026 06:37
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