Skip to content

ci(release): fail the build step when any command fails - #85

Open
wpbonelli wants to merge 1 commit into
MODFLOW-ORG:masterfrom
wpbonelli:fix-build-errexit
Open

wpbonelli wants to merge 1 commit into
MODFLOW-ORG:masterfrom
wpbonelli:fix-build-errexit

Conversation

@wpbonelli

@wpbonelli wpbonelli commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

The multi-line build command in the nick-fields/retry step had no errexit. When make-program failed on the mp7 download, the later --double build and make-code-json succeeded, so the step exited 0 and release 30.0 was published without any of the standard-precision programs built from source.

Add set -euo pipefail so a failed command fails the step. Other run: steps already get -eo pipefail from the shell: bash default.

Note that CI on this PR is expected to fail until the mp6/mp7 source URLs are fixed. That failure is the point. This would have prevented a broken release from going out as reported in #84

The multi-line build command run by nick-fields/retry had no errexit,
so a failed make-program call was masked by later successful commands.
Release 30.0 shipped without any standard-precision source-built
programs after the mp7 download failed (MODFLOW-ORG#84).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant