Skip to content

Commit

Permalink
ci: do not silently fail
Browse files Browse the repository at this point in the history
Rationale:
    31722a2 changed the CI scripts to
    not output messages to the logs unless an err occurs to prevent
    exceeding CI runner log limits. A wrong assumption made by that
    commit causes the CI to not output the messages even if there's an
    error. This commit fixes that.
  • Loading branch information
div72 committed Dec 24, 2023
1 parent f44a4a5 commit b41de7e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ci/test_run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@

export LC_ALL=C.UTF-8

# latest_stage.log will contain logs for a silenced stage if it
# fails.
trap "cat latest_stage.log" EXIT

set -o errexit; source ./ci/test/00_setup_env.sh
set -o errexit; source ./ci/test/03_before_install.sh
set -o errexit; source ./ci/test/04_install.sh &> 04.log || (cat 04.log && exit 1)
set -o errexit; source ./ci/test/05_before_script.sh &> 05.log || (cat 05.log && exit 1)
set -o errexit; source ./ci/test/04_install.sh &> latest_stage.log
set -o errexit; source ./ci/test/05_before_script.sh &> latest_stage.log
echo -n > latest_stage.log
set -o errexit; source ./ci/test/06_script_a.sh
set -o errexit; source ./ci/test/06_script_b.sh

0 comments on commit b41de7e

Please sign in to comment.