[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

Pull Request Overview

  • Opened on October 17, 2026
  • Status Open
  • Commit count 1 with first commit October 17, 2026

Total Delta

0 Total Diff Delta

Open Days

Open 34 weekdays

Test Delta

0 Diff Delta in Test Files
Breakdown by Phase

How long has this pull request spent in each phase of its lifecycle?

Data pending calculation for pull request

Author avatar

[ci] fix bash settings in test.sh

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.

No comments have been left on this PR.