diff --git a/.github/workflows/sync-cloud-run-env.yml b/.github/workflows/sync-cloud-run-env.yml index 0bbeeef..6a5b997 100644 --- a/.github/workflows/sync-cloud-run-env.yml +++ b/.github/workflows/sync-cloud-run-env.yml @@ -204,8 +204,8 @@ jobs: # Trusted control code stays on this main checkout. The application archive is chosen below. approved_candidate=0b939723c1db3ef59175535998b470cbcd4b8824 approved_http_snapshot_candidate=d8314a61df697cae1dd03a78ddc5c2fc4179ec67 - approved_probe_snapshot_candidate=a2921d157efb887e9210fad6734ca040ea6e5293 - approved_sghk_snapshot_candidate=922f338fea7c46391b50bb8316ac88154596916f + approved_probe_snapshot_candidate=318bf0419ec91002fd0f0dfd1bc80a0664a85e79 + approved_sghk_snapshot_candidate=df3d29d13daeffc7b4af9fec5db0e9ec1f07b60f history_count=0 for history_value in \ "${ACCOUNT_HISTORY_RECORDING_ENABLED:-}" \ @@ -330,8 +330,8 @@ jobs: set -euo pipefail approved_candidate=0b939723c1db3ef59175535998b470cbcd4b8824 approved_http_snapshot_candidate=d8314a61df697cae1dd03a78ddc5c2fc4179ec67 - approved_probe_snapshot_candidate=a2921d157efb887e9210fad6734ca040ea6e5293 - approved_sghk_snapshot_candidate=922f338fea7c46391b50bb8316ac88154596916f + approved_probe_snapshot_candidate=318bf0419ec91002fd0f0dfd1bc80a0664a85e79 + approved_sghk_snapshot_candidate=df3d29d13daeffc7b4af9fec5db0e9ec1f07b60f case "${WORKFLOW_TARGET}" in HK) expected_sghk_target=hk ;; SG) expected_sghk_target=sg ;; diff --git a/scripts/verify_deployed_runtime_target_admission.py b/scripts/verify_deployed_runtime_target_admission.py index db9343c..79dd690 100644 --- a/scripts/verify_deployed_runtime_target_admission.py +++ b/scripts/verify_deployed_runtime_target_admission.py @@ -38,9 +38,9 @@ class AdmissionError(ValueError): # Reviewed PAPER HTTP snapshot image. Distinct from the natural-cycle history archive above. APPROVED_PAPER_HTTP_SNAPSHOT_CANDIDATE = "d8314a61df697cae1dd03a78ddc5c2fc4179ec67" # Reviewed PAPER internal-probe snapshot producer. It carries no history or snapshot env update. -APPROVED_PAPER_PROBE_SNAPSHOT_CANDIDATE = "a2921d157efb887e9210fad6734ca040ea6e5293" +APPROVED_PAPER_PROBE_SNAPSHOT_CANDIDATE = "318bf0419ec91002fd0f0dfd1bc80a0664a85e79" # Reviewed read-only SG/HK account-snapshot producer. It is not a PAPER candidate. -APPROVED_SGHK_ACCOUNT_SNAPSHOT_CANDIDATE = "922f338fea7c46391b50bb8316ac88154596916f" +APPROVED_SGHK_ACCOUNT_SNAPSHOT_CANDIDATE = "df3d29d13daeffc7b4af9fec5db0e9ec1f07b60f" # One already-staged PAPER revision that may hold history env while serving still runs an older image. _PAPER_HTTP_STAGED_SOURCE_REVISION = "longbridge-quant-paper-service-r36423178119" _PAPER_HTTP_STAGED_SOURCE_COMMIT = APPROVED_PAPER_HISTORY_CANDIDATE diff --git a/tests/test_sync_cloud_run_env_workflow.sh b/tests/test_sync_cloud_run_env_workflow.sh index 6ffd9d2..f16a919 100644 --- a/tests/test_sync_cloud_run_env_workflow.sh +++ b/tests/test_sync_cloud_run_env_workflow.sh @@ -447,8 +447,8 @@ assert 'git archive "${SOURCE_COMMIT}"' not in job assert "git archive ${{" not in job assert "0b939723c1db3ef59175535998b470cbcd4b8824" in job assert "d8314a61df697cae1dd03a78ddc5c2fc4179ec67" in job -assert "a2921d157efb887e9210fad6734ca040ea6e5293" in job -assert "922f338fea7c46391b50bb8316ac88154596916f" in job +assert "318bf0419ec91002fd0f0dfd1bc80a0664a85e79" in job +assert "df3d29d13daeffc7b4af9fec5db0e9ec1f07b60f" in job assert '[ "${GITHUB_REPOSITORY:-}" != "QuantStrategyLab/LongBridgePlatform" ]' in job assert '[ "${SOURCE_COMMIT}" = "${GITHUB_SHA}" ] || [ "${SOURCE_COMMIT}" = "${approved_candidate}" ]' not in job for forbidden in ("sync_plan", "scheduler", "cleanup", "retire", "update-traffic"): @@ -476,8 +476,8 @@ with open(os.environ["STUB_LOG"], "a") as stream: stream.write(json.dumps([command, *args]) + "\\n") approved = "0b939723c1db3ef59175535998b470cbcd4b8824" http_snapshot_candidate = "d8314a61df697cae1dd03a78ddc5c2fc4179ec67" -probe_snapshot_candidate = "a2921d157efb887e9210fad6734ca040ea6e5293" -sghk_snapshot_candidate = "922f338fea7c46391b50bb8316ac88154596916f" +probe_snapshot_candidate = "318bf0419ec91002fd0f0dfd1bc80a0664a85e79" +sghk_snapshot_candidate = "df3d29d13daeffc7b4af9fec5db0e9ec1f07b60f" staged_source_revision = "longbridge-quant-paper-service-r36423178119" staged_source_image = ( "asia-east1-docker.pkg.dev/synthetic-project/images/longbridgeplatform/synthetic-paper" @@ -712,8 +712,8 @@ else: } candidate = "0b939723c1db3ef59175535998b470cbcd4b8824" http_snapshot_candidate = "d8314a61df697cae1dd03a78ddc5c2fc4179ec67" - probe_snapshot_candidate = "a2921d157efb887e9210fad6734ca040ea6e5293" - sghk_snapshot_candidate = "922f338fea7c46391b50bb8316ac88154596916f" + probe_snapshot_candidate = "318bf0419ec91002fd0f0dfd1bc80a0664a85e79" + sghk_snapshot_candidate = "df3d29d13daeffc7b4af9fec5db0e9ec1f07b60f" staged_source_revision = "longbridge-quant-paper-service-r36423178119" staged_source_image = ( "asia-east1-docker.pkg.dev/synthetic-project/images/longbridgeplatform/"