From d65b5ba4e6cb8d438c6843410a003a0d7dc4da88 Mon Sep 17 00:00:00 2001 From: tusharjadhav3302 Date: Sat, 1 Aug 2026 18:40:17 +0530 Subject: [PATCH] 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 --- .../roles/egressip_tests/tasks/run_egressip_tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/collection/stages/roles/egressip_tests/tasks/run_egressip_tests.yml b/collection/stages/roles/egressip_tests/tasks/run_egressip_tests.yml index b464da89..9373b0b1 100644 --- a/collection/stages/roles/egressip_tests/tasks/run_egressip_tests.yml +++ b/collection/stages/roles/egressip_tests/tasks/run_egressip_tests.yml @@ -36,6 +36,14 @@ allowlist_path: "{{ egressip_test_results_dir }}/allowlist.txt" tests_to_run_path: "{{ egressip_test_results_dir }}/list_of_tests_to_run.txt" +- name: Download Go module dependencies before build + ansible.builtin.shell: | + source {{ home_dir }}/.bashrc + go mod download + args: + chdir: "{{ egressip_test_dir }}" + changed_when: true + - name: Build extended-platform-tests executable ansible.builtin.shell: | source {{ home_dir }}/.bashrc