From 89114370385f40615cbf869f31d0d9e4a85c69fe Mon Sep 17 00:00:00 2001 From: Sergi Blanch-Torne Date: Wed, 2 Jul 2025 14:47:24 +0200 Subject: [PATCH] ci: crnm: review argument metavar and type Check the arguments to have a consistent definition of metavars to control the string shown, and have them all lowercase. Also define the types expected on those arguments. Signed-off-by: Sergi Blanch-Torne Part-of: --- bin/ci/ci_run_n_monitor.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/ci/ci_run_n_monitor.py b/bin/ci/ci_run_n_monitor.py index d58d7da6631..4fb5c6b4898 100755 --- a/bin/ci/ci_run_n_monitor.py +++ b/bin/ci/ci_run_n_monitor.py @@ -479,14 +479,17 @@ def parse_args() -> argparse.Namespace: ) parser.add_argument( "--stress", - default=0, + metavar="n", type=int, + default=0, help="Stresstest job(s). Specify the number of times to rerun the selected jobs, " "or use -1 for indefinite. Defaults to 0. If jobs have already been executed, " "this will ensure the total run count respects the specified number.", ) parser.add_argument( "--project", + metavar="name", + type=str, default="mesa", help="GitLab project in the format / or just ", ) @@ -499,15 +502,20 @@ def parse_args() -> argparse.Namespace: mutex_group1 = parser.add_mutually_exclusive_group() mutex_group1.add_argument( "--rev", + metavar="id", + type=str, default="HEAD", help="Repository git commit-ish, tag or branch name (default: HEAD)", ) mutex_group1.add_argument( "--pipeline-url", + metavar="url", + type=str, help="URL of the pipeline to use, instead of auto-detecting it.", ) mutex_group1.add_argument( "--mr", + metavar="id", type=int, help="ID of a merge request; the latest pipeline in that MR will be used.", )