Skip to content

GHA/non-native: fail early if mport did not complete the install step - #23294

Closed
vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:gha-midnightbsd-verify-mport-success
Closed

vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:gha-midnightbsd-verify-mport-success

Conversation

@vszakats

@vszakats vszakats commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

MidnightBSD's mport install is prone to return a non-zero exit code on
success (hence the need to use || true; also unrelated to the grep
filtering, needed to avoid log noise for no built-in option for this).
Work around by verifying success explicitly, so that a truly failed
install command fails in the 'install prereqs' step, instead of raising
a confusing error (e.g. "cmake: not found") in the step after.

Reported-by: Dan Fandrich
Fixes #23291
Follow-up to b158d1c #21681
Follow-up to bf29c3e #22145

`mport` is prone to return a non-zero exit code on success, work around
by check success explicitly.

Reported-by: Dan Fandrich
Fixes curl#23291
Follow-up to b158d1c curl#21681
Follow-up to bf29c3e curl#22145
@github-actions github-actions Bot added the CI Continuous Integration label Oct 7, 2026
@vszakats vszakats changed the title GHA/non-native: fail if mport did not complete the install step GHA/non-native: fail early if mport did not complete the install step Oct 7, 2026
@vszakats

vszakats commented Oct 7, 2026 •

Copy link
Copy Markdown
Member Author

To confirm, mport install does indeed return a non-zero exit code
and fails without || true, and the grep redirect deleted:

[...]
/usr/local/share/doc/openldap/rfc/rfc3866.txt
/usr/local/share/doc/openldap/rfc/rfc2649.txt
/usr/local/share/doc/openldap/rfc/rfc2377.txt

The OpenLDAP client package has been successfully installed.

Edit
  /usr/local/etc/openldap/ldap.conf
to change the system-wide client defaults.

Try `man ldap.conf' and visit the OpenLDAP FAQ-O-Matic at
  http://www.openldap.org/faq/index.cgi?file=3
for more information.
The most recent version of libidn2 is already installed.
Error: Process completed with exit code 1.

https://github.com/curl/curl/actions/runs/37599394828/job/112719779012?pr=23294

when using:

            sudo mport install pkgconf brotli libnghttp2 ${MATRIX_INSTALL}
            echo $?   # not reached

This reverts commit 0eab0b2.
@testclutch

This comment was marked as outdated.

@vszakats vszakats closed this in 413df33 Oct 7, 2026
@vszakats
vszakats deleted the gha-midnightbsd-verify-mport-success branch October 7, 2026 18:23
@dfandrich

Copy link
Copy Markdown
Contributor

If the failure mode is all-or-nothing then using a canary like this seems like the most straightforward approach. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration

Development

Successfully merging this pull request may close these issues.

*BSD CI workflow runs despite package install failing

3 participants