Skip to content

Add release version preflight CI check#5530

Open
naoNao89 wants to merge 1 commit into
esp-rs:mainfrom
naoNao89:fix-release-version-preflight-ci
Open

Add release version preflight CI check#5530
naoNao89 wants to merge 1 commit into
esp-rs:mainfrom
naoNao89:fix-release-version-preflight-ci

Conversation

@naoNao89
Copy link
Copy Markdown

@naoNao89 naoNao89 commented May 6, 2026

No description provided.

@naoNao89 naoNao89 force-pushed the fix-release-version-preflight-ci branch 2 times, most recently from 377066c to 4f0ad12 Compare May 6, 2026 07:41
@naoNao89 naoNao89 marked this pull request as ready for review May 6, 2026 07:50
Copilot AI review requested due to automatic review settings May 6, 2026 07:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a release “preflight” to the xtask release execute-plan flow to prevent attempting to release crate versions that already exist on crates.io, and wires related unit tests/CI invocation.

Changes:

  • Add a crates.io version existence/yank check (ensure_versions_are_unpublished) to the release plan execution path.
  • Add unit tests for the helper that detects whether a target version exists in the crates.io versions list.
  • Enable reqwest for the xtask release feature and add a CI step that runs the related filtered tests.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
xtask/src/commands/release/execute_plan.rs Adds crates.io preflight querying + helper and unit tests.
xtask/Cargo.toml Extends release feature to include reqwest for crates.io querying.
.github/workflows/ci.yml Adds a CI step that runs the crates.io preflight-related tests.

Comment on lines +61 to +62
ensure_versions_are_unpublished(&plan)?;

Comment on lines +185 to +188
let client = reqwest::blocking::Client::builder()
.user_agent("esp-hal xtask release preflight")
.build()
.context("Failed to create crates.io client")?;
Comment thread .github/workflows/ci.yml Outdated
Comment on lines +275 to +277
- name: Check release version preflight
run: cd xtask && cargo test --features release crates_io_version

@naoNao89 naoNao89 force-pushed the fix-release-version-preflight-ci branch from 4f0ad12 to bca10ea Compare May 6, 2026 08:05
@naoNao89 naoNao89 force-pushed the fix-release-version-preflight-ci branch from bca10ea to c263888 Compare May 6, 2026 08:38
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.

2 participants