Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return non-0 exit code when failing to enable an experimental feature flag (backport #12066) #12067

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Aug 20, 2024

This is a follow-up to #11998. The main change is to return a non-zero exit code for rabbitmqctl enable_feature_flag <expermental-flag>. When enabling khepri_db locally I wasn't 100% sure rabbitmqctl didn't attempt to enable the flag regardless (i.e. the message seemed more like a warning) and I thought a non-zero exit code and the error text would make it more obvious.

Also included are a typo fix and unit tests for the --experimental flag, one for all and another for a given experimental feature flag name.


This is an automatic backport of pull request #12066 done by Mergify.

With the prior behavior it can be unclear whether the text was a warning
and the feature flag was enabled anyways. We can use a non-zero exit
code and the `{:error, code, text}` return value to make it clear that
the flag wasn't enabled.

(cherry picked from commit dc611dd)
@the-mikedavis the-mikedavis merged commit 4b6345c into v4.0.x Aug 20, 2024
195 checks passed
@the-mikedavis the-mikedavis deleted the mergify/bp/v4.0.x/pr-12066 branch August 20, 2024 23:04
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.

1 participant