Skip to content

ci/semver-auto: return a failure only when needed#2765

Merged
pierreprinetti merged 1 commit intogophercloud:masterfrom
EmilienM:semvermajor_rc
Sep 8, 2023
Merged

ci/semver-auto: return a failure only when needed#2765
pierreprinetti merged 1 commit intogophercloud:masterfrom
EmilienM:semvermajor_rc

Conversation

@EmilienM
Copy link
Copy Markdown
Contributor

@EmilienM EmilienM commented Sep 7, 2023

When go-apidiff returns semver=major, it returns RC=1 which causes the
workflow to return an error while we don't want that, we just want the
label to be applied.

Instead, let's ignore that error so the label can be set later and add a
step to check if an error occured and semver is not major, then it's an
actual problem that we should check in the logs (e.g. an issue when
running go-apidiff).

When go-apidiff returns semver=major, it returns RC=1 which causes the
workflow to return an error while we don't want that, we just want the
label to be applied.

Instead, let's ignore that error so the label can be set later and add a
step to check if an error occured and semver is not major, then it's an
actual problem that we should check in the logs (e.g. an issue when
running go-apidiff).
@EmilienM
Copy link
Copy Markdown
Contributor Author

EmilienM commented Sep 7, 2023

Note: this won't be backported because in v1 we don't want semver:major anyway.

@pierreprinetti pierreprinetti merged commit 9c91b44 into gophercloud:master Sep 8, 2023
@EmilienM EmilienM deleted the semvermajor_rc branch September 8, 2023 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:patch No API change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants