Repository navigation
Commit 8d4b93d
ci: share extended test commands through xtask (apache#25256)
## Which issue does this PR close?
- Part of apache#21048 and apache#24487. Both issues stay open.
## Rationale for this change
The three extended test suites run only in the merge queue, on release
branches, and by manual dispatch. Their `cargo test` commands and
environment variables exist only inside `extended.yml`. A developer who
wants to reproduce a merge-queue failure must copy them by hand. This PR
defines each command once in `xtask`, so local runs and GitHub Actions
use the same definition.
## What changes are included in this PR?
- `cargo xtask ci step test` gets three variants: `extended`,
`hash-collisions`, and `sqlite`. Each variant reproduces the current CI
invocation and sets only the environment that its suite needs. The
`sqlite` variant sets no `RUST_BACKTRACE`, because its CI job skips the
builder setup on purpose.
- `extended.yml` calls the three commands. Triggers, job IDs, job names,
runners, containers, the clean working tree check, and `cargo clean` do
not change.
- `xtask/README.md` documents the commands, their environment,
prerequisites, and the parts of a CI job that a command does not
reproduce.
`--explain` prints the underlying command without running the suite:
```sh
cargo xtask ci step test extended --explain
```
## What is the testing strategy for this PR?
- Snapshot tests in `xtask/src/ci_steps.rs` cover the exact command,
working directory, and environment of each variant, plus rejection of an
unknown variant.
- `check_asf_yaml_status_checks.py` passes. All required check names are
unchanged.
- Each new command ran the real suite locally through `xtask` on macOS.
The `extended`, `hash-collisions`, and `sqlite` suites all passed with a
clean working tree.
The extended jobs skip ordinary pull request updates, so green PR checks
do not exercise these commands. The merge queue does.
## Are there any user-facing changes?
No. The GitHub CI behavior is the same. Developers get three new local
commands.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Fable 5.1 <[email protected]>1 parent dbe05f3 commit 8d4b93d
2 files changed
Lines changed: 141 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
| |||
75 | 83 | | |
76 | 84 | | |
77 | 85 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 86 | + | |
94 | 87 | | |
95 | 88 | | |
96 | 89 | | |
| |||
118 | 111 | | |
119 | 112 | | |
120 | 113 | | |
| 114 | + | |
121 | 115 | | |
122 | | - | |
123 | 116 | | |
124 | 117 | | |
125 | 118 | | |
| |||
142 | 135 | | |
143 | 136 | | |
144 | 137 | | |
145 | | - | |
146 | | - | |
| 138 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
361 | 425 | | |
362 | 426 | | |
363 | 427 | | |
| |||
546 | 610 | | |
547 | 611 | | |
548 | 612 | | |
| 613 | + | |
| 614 | + | |
549 | 615 | | |
550 | 616 | | |
551 | 617 | | |
| |||
590 | 656 | | |
591 | 657 | | |
592 | 658 | | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
597 | 670 | | |
598 | 671 | | |
599 | 672 | | |
| |||
775 | 848 | | |
776 | 849 | | |
777 | 850 | | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
778 | 903 | | |
779 | 904 | | |
780 | 905 | | |
| |||
0 commit comments