Skip to content

release: send a User-Agent when checking crates.io - #1335

Merged
zackees merged 1 commit into
mainfrom
fix/crates-visible-user-agent
Oct 26, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/crates-visible-user-agent

Conversation

@zackees

@zackees zackees commented Oct 26, 2026

Copy link
Copy Markdown
Owner

crates.io returns 403 to curl without a User-Agent, so the publish job's crate_visible() never skipped an already-published crate. The 4.10.17 release (run 40286276477) uploaded running-process-protocol, then hit sparse-index lag on platform-internal; each rerun then failed on 'already uploaded'. With the UA the check returns 200 and reruns resume where they stopped.

crates.io returns 403 to curl's bare request, so crate_visible() was
always false. Harmless while every publish succeeded in one pass, but the
4.10.17 release hit index lag after uploading running-process-protocol,
and every rerun then retried that upload and failed on 'already
uploaded' instead of skipping it and carrying on.

Local-Gate: v1 tree=b7f10623d7fa0f525f4abf5a9ff5ed1d03eedd27 secs=920 lanes=linux-quick:run
Ci-Attestation: {"at":1793003350,"gate":"rust/all/fmt","host":"linux-x86_64","key":"9333f40c104b7ee571714f3cdb1178efb3dae84255b313d307648e7026efcd27","lane":"linux-quick","parents":["e5ca3ffab0956cac4149322868623345fd624860"],"secs":920,"stamp":"46e24b3e231e8ad77b8bdb3ba5b65dda","tree":"b7f10623d7fa0f525f4abf5a9ff5ed1d03eedd27","v":1,"via":"run"}
Ci-Attestation: {"at":1793003350,"gate":"python/all/static","host":"linux-x86_64","key":"9333f40c104b7ee571714f3cdb1178efb3dae84255b313d307648e7026efcd27","lane":"linux-quick","parents":["e5ca3ffab0956cac4149322868623345fd624860"],"secs":920,"stamp":"b5fcf6da3c713e739b61ecdddf7db959","tree":"b7f10623d7fa0f525f4abf5a9ff5ed1d03eedd27","v":1,"via":"run"}
Ci-Attestation: {"at":1793003350,"gate":"rust/x86_64-unknown-linux-gnu/check","host":"linux-x86_64","key":"9333f40c104b7ee571714f3cdb1178efb3dae84255b313d307648e7026efcd27","lane":"linux-quick","parents":["e5ca3ffab0956cac4149322868623345fd624860"],"secs":920,"stamp":"91ddf0ce6d884bc0bfcc52a3597de080","tree":"b7f10623d7fa0f525f4abf5a9ff5ed1d03eedd27","v":1,"via":"run"}
Ci-Attestation: {"at":1793003350,"gate":"rust/x86_64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"9333f40c104b7ee571714f3cdb1178efb3dae84255b313d307648e7026efcd27","lane":"linux-quick","parents":["e5ca3ffab0956cac4149322868623345fd624860"],"secs":920,"stamp":"8a104bbc3a36866dcad73d66abd8ead2","tree":"b7f10623d7fa0f525f4abf5a9ff5ed1d03eedd27","v":1,"via":"run"}
Ci-Attestation: {"at":1793003350,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"9333f40c104b7ee571714f3cdb1178efb3dae84255b313d307648e7026efcd27","lane":"linux-quick","parents":["e5ca3ffab0956cac4149322868623345fd624860"],"secs":920,"stamp":"44a33653a7648df973f7997278b8bc71","tree":"b7f10623d7fa0f525f4abf5a9ff5ed1d03eedd27","v":1,"via":"run"}
Ci-Attestation: {"at":1793003350,"gate":"python/linux-x64/test","host":"linux-x86_64","key":"9333f40c104b7ee571714f3cdb1178efb3dae84255b313d307648e7026efcd27","lane":"linux-quick","parents":["e5ca3ffab0956cac4149322868623345fd624860"],"secs":920,"stamp":"71e2380b219edc0e7bfa974ab05396be","tree":"b7f10623d7fa0f525f4abf5a9ff5ed1d03eedd27","v":1,"via":"run"}
Ci-Attestation: {"at":1793003350,"gate":"general/linux-x64/perf","host":"linux-x86_64","key":"9333f40c104b7ee571714f3cdb1178efb3dae84255b313d307648e7026efcd27","lane":"linux-quick","parents":["e5ca3ffab0956cac4149322868623345fd624860"],"secs":920,"stamp":"db0c18331a411d8c333033a696ed6993","tree":"b7f10623d7fa0f525f4abf5a9ff5ed1d03eedd27","v":1,"via":"run"}
@zackees
zackees merged commit 2623b25 into main Oct 26, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant