Skip to content

Add go mod download before egressip make build - #29

Merged
openshift-merge-bot[bot] merged 1 commit into
mainfrom
fix-egressip-gomod-download
Aug 2, 2026
Merged

Add go mod download before egressip make build#29
openshift-merge-bot[bot] merged 1 commit into
mainfrom
fix-egressip-gomod-download

Conversation

@tusharjadhav3302

@tusharjadhav3302 tusharjadhav3302 commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Workaround for openshift-tests-private build failure caused by
PR #30082 removing the update-origin target from the build
dependency chain.

Problem

Since Jul 30, all RHOSO periodic jobs with egressip_tests fail:

chmod: cannot access '.../openshift/origin@v1.5.0-alpha.3.0.20260728161326-203a39d60791/
test/extended/util/compat_otp/testdata/bindata.go': No such file or directory
make: *** [Makefile:34: patch-bindata] Error 1

The update-origin Makefile target previously ran go mod download
to populate GOMODCACHE with the openshift/origin module before
patch-bindata tried to chmod a file in it. Without that step,
the module cache is empty when make build runs.

Fix

Add an explicit go mod download task before make build in
run_egressip_tests.yml. This restores the previous behaviour
without modifying the upstream Makefile.

Impact

  • Affects: release-4.22, release-4.23, release-5.0 branches
  • Confirmed not transient (testproject MR reproduced on Jul 31)
  • Main openstack/lb tests unaffected (they don't use openshift-tests-private)

Related

Made with Cursor

openshift-tests-private PR #30082 removed the update-origin
target from the build dependency chain. That target populated
GOMODCACHE with the openshift/origin module before patch-bindata
ran. Without it, patch-bindata tries to chmod a file in the
module cache that has not been downloaded yet, failing with
"No such file or directory" (OCPQUAL-31 side-effect).

Run go mod download explicitly before make build to ensure the
module cache is populated, restoring the previous behaviour.

Co-authored-by: Cursor <cursoragent@cursor.com>

@IlanZuckerman IlanZuckerman left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can approve this in order to unblock the CI failures, but IMO, the long term fix should be upstream Makefile fix and plan to delete this workaround .

@ekuris-redhat ekuris-redhat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci

openshift-ci Bot commented Aug 2, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ekuris-redhat, IlanZuckerman

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

The pull request process is described 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

@openshift-ci openshift-ci Bot added the approved label Aug 2, 2026
@openshift-merge-bot
openshift-merge-bot Bot merged commit 02d1c72 into main Aug 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm ready-for-review PR is ready for code review

Development

Successfully merging this pull request may close these issues.

3 participants