From 0938a4a9e913a80661e8f9c7dba3df766578b6ca Mon Sep 17 00:00:00 2001 From: JOY <5027251+JOY@users.noreply.github.com> Date: Sun, 23 Aug 2026 07:26:48 +0700 Subject: [PATCH] fix: use legacy scp for testnet IAP uploads --- .github/scripts/tests/test_validate_testnet_bens.py | 6 ++++++ .github/workflows/deploy-config.yml | 1 + 2 files changed, 7 insertions(+) diff --git a/.github/scripts/tests/test_validate_testnet_bens.py b/.github/scripts/tests/test_validate_testnet_bens.py index 82afe9b4fb..f7c4f3ea76 100644 --- a/.github/scripts/tests/test_validate_testnet_bens.py +++ b/.github/scripts/tests/test_validate_testnet_bens.py @@ -886,6 +886,9 @@ def test_testnet_iap_upload_hard_caps_and_retries(self): for call in success_gcloud_calls ) ) + self.assertTrue( + all("--scp-flag=-O" in call for call in success_gcloud_calls) + ) self.assertNotEqual(0, failure_result.returncode) self.assertEqual(3, len(failure_timeout_calls)) self.assertEqual(3, len(failure_gcloud_calls)) @@ -895,6 +898,9 @@ def test_testnet_iap_upload_hard_caps_and_retries(self): for call in failure_gcloud_calls ) ) + self.assertTrue( + all("--scp-flag=-O" in call for call in failure_gcloud_calls) + ) self.assertEqual(["5", "10"], failure_sleep_calls) self.assertIn("failed after 3 attempts", failure_result.stderr) self.assertTrue( diff --git a/.github/workflows/deploy-config.yml b/.github/workflows/deploy-config.yml index 8300100f76..2dc4c23cd6 100644 --- a/.github/workflows/deploy-config.yml +++ b/.github/workflows/deploy-config.yml @@ -960,6 +960,7 @@ jobs: --project="${GCP_PROJECT_ID}" \ --zone="${GCP_TESTNET_ZONE}" \ --tunnel-through-iap \ + --scp-flag=-O \ /tmp/doscan-testnet-config.tgz \ "${GCP_TESTNET_INSTANCE}:/tmp/doscan-testnet-config-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}.tgz"; then uploaded=1