Exit with exit code 0 when there is no change to make - #7519
Conversation
Exit code 1 was emitted when there was no activation found because the caller used to be responsible for creating the branches, but that's not the case anymore
4656928 to
ff01066
Compare
|
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ff0106692e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # Exit with status 1 if no updates were made | ||
| if not has_updates: | ||
| sys.exit(1) | ||
| print("No update were made") |
There was a problem hiding this comment.
Update no-change fixtures to use the zero exit code
When the test_the_test suite runs, this contract change breaks the existing nightly tests: test_no_change_activation_is_success and test_failures_are_repeated_at_the_tail still simulate a no-update invocation with returncode=1. Since activate_library() now treats every nonzero status as an activation failure, the former returns 1 instead of its asserted 0 and the latter records an unexpected Ruby failure. Update those canned results and comments to use status 0 with this behavior change.
Useful? React with 👍 / 👎.
|
Exit code 1 was emitted when there was no activation found because the caller used to be responsible for creating the branches, but that's not the case anymore
Motivation
Changes
Workflow
🚀 Once your PR is reviewed and the CI green, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
tests/ormanifests/is modified ? I have the approval from R&P teambuild-XXX-imagelabel is present