You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix CI can't be failed even the tests are failed (#1367)
### Motivation
This PR #1351 introduced some changes but breaked the CI. Currently, even if there are some failed tests, the CI won't be failed: https://github.com/apache/pulsar-client-go/actions/runs/14973771263/job/42060743359?pr=1364#step:6:9285
The root cause is because it captures the exit status of the tee command instead of the go test command. This causes the script to report "Tests passed" even when tests actually fail, leading to false positive CI results.
```
$TEST_CMD 2>&1 | tee $TEST_LOG
```
### Modification
- Use `set -o pipefail` to correctly capture the exit status of the `go test` command in the pipeline
0 commit comments