Skip to content

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

Merged
wpbonelli merged 2 commits into
MODFLOW-ORG:masterfrom
wpbonelli:fix-build-errexit
Nov 16, 2026
Merged

wpbonelli merged 2 commits 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. This would have prevented a broken release from going out as reported in #84

wpbonelli and others added 2 commits November 12, 2026 18:20
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 <noreply@anthropic.com>
The release job installed pymake from master but never uses it. The
build job gets pymake from the modflow6 pixi environment instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wpbonelli
wpbonelli merged commit 569c2ac into MODFLOW-ORG:master Nov 16, 2026
3 checks passed
@wpbonelli
wpbonelli deleted the fix-build-errexit branch November 16, 2026 19:03
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