Commit 2484f20
authored
chore(ci): revamp parallel test outputs clarity and conciseness (#18002)
## Problem
The current output from the **package checking phase** (where we
determine if a package should be tested OR not) in parallel `system
tests` is noisy and difficult to read. It prints internal debug commands
and multiple lines of text for every package, making it hard to quickly
scan and see which packages are being tested or skipped.
## Solution
This Pull Request revamps the output format of the package checking
phase to be highly readable and aligned.
- Internal debug commands have been silenced.
- The output now uses a "State-First" format, where the decision (TEST
or SKIP) and the reason are displayed first, followed by the package
name and commit hash.
- The output is aligned in columns using `printf`, making vertical
scanning easy for humans and parsing easy for tools.
## Notes to Reviewers
- This change is purely cosmetic and does not alter the logic of package
selection or test execution.
- A harmless trigger comment was added to
`packages/google-cloud-testutils/setup.py` to force this package to be
tested in CI, allowing you to see the new output format in action. This
will be removed before merging.
## Example Output
```text
TEST [changed] google-cloud-testutils c3bdf09
SKIP [no_changes] google-cloud-tasks c3bdf09
SKIP [no_changes] google-cloud-storage c3bdf09
```
## Pre-planning For Adhoc Testing:
While ad hoc testing is not yet merged to main and is not processed as a
part of this PR, the expectation is that a future PR will refine this
format when adhoc is added> At that time we will be able to determine
why a TEST state was chosen (changed, adhoc, or both if a package has
changes AND is inadvertantly included in the ad hoc list).
```text
TEST [changed] google-cloud-testutils c3bdf09
TEST [adhoc] google-cloud-tasks c3bdf09
TEST [changed,adhoc] google-cloud-tasks c3bdf09
SKIP [no_changes] google-cloud-storage c3bdf09
```1 parent 5e0c2ff commit 2484f20
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
267 | 266 | | |
268 | | - | |
| 267 | + | |
269 | 268 | | |
270 | 269 | | |
271 | 270 | | |
272 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
273 | 282 | | |
274 | 283 | | |
275 | | - | |
| 284 | + | |
276 | 285 | | |
277 | 286 | | |
278 | 287 | | |
| |||
0 commit comments