[ci] fix bash settings in test.sh #7499

Open
jameslamb opened 2:40am on October 17, 2026 wants to merge 1 commit into microsoft/lightgbm main from
fix/bash-settings
Diff Delta:
0
About 0 Diff Delta/hour
Classified as:  Bug Fix

jameslamb's Description of Work

In .ci/test.sh (the main script that runs most test jobs on Linux / macOS here), the order of arguments in the bash configuration is flipped.

https://github.com/lightgbm-org/LightGBM/blob/5831ee577776949d26d21efa581ec904bda80483/.ci/test.sh#L3

It should be -u (fail on unset variables) followed by -o pipefail (fail the first time any step in a pipeline raises a non-0 exit code).

This could have been allowing failures in some of the pipelines to silently pass 😬

This PR fixes that, so we get big loud errors right when they first happen in CI.

1 total changed file
Loading changes...
Congrats, you've cleared the final file
PR review complete, one step closer to shipping πŸš€