diff --git a/.github/workflows/nfr.yml b/.github/workflows/nfr.yml index 8c078f5ab..7ad7eff85 100644 --- a/.github/workflows/nfr.yml +++ b/.github/workflows/nfr.yml @@ -102,7 +102,6 @@ jobs: echo "GKE_SVC_ACCOUNT=${{ secrets.GCP_SERVICE_ACCOUNT }}" >> vars.env echo "GKE_NODES_SERVICE_ACCOUNT=${{ secrets.GKE_NODES_SERVICE_ACCOUNT }}" >> vars.env echo "NETWORK_TAGS=nfr-tests-${{ github.run_id }}-${{ matrix.type }}" >> vars.env - echo "NGF_REPO=nginxinc" >> vars.env echo "NGF_BRANCH=${{ github.ref_name }}" >> vars.env echo "SOURCE_IP_RANGE=$(curl -sS -4 icanhazip.com)/32" >> vars.env echo "ADD_VM_IP_AUTH_NETWORKS=true" >> vars.env diff --git a/tests/scripts/create-and-setup-gcp-vm.sh b/tests/scripts/create-and-setup-gcp-vm.sh index 00a9aecec..a783c80f1 100644 --- a/tests/scripts/create-and-setup-gcp-vm.sh +++ b/tests/scripts/create-and-setup-gcp-vm.sh @@ -44,5 +44,19 @@ for ((i=1; i<=MAX_RETRIES; i++)); do done gcloud compute scp --zone ${GKE_CLUSTER_ZONE} --project=${GKE_PROJECT} ${SCRIPT_DIR}/vars.env username@${RESOURCE_NAME}:~ + +if [ -n "${NGF_REPO}" ] && [ "${NGF_REPO}" != "nginxinc" ]; then + gcloud compute ssh --zone ${GKE_CLUSTER_ZONE} --project=${GKE_PROJECT} username@${RESOURCE_NAME} \ + --command="bash -i < GKE_SVC_ACCOUNT= GKE_NODES_SERVICE_ACCOUNT= NETWORK_TAGS= -NGF_REPO=nginxinc +NGF_REPO= NGF_BRANCH=main GINKGO_LABEL= GINKGO_FLAGS= diff --git a/tests/suite/upgrade_test.go b/tests/suite/upgrade_test.go index c16248719..6539fffd9 100644 --- a/tests/suite/upgrade_test.go +++ b/tests/suite/upgrade_test.go @@ -257,7 +257,7 @@ var _ = Describe("Upgrade testing", Label("nfr", "upgrade"), func() { Expect(framework.WriteMetricsResults(resultsFile, res.metrics)).To(Succeed()) - link := fmt.Sprintf("\n\n![%[1]v.png](%[1]v.png)\n", res.scheme) + link := fmt.Sprintf("\n\n![%[1]v-oss.png](%[1]v-oss.png)\n", res.scheme) if *plusEnabled { link = fmt.Sprintf("\n\n![%[1]v-plus.png](%[1]v-plus.png)\n", res.scheme) }