Skip to content

Conversation

@Alenar
Copy link
Collaborator

@Alenar Alenar commented Dec 9, 2025

Content

This PR includes a fix for the mechanism that avoid crates publication when a crate version is already published.

The retrieval of the remote version on crates.io api was failing. To request their api they ask for an user agent in order to have a contact point if needed, if missing the request is rejected.

More details on the fixed failure here.

Pre-submit checklist

  • Branch
    • Commit sequence broadly makes sense
    • Key commits have useful messages
  • PR
    • All check jobs of the CI have succeeded
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested
  • Documentation
    • No new TODOs introduced

Issue(s)

Closes #2824

- add missing user agent when requesting crates.io api for the latest
published version of a crate.

Explaination:
The retrieval of the remote version on crates.io api was failing.

To request their api they ask for an user agent in order to have a
contact point if needed, if missing the request is rejected.
@Alenar Alenar requested a review from jpraynaud December 9, 2025 18:27
@Alenar Alenar self-assigned this Dec 9, 2025
@Alenar Alenar added bug ⚠️ Something isn't working CI/CD 🏭 CI/CD labels Dec 9, 2025
Copy link
Member

@jpraynaud jpraynaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Test Results

    4 files  ±0    172 suites  ±0   23m 7s ⏱️ -43s
2 271 tests ±0  2 271 ✅ ±0  0 💤 ±0  0 ❌ ±0 
7 125 runs  ±0  7 125 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 5c690e7. ± Comparison against base commit 5c5e30d.

@Alenar Alenar temporarily deployed to testing-preview December 9, 2025 18:38 — with GitHub Actions Inactive
@Alenar Alenar merged commit 3afd04e into main Dec 10, 2025
61 checks passed
@Alenar Alenar deleted the djo/2824/ci/publish-crate-should-not-fail-if-already-published branch December 10, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug ⚠️ Something isn't working CI/CD 🏭 CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crates publication fails if one crate is already published

3 participants