Skip to content

Commit f7bb4d5

Browse files
authored
fix(ci): Use source-version-override so CI Health builds checkout the right branch (#5950)
The CI Health jobs passed the branch via `source-version`, which is not a valid input for aws-actions/aws-codebuild-run-build. The action ignored it and fell back to its default behavior of forcing sourceVersion to the commit that triggered the workflow (master / V3). As a result the v2 jobs (unit-tests-v2, slow-tests-v2, localmode-tests-v2) ran V2's tox commands against the V3 monorepo layout, where the repo root has no tox.ini, and failed within a minute with "tox config file not found". Rename all six occurrences to the correct input name `source-version-override` so each job checks out its intended branch (master-v2 for the v2 jobs and canaries-v2, master for canaries-v3 and unit-test-v3). X-AI-Prompt: Fix the CI Health workflow source-version input so v2 jobs run against master-v2 instead of master X-AI-Tool: kiro-cli
1 parent f5a33f8 commit f7bb4d5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci-health.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: aws-actions/aws-codebuild-run-build@v1
2222
with:
2323
project-name: sagemaker-python-sdk-ci-health-canaries-v3
24-
source-version: refs/heads/master
24+
source-version-override: refs/heads/master
2525
canaries-v2:
2626
runs-on: ubuntu-latest
2727
steps:
@@ -35,7 +35,7 @@ jobs:
3535
uses: aws-actions/aws-codebuild-run-build@v1
3636
with:
3737
project-name: sagemaker-python-sdk-ci-health-canaries-v2
38-
source-version: refs/heads/master-v2
38+
source-version-override: refs/heads/master-v2
3939
unit-tests-v2:
4040
runs-on: ubuntu-latest
4141
strategy:
@@ -53,7 +53,7 @@ jobs:
5353
uses: aws-actions/aws-codebuild-run-build@v1
5454
with:
5555
project-name: sagemaker-python-sdk-ci-health-unit-tests
56-
source-version: refs/heads/master-v2
56+
source-version-override: refs/heads/master-v2
5757
env-vars-for-codebuild: |
5858
PY_VERSION
5959
env:
@@ -71,7 +71,7 @@ jobs:
7171
uses: aws-actions/aws-codebuild-run-build@v1
7272
with:
7373
project-name: sagemaker-python-sdk-ci-health-slow-tests
74-
source-version: refs/heads/master-v2
74+
source-version-override: refs/heads/master-v2
7575
localmode-tests-v2:
7676
runs-on: ubuntu-latest
7777
steps:
@@ -85,7 +85,7 @@ jobs:
8585
uses: aws-actions/aws-codebuild-run-build@v1
8686
with:
8787
project-name: sagemaker-python-sdk-ci-health-localmode-tests
88-
source-version: refs/heads/master-v2
88+
source-version-override: refs/heads/master-v2
8989
unit-test-v3:
9090
runs-on: ubuntu-latest
9191
strategy:
@@ -103,7 +103,7 @@ jobs:
103103
uses: aws-actions/aws-codebuild-run-build@v1
104104
with:
105105
project-name: sagemaker-python-sdk-ci-health-unit-test-v3
106-
source-version: refs/heads/master
106+
source-version-override: refs/heads/master
107107
env-vars-for-codebuild: |
108108
SUBMODULE
109109
env:

0 commit comments

Comments
 (0)