Test semver#22199
Closed
kosiew wants to merge 14 commits into
Closed
Conversation
- Modified `.github/workflows/breaking_changes_detector.yml`: - Replaced current semver job with an advisory PR-local check. - Introduced a new blocking latest-release check job. - Ensured both jobs retain a green status on semver breaks. - Updated latest stable tag to exclude -* tags. - Updated `.github/workflows/breaking_changes_detector_comment.yml`: - Added downloads for both artifacts. - Adjusted comment to show: - Blocking latest-release signal. - Advisory PR-local signal. - Updated label to track blocking latest-release failure only. - Added issues: documentation for label operations.
- Added `latest-release-tag` functionality to `ci/scripts/changed_crates.sh` - Implemented filtering for only stable semantic version tags and error handling for the absence of stable tags - Updated documentation for `changed_crates.sh` - Enhanced `ci/scripts/test_changed_crates.sh` with new shell tests for: - Stable tags preference over newer release candidates (RC) - Semantic version sorting - Ignoring malformed or namespaced tags - Failing on missing tags - Failing on presence of only RC tags - Updated `.github/workflows/breaking_changes_detector.yml`: - Blocking job now invokes `ci/scripts/changed_crates.sh` for `latest-release-tag` - Artifacts now include `latest_release_tag` - Consolidated duplicated install steps into a local action - Modified `.github/actions/setup-semver-check/action.yml` for shared setup of protobuf and cargo-semver checks - Improved `.github/workflows/breaking_changes_detector_comment.yml` to validate and print the `latest_release_tag`
- Updated `.github/actions/setup-semver-check/action.yml` to centralize: - Fetching PR base branch - Determining changed crates - Installing protobuf - Installing cargo-semver-checks - Added output for packages - Modified `.github/workflows/breaking_changes_detector.yml` to: - Reuse shared action for advisory and blocking jobs - Remove duplicated steps for fetching, changed crates, and installation
- Added `.github/actions/run-semver-check/action.yml` for shared semver run with log teeing and result output. - Added `.github/actions/stage-semver-artifact/action.yml` for shared artifact staging and ANSI stripping. - Updated `.github/workflows/breaking_changes_detector.yml` to use both actions in advisory/blocking jobs and removed duplicate run/stage shell blocks. - Updated `.github/workflows/breaking_changes_detector_comment.yml` by adding local bash helpers: `require_regex`, `require_result`, `write_output`, and `write_multiline_output`, while removing repeated validation/heredoc logic. - Updated `ci/scripts/test_changed_crates.sh` to add `tag_repo`, `assert_latest_release_tag_fails`, and removed duplicate negative-test setup.
- Updated .github/workflows/dev.yml to include a new job that runs ci/scripts/test_changed_crates.sh.
…patible semver-check-result uploads and retain new artifacts
This reverts commit 0b61961.
|
Thank you for opening this pull request! Reviewer note: cargo-semver-checks reported the current version number is not SemVer-compatible with the changes in this pull request (compared against the base branch). Details |
- Renamed sections for clarity: - Changed "Latest release compatibility" to "blocking" - Changed "Base branch compatibility" to "advisory" - Added an interpretation guide: - "base warns + release passes" indicates advisory unreleased API churn - "release warns + base passes" indicates blocking release-user risk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NOT FOR REVIEW
Test semver-checking