Skip to content

Use set -euxo pipefail in 01_install_requirements#1866

Open
elfosardo wants to merge 1 commit intoopenshift-metal3:masterfrom
elfosardo:euxo-pipefail-01
Open

Use set -euxo pipefail in 01_install_requirements#1866
elfosardo wants to merge 1 commit intoopenshift-metal3:masterfrom
elfosardo:euxo-pipefail-01

Conversation

@elfosardo
Copy link
Member

@elfosardo elfosardo commented Mar 13, 2026

Replace set -ex with set -euxo pipefail for consistency with
02_configure_host.sh and 04_setup_ironic.sh.

Guard optional environment variables with :- defaults to avoid
nounset errors and fix a $ARCH typo that should be $GOARCH.

Also fix common.sh to handle the case where Go is not yet installed
when sourced by 01_install_requirements.sh — skip 'go env' if the
go binary is absent and default GOPATH to empty.

@openshift-ci openshift-ci bot requested review from cybertron and mkowalski March 13, 2026 14:09
@openshift-ci
Copy link

openshift-ci bot commented Mar 13, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zaneb for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@elfosardo elfosardo force-pushed the euxo-pipefail-01 branch 3 times, most recently from 3381047 to 6110afc Compare March 13, 2026 16:18
@elfosardo
Copy link
Member Author

/retest

2 similar comments
@elfosardo
Copy link
Member Author

/retest

@elfosardo
Copy link
Member Author

/retest

@elfosardo elfosardo requested a review from dtantsur March 17, 2026 17:05
@elfosardo
Copy link
Member Author

/cc @tdomnesc

@openshift-ci openshift-ci bot requested a review from tdomnesc March 17, 2026 17:06
Replace set -ex with set -euxo pipefail for consistency with
02_configure_host.sh and 04_setup_ironic.sh.

Guard optional environment variables with :- defaults to avoid
nounset errors and fix a $ARCH typo that should be $GOARCH.

Also fix common.sh to handle the case where Go is not yet installed
when sourced by 01_install_requirements.sh — skip 'go env' and
GOPATH-dependent assignments when the go binary is absent.
@elfosardo
Copy link
Member Author

/retest

2 similar comments
@elfosardo
Copy link
Member Author

/retest

@elfosardo
Copy link
Member Author

/retest

@openshift-ci
Copy link

openshift-ci bot commented Mar 20, 2026

@elfosardo: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-metal-ipi-ovn-dualstack 78fe138 link false /test e2e-metal-ipi-ovn-dualstack
ci/prow/e2e-agent-compact-ipv4-iso-no-registry 78fe138 link false /test e2e-agent-compact-ipv4-iso-no-registry

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

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.

2 participants