Repository navigation
Commit 02401f2
Make sbt Docker e2e jar fetch survive Central 403/404s (#1291)
* Retry sbt Docker e2e jar fetch on Central 404s
agent_sbt_versions_patch_in_place failed in 0.05s on PR run
37948228245 when Maven Central answered 404 for the pinned
commons-text-1.9.jar. fetch_from_central retried only transport
errors, 429 and 5xx, so a single stale CDN negative entry failed the
cell before docker run. Every URL the helper fetches is a pinned,
released artifact Central never deletes, so a 404 is the same CDN blip
sbt-warm-seed.sh already retries; treat it the same way.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CfAQ1cTuWfH3kKiCi6pPR4
* Retry sbt e2e Central fetch on 403 too; send UA
On this PR's own run (37954180751) the sbt 1.9.9 agent leg failed both
tests in 0.07s with 403 Forbidden for the pinned commons-text-1.9.jar,
while the other seven agent legs fetched the same jar fine. Like the
404, it is one runner's CDN edge rejecting a public, released artifact,
so retry it the same way. Also identify the client with a User-Agent:
reqwest sends none by default.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CfAQ1cTuWfH3kKiCi6pPR4
* Fall back to Google's Central mirror in sbt e2e
coverage-docker (sbt) on this PR (run 37957095405) got 403 Forbidden
from repo1.maven.org on all five tries in both agent tests, about 15s
of backoff each, so retrying the same edge cannot ride it out.
Alternate attempts between Central and Google's official Central mirror
and check the jar against Central's published sha1, now pinned, instead
of fetching the .sha1 from the same origin. Whichever mirror answers,
the test patches the exact released bytes.
Verified locally: a scratch test fetching through jars() passes, and
with the Central URL broken (Central answers 403) the second attempt
gets the jar from the mirror and the sha1 matches.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CfAQ1cTuWfH3kKiCi6pPR4
* Drop the custom User-Agent from the sbt e2e fetch
With the User-Agent from d63015a, every Linux agent, mill and scala-cli
leg of run 37957095379 and coverage-docker (sbt) got 403 from
repo1.maven.org on all five tries. On the commit before it, without
the header, seven of eight agent legs fetched the jar fine. The header
is the likeliest trigger, so go back to reqwest's default request; the
Google mirror fallback still covers a 403 from Central.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CfAQ1cTuWfH3kKiCi6pPR4
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 1ecb42c commit 02401f2
1 file changed
Lines changed: 47 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
68 | 80 | | |
69 | 81 | | |
70 | 82 | | |
71 | 83 | | |
72 | 84 | | |
73 | 85 | | |
74 | 86 | | |
75 | | - | |
76 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
77 | 90 | | |
78 | 91 | | |
79 | 92 | | |
80 | 93 | | |
81 | 94 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 95 | + | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
| |||
109 | 117 | | |
110 | 118 | | |
111 | 119 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
118 | 132 | | |
119 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
120 | 138 | | |
121 | | - | |
122 | | - | |
| 139 | + | |
| 140 | + | |
123 | 141 | | |
124 | | - | |
| 142 | + | |
125 | 143 | | |
126 | 144 | | |
127 | | - | |
| 145 | + | |
128 | 146 | | |
129 | 147 | | |
130 | 148 | | |
131 | 149 | | |
132 | | - | |
133 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
134 | 156 | | |
135 | 157 | | |
136 | 158 | | |
137 | 159 | | |
138 | 160 | | |
139 | | - | |
| 161 | + | |
140 | 162 | | |
141 | 163 | | |
142 | | - | |
| 164 | + | |
143 | 165 | | |
144 | 166 | | |
145 | 167 | | |
| |||
0 commit comments