Skip to content

Skip baseline check if chip-specific baseline is not found#5519

Merged
bugadani merged 1 commit intoesp-rs:mainfrom
bugadani:skip-baseline
May 4, 2026
Merged

Skip baseline check if chip-specific baseline is not found#5519
bugadani merged 1 commit intoesp-rs:mainfrom
bugadani:skip-baseline

Conversation

@bugadani
Copy link
Copy Markdown
Contributor

@bugadani bugadani commented May 4, 2026

This should prevent the P4 PR from failing without an esp-hal baseline.

Copilot AI review requested due to automatic review settings May 4, 2026 12:05
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

This PR adjusts the xtask semver-check workflow to avoid failing when a chip-specific API baseline file isn’t available for a package whose public API varies by chip feature (e.g., esp-hal).

Changes:

  • After attempting to download baselines, skip the semver check for a specific chip when that chip’s baseline file is still missing, logging a warning instead.
  • Return ReleaseType::Patch for the skipped chip path so the overall semver-check flow can continue.

Comment thread xtask/src/semver_check.rs
Comment on lines 40 to +44
if !baseline_path_gz.exists() {
download_baselines(&workspace, vec![package])?;
}
if package.chip_features_matter() && !baseline_path_gz.exists() {
log::warn!(
@bugadani bugadani enabled auto-merge May 4, 2026 12:46
@pmnxis
Copy link
Copy Markdown
Contributor

pmnxis commented May 4, 2026

Thanks, I will tyding #5400 to latest main branch when this is merged into

@bugadani bugadani added this pull request to the merge queue May 4, 2026
Merged via the queue into esp-rs:main with commit 9e0a735 May 4, 2026
27 checks passed
@bugadani bugadani deleted the skip-baseline branch May 4, 2026 14:42
@pmnxis pmnxis mentioned this pull request May 4, 2026
6 tasks
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.

4 participants