Commit 283fb8f
authored
fix(ci): fail loudly instead of silently running full suite on shard-lookup failure (#7864)
The shard-file lookup used `mapfile -t SHARD_FILES < <(node -e ...)`, which
runs the node one-liner in a process-substitution subshell whose exit code
mapfile does not propagate. If matrix.shard doesn't match a key in
shard-assignment.json, or the file is missing/corrupt, the node script
throws, exits non-zero, but mapfile still returns 0 -- leaving SHARD_FILES
empty and silently making vitest run the entire suite instead of its slice.
Capture the node output via a checked command-substitution assignment
instead (same idiom used to fix compose_file_args in #7765), so a lookup
failure now fails the step with an explicit ::error:: annotation and a
non-zero exit.
Closes #77671 parent 2ac97ad commit 283fb8f
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1041 | 1041 | | |
1042 | 1042 | | |
1043 | 1043 | | |
1044 | | - | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
1045 | 1054 | | |
1046 | 1055 | | |
1047 | 1056 | | |
| |||
0 commit comments