diff --git a/.github/scripts/fixtures/rust-ci-scope/future-aliyun-markdown-pin.txt b/.github/scripts/fixtures/rust-ci-scope/future-aliyun-markdown-pin.txt new file mode 100644 index 000000000..821e8b9a2 --- /dev/null +++ b/.github/scripts/fixtures/rust-ci-scope/future-aliyun-markdown-pin.txt @@ -0,0 +1 @@ +deployment/aliyun/future-cross-lane-pin.md diff --git a/.github/scripts/fixtures/rust-ci-scope/future-aliyun-pin.txt b/.github/scripts/fixtures/rust-ci-scope/future-aliyun-pin.txt new file mode 100644 index 000000000..a504b20ee --- /dev/null +++ b/.github/scripts/fixtures/rust-ci-scope/future-aliyun-pin.txt @@ -0,0 +1 @@ +deployment/aliyun/future-cross-lane-pin.env diff --git a/.github/scripts/fixtures/rust-ci-scope/pinned-aliyun.txt b/.github/scripts/fixtures/rust-ci-scope/pinned-aliyun.txt new file mode 100644 index 000000000..a44455b57 --- /dev/null +++ b/.github/scripts/fixtures/rust-ci-scope/pinned-aliyun.txt @@ -0,0 +1,6 @@ +deployment/aliyun/polymarket-market-tape.toml +deployment/aliyun/polymarket-market-tape.service +deployment/aliyun/polymarket-reference-collector.service +deployment/aliyun/polymarket-reference-collector-shadow@.service +deployment/aliyun/polymarket-market-tape-upload.service +deployment/aliyun/polymarket-reference-upload.service diff --git a/.github/scripts/select-rust-ci-scope.sh b/.github/scripts/select-rust-ci-scope.sh index 87d287a58..8f006e318 100755 --- a/.github/scripts/select-rust-ci-scope.sh +++ b/.github/scripts/select-rust-ci-scope.sh @@ -312,12 +312,6 @@ for path in "${paths[@]}"; do select_all_ploy_jobs continue ;; - docs/*|*.md|LICENSE*) - continue - ;; - rust_hft/docs/*|rust_hft/README*|rust_hft/*/README*) - continue - ;; rust_hft/deployment/k8s/*|deployment/aliyun/research/k8s/*) select_job ci/deployment-artifacts [[ $path == deployment/aliyun/research/* ]] && research_image_relevant=true @@ -326,8 +320,15 @@ for path in "${paths[@]}"; do deployment/aliyun/*) control=true toolchain=true + select_job ploy/integration-regressions [[ $path == deployment/aliyun/research/* ]] && research_image_relevant=true ;; + docs/*|*.md|LICENSE*) + continue + ;; + rust_hft/docs/*|rust_hft/README*|rust_hft/*/README*) + continue + ;; rust_hft/*) needs_metadata=true ;; diff --git a/.github/scripts/test-select-rust-ci-scope.sh b/.github/scripts/test-select-rust-ci-scope.sh index 238a1684b..c61a384cd 100755 --- a/.github/scripts/test-select-rust-ci-scope.sh +++ b/.github/scripts/test-select-rust-ci-scope.sh @@ -74,6 +74,10 @@ assert_security_jobs() { job_cases=( 'collector|pull_request|collector.txt|ci/rust,ci/polymarket-evidence-compiler-image' + 'pinned-aliyun|pull_request|pinned-aliyun.txt|ploy/integration-regressions,ci/rust' + 'pinned-aliyun-push|push|pinned-aliyun.txt|ploy/integration-regressions,ci/rust' + 'future-aliyun-pin|pull_request|future-aliyun-pin.txt|ploy/integration-regressions,ci/rust' + 'future-aliyun-markdown-pin|pull_request|future-aliyun-markdown-pin.txt|ploy/integration-regressions,ci/rust' 'evaluator|pull_request|evaluator.txt|ploy/commit-hygiene,ploy/rust-format,ploy/safety-scans,ploy/rust-research-heavy' 'shared-prediction|pull_request|shared-prediction.txt|ploy/commit-hygiene,ploy/rust-format,ploy/safety-scans,ploy/rust-control-plane,ploy/rust-runner-lean,ploy/rust-runner-full,ploy/rust-market-data,ploy/rust-research-heavy,ploy/frontend,ploy/integration-regressions' 'prediction-lock|pull_request|prediction-lock.txt|ploy/commit-hygiene,ploy/research-image-binaries,ploy/research-image-smoke,ploy/rust-format,ploy/safety-scans,ploy/audit,ploy/rust-control-plane,ploy/rust-runner-lean,ploy/rust-runner-full,ploy/rust-market-data,ploy/rust-research-heavy,ploy/frontend,ploy/integration-regressions' @@ -149,7 +153,7 @@ for flag in handoff json ondo focused toolchain; do assert_flag "$live" "$flag" for flag in loop collector control; do assert_flag "$live" "$flag" false; done control=$(run_case control pull_request control.txt) -assert_jobs "$control" 'ci/rust' +assert_jobs "$control" 'ploy/integration-regressions,ci/rust' for flag in control toolchain; do assert_flag "$control" "$flag" true; done for flag in loop handoff json ondo collector focused; do assert_flag "$control" "$flag" false; done @@ -230,6 +234,7 @@ ploy_workflow="$script_dir/../workflows/ploy-ci.yml" grep -Fqx " group: prediction-markets-\${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}" "$ploy_workflow" grep -Fqx " cancel-in-progress: \${{ github.ref != 'refs/heads/main' }}" "$ploy_workflow" [[ $(grep -Fxc ' branches: [main, develop]' "$ploy_workflow") -eq 2 ]] +grep -Fqx ' - "deployment/aliyun/**"' "$ploy_workflow" grep -Fqx ' needs: image-smoke-selector' "$ploy_workflow" grep -Fqx "$always_condition" "$ploy_workflow" grep -Fqx ' working-directory: .' "$ploy_workflow" diff --git a/.github/workflows/ploy-ci.yml b/.github/workflows/ploy-ci.yml index 1e242194b..e261e7d90 100644 --- a/.github/workflows/ploy-ci.yml +++ b/.github/workflows/ploy-ci.yml @@ -8,7 +8,7 @@ on: paths: - "rust_hft/**" - ".cargo/**" - - "deployment/aliyun/research/**" + - "deployment/aliyun/**" - ".github/workflows/**" - ".github/actions/**" - ".github/scripts/**"