Skip to content

Commit d65b5ba

Browse files
Add go mod download before egressip make build
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>
1 parent e5dcdea commit d65b5ba

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

collection/stages/roles/egressip_tests/tasks/run_egressip_tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@
3636
allowlist_path: "{{ egressip_test_results_dir }}/allowlist.txt"
3737
tests_to_run_path: "{{ egressip_test_results_dir }}/list_of_tests_to_run.txt"
3838

39+
- name: Download Go module dependencies before build
40+
ansible.builtin.shell: |
41+
source {{ home_dir }}/.bashrc
42+
go mod download
43+
args:
44+
chdir: "{{ egressip_test_dir }}"
45+
changed_when: true
46+
3947
- name: Build extended-platform-tests executable
4048
ansible.builtin.shell: |
4149
source {{ home_dir }}/.bashrc

0 commit comments

Comments
 (0)