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

[cmd] Remove some deprecated flags. #3823

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

bruntib
Copy link
Contributor

@bruntib bruntib commented Jan 20, 2023

Some flags are removed from the code base that are deprecated for a while.
Also, the deprecation of --ctu-reanalyze-on-failure is undone, because it will not be deprecated in the near future, probably.

@bruntib bruntib added the CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands label Jan 20, 2023
@bruntib bruntib added this to the release 6.22.0 milestone Jan 20, 2023
@@ -530,7 +530,7 @@ def add_arguments_to_parser(parser):
action='store_true',
dest='ctu_reanalyze_on_failure',
default=argparse.SUPPRESS,
help="DEPRECATED. The flag will be removed. "
help="The flag will be removed. "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the full line be removed:?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, it's a nice catch. I fixed it.

@@ -478,7 +478,7 @@ def add_arguments_to_parser(parser):
action='store_true',
dest='ctu_reanalyze_on_failure',
default=argparse.SUPPRESS,
help="DEPRECATED. The flag will be removed. "
help="The flag will be removed. "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the full line be removed:?

@@ -325,16 +325,6 @@ def check_run_names(client, check_names):


def check_deprecated_arg_usage(args):
if 'suppressed' in args:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this suppressed param already a no-op?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it was not used. --review-status is used instead.

Some flags are removed from the code base that are deprecated for a
while.
Also, the deprecation of --ctu-reanalyze-on-failure is undone, because
it will not be deprecated in the near future, probably.
Copy link
Collaborator

@vodorok vodorok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bruntib bruntib merged commit 096400b into Ericsson:master Jan 26, 2023
@bruntib bruntib deleted the deprecated_flags branch January 26, 2023 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants