Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

Commit 956e92e

Browse files
authored
Merge pull request #847 from eamansour/em-iss2027-run-groups
Add docs on --group flag for getting runs from an ecosystem
2 parents 8b5870e + eec0804 commit 956e92e

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

src/markdown-pages/docs/manage-ecosystem/runs-get.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Use the tables provided to view the options for filtering test results, and for
2020
| `--age`| Use the `--age` option to specify a time period in which the tests ran. The _age_ option is specified in the format _FROM:TO_. Units of time can be specified in weeks _w_, days _d_, hours _h_, or minutes _m_. The _FROM_ part is mandatory. The _TO_ part is optional, with a default set to `0`, which indicates the current time. The _FROM_ value specifies how far back in time the query is applied. The _FROM_ value must therefore always be a larger value than the _TO_ value. The returned times are in UTC (Coordinated Universal Time). If the `--name` option is specified, the `--age` parameter is not used. |
2121
| `--result` | Use the [`--result` option](#result) to return test runs based on test run results. You can select more than one result by using a comma-separated list. The `--result` flag cannot be used in conjunction with the `--active` flag. The two flags are mutually exclusive. |
2222
| `--active` | Use the `--active` option to query tests that have not finished, so that you can quickly see which tests are currently running. The `--active` flag cannot be used in conjunction with the `--result` flag. The two flags are mutually exclusive.|
23+
| `--group` | Use the `--group` flag to get all the test runs associated with the given group name. A custom group name can be assigned to a set of test runs when submitting tests using the [galasactl runs submit](./ecosystem-cli-runs-submit) command, otherwise a random group name will be assigned. `--group` can be used with other flags, like `--age`, `--requestor`, and `--result`, to filter test runs as desired, but it cannot be used alongside the `--name` flag. |
2324

2425
<b>Table 2:</b> The following table shows the options that you can set on the `galasactl runs get` command to display test run results in different formats:
2526

@@ -83,13 +84,13 @@ Results are returned on the terminal in the following example format:
8384
$galasactl runs get --bootstrap http://example.com:30960/bootstrap \
8485
--requestor bobsmith --age 2w:1w --format summary
8586
86-
submitted-time(UTC) name status result test-name
87-
2023-05-04 10:55:29 U456 finished Passed MyTestName1
88-
2023-05-05 10:45:29 U856 finished Passed MyTestName2
89-
2023-05-06 11:55:29 U859 finished Passed MyTestName3
90-
2023-05-07 10:55:23 U956 finished Passed MyTestName4
91-
2023-05-07 10:56:29 U976 finished Passed MyTestName5
92-
2023-05-07 10:57:20 U996 finished Passed MyTestName6
87+
submitted-time(UTC) name status result test-name group
88+
2023-05-04 10:55:29 U456 finished Passed MyTestName1 testGroup1
89+
2023-05-05 10:45:29 U856 finished Passed MyTestName2 testGroup1
90+
2023-05-06 11:55:29 U859 finished Passed MyTestName3 testGroup2
91+
2023-05-07 10:55:23 U956 finished Passed MyTestName4 testGroup2
92+
2023-05-07 10:56:29 U976 finished Passed MyTestName5 testGroup2
93+
2023-05-07 10:57:20 U996 finished Passed MyTestName6 testGroup3
9394
9495
Total:6 Passed:6
9596
```
@@ -133,6 +134,7 @@ duration(ms) : 1000
133134
test-name : dev.galasa.Zos3270LocalJava11Ubuntu
134135
requestor : bobsmith
135136
bundle : dev.galasa
137+
group : testGroup1
136138
run-log : https://127.0.0.1/ras/run/cbd-123/runlog
137139
138140
method type status result start-time(UTC) end-time(UTC) duration(ms)
@@ -169,7 +171,7 @@ Results are returned on the terminal in the following example format:
169171

170172
```
171173
$galasactl runs get --name U456 --format raw
172-
U456|finished|Passed|2023-05-04T10:55:29.545323Z|2023-05-05T06:00:14.496953Z|2023-05-05T06:00:15.654565Z|1157|dev.galasa.Zos3270LocalJava11Ubuntu|galasa|dev.galasa|https://127.0.0.1/ras/run/cbd-123/runlog
174+
U456|finished|Passed|2023-05-04T10:55:29.545323Z|2023-05-05T06:00:14.496953Z|2023-05-05T06:00:15.654565Z|1157|dev.galasa.Zos3270LocalJava11Ubuntu|galasa|dev.galasa|testGroup1|https://127.0.0.1/ras/run/cbd-123/runlog
173175
```
174176

175177

@@ -195,11 +197,11 @@ Results are returned on the terminal in the following example format:
195197
```
196198
galasactl runs get --age 1d --result failed,envfail --bootstrap http://example.com:30960/bootstrap
197199
198-
submitted-time(UTC) name status result test-name
199-
2023-05-05 10:55:29 U456 ending Failed MyTestName1
200-
2023-05-05 10:55:39 U856 ending Failed MyTestName2
201-
2023-05-05 10:55:49 U859 ending EnvFail MyTestName3
202-
2023-05-05 10:55:53 U956 ending Failed MyTestName4
200+
submitted-time(UTC) name status result test-name group
201+
2023-05-05 10:55:29 U456 ending Failed MyTestName1 testGroup1
202+
2023-05-05 10:55:39 U856 ending Failed MyTestName2 testGroup1
203+
2023-05-05 10:55:49 U859 ending EnvFail MyTestName3 testGroup2
204+
2023-05-05 10:55:53 U956 ending Failed MyTestName4 testGroup2
203205
204206
Total:4 Failed:3 EnvFail:1
205207
```

0 commit comments

Comments
 (0)