Skip to content

Commit f2bf892

Browse files
authored
Merge pull request #247 from nuclearcat/help-tiny-fixes
Tiny fixes for cli help
2 parents d1af36a + 69dc671 commit f2bf892

6 files changed

Lines changed: 27 additions & 28 deletions

File tree

docs/maestro-results.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ Do not use it, unless you are requesting test on Maestro through `kci-dev`.
1010

1111
Example:
1212
```sh
13-
kci-dev maestro-results --nodeid <str: testnodeid>
13+
kci-dev maestro results --nodeid <str: testnodeid>
1414
```
1515

1616
This command will show the results of tests by page nodes limit and page offset.
1717

1818
Example:
1919
```sh
20-
kci-dev maestro-results --nodes --limit <int: page nodes limit> --offset <int: page nodes offset>
20+
kci-dev maestro results --nodes --limit <int: page nodes limit> --offset <int: page nodes offset>
2121
```
2222

2323
Result sample:
@@ -82,15 +82,15 @@ Usually it is hexadecimal string.
8282
Additionally, for --nodes you can provide optional parameters --filter to filter the results by the given key and value.
8383
For example:
8484
```sh
85-
./kci-dev.py results --nodes --filter treeid=e25266f77837de335edba3c1b8d2a04edc2bfb195b77c44711d81ebea4494140 --filter kind=test
85+
kci-dev maestro results --nodes --filter treeid=e25266f77837de335edba3c1b8d2a04edc2bfb195b77c44711d81ebea4494140 --filter kind=test
8686
```
8787
This command will show the nodes of tests in particular tree checkout.
8888
But as you might see, there is a lot of fields you might be not interested in.
8989

9090
For this we have additional option --field, that will restrict output only to specified fields.
9191
For example:
9292
```sh
93-
./kci-dev.py results --nodes --filter treeid=e25266f77837de335edba3c1b8d2a04edc2bfb195b77c44711d81ebea4494140 --filter kind=test --field name --field result
93+
kci-dev maestro results --nodes --filter treeid=e25266f77837de335edba3c1b8d2a04edc2bfb195b77c44711d81ebea4494140 --filter kind=test --field name --field result
9494
```
9595
Example:
9696

kcidev/subcommands/maestro/validate/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
\b
1818
Examples:
1919
# Validate builds
20-
kci-dev validate builds --all-checkouts --days <number-of-days>
21-
kci-dev validate builds -commit <git-commit> --giturl <git-url> --branch <git-branch>
20+
kci-dev maestro validate builds --all-checkouts --days <number-of-days>
21+
kci-dev maestro validate builds -commit <git-commit> --giturl <git-url> --branch <git-branch>
2222
# Validate boots
23-
kci-dev validate boots --all-checkouts --days <number-of-days>
24-
kci-dev validate boots -commit <git-commit> --giturl <git-url> --branch <git-branch>
23+
kci-dev maestro validate boots --all-checkouts --days <number-of-days>
24+
kci-dev maestro validate boots -commit <git-commit> --giturl <git-url> --branch <git-branch>
2525
# Validate builds history
26-
kci-dev validate builds --history --all-checkouts --days <number-of-days> --arch <architecture-filter>
27-
kci-dev validate builds --history -commit <git-commit> --giturl <git-url> --branch <git-branch> --days <number-of-days>
26+
kci-dev maestro validate builds --history --all-checkouts --days <number-of-days> --arch <architecture-filter>
27+
kci-dev maestro validate builds --history -commit <git-commit> --giturl <git-url> --branch <git-branch> --days <number-of-days>
2828
""",
2929
invoke_without_command=True,
3030
)

kcidev/subcommands/maestro/validate/boots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
2222
\b
2323
Examples:
24-
kci-dev validate boots --all-checkouts --days <number-of-days>
25-
kci-dev validate boots -commit <git-commit> --giturl <git-url> --branch <git-branch>
24+
kci-dev maestro validate boots --all-checkouts --days <number-of-days>
25+
kci-dev maestro validate boots -commit <git-commit> --giturl <git-url> --branch <git-branch>
2626
""",
2727
)
2828
@click.option(

kcidev/subcommands/maestro/validate/builds.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
\b
3232
Examples:
3333
# Build validation
34-
kci-dev validate builds --all-checkouts --days <number-of-days>
35-
kci-dev validate builds --commit <git-commit> --giturl <git-url> --branch <git-branch>
34+
kci-dev maestro validate builds --all-checkouts --days <number-of-days>
35+
kci-dev maestro validate builds --commit <git-commit> --giturl <git-url> --branch <git-branch>
3636
# Build history validation
37-
kci-dev validate builds --history --all-checkouts --days <number-of-days>
38-
kci-dev validate builds --history --giturl <git-url> --branch <git-branch> --days <number-of-days>
37+
kci-dev maestro validate builds --history --all-checkouts --days <number-of-days>
38+
kci-dev maestro validate builds --history --giturl <git-url> --branch <git-branch> --days <number-of-days>
3939
""",
4040
)
4141
@click.option(

kcidev/subcommands/results/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -818,17 +818,17 @@ def get_filtered_issues(origin, tree_name, giturl, branch, commit, arch):
818818
# Get issues
819819
kci-dev results issues --origin <origin> --days <number-of-days>
820820
# Get new issues for all checkouts
821-
kci-dev issues --new --days <number-of-days> --origin <origin>
821+
kci-dev results issues --new --days <number-of-days> --origin <origin>
822822
# Get new issues for a checkout
823-
kci-dev issues --new --giturl <git-url> --branch <git-branch> --commit <commit> --origin <origin>
823+
kci-dev results issues --new --giturl <git-url> --branch <git-branch> --commit <commit> --origin <origin>
824824
# Get failed or inconclusive builds and boots without any issue for all checkouts
825-
kci-dev issues --missing
825+
kci-dev results issues --missing
826826
# Get failed or inconclusive builds and boots without any issue for specific checkout
827-
kci-dev issues --missing --giturl <git-url> --branch <git-branch> --commit <commit> --origin <origin>
827+
kci-dev results issues --missing --giturl <git-url> --branch <git-branch> --commit <commit> --origin <origin>
828828
# Get failed/inconclusive builds without issues
829-
kci-dev issues --missing --builds
829+
kci-dev results issues --missing --builds
830830
# Get failed/inconclusive boots without issues
831-
kci-dev issues --missing --boots
831+
kci-dev results issues --missing --boots
832832
""",
833833
)
834834
@click.option(

kcidev/subcommands/testretry.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,11 @@ def send_jobretry(baseurl, jobid, token):
5555
5656
\b
5757
Examples:
58-
# Retry a test job using its node ID
59-
kci-dev testretry --nodeid 65a5c89f1234567890abcdef
60-
61-
# Get node ID from maestro-results and retry
62-
kci-dev maestro-results --nodes --filter "status=fail" --field id --field name
63-
kci-dev testretry --nodeid <NODE_ID_FROM_ABOVE>
58+
kci-dev testretry --nodeid 65a5c89f1234567890abcdef
59+
# If the user doesn't know the node id, they can query it using maestro results command
60+
# for example, for failed tests:
61+
kci-dev maestro results --nodes --filter "status=fail" --field id --field name
62+
kci-dev testretry --nodeid <NODE_ID_FROM_ABOVE>
6463
"""
6564
)
6665
@click.option(

0 commit comments

Comments
 (0)