Skip to content

Commit 8c3096f

Browse files
authored
fix(ci): point PR unit-tests at the CDK-managed V3 project (aws#6082)
The PR-check `unit-tests` job invoked per-submodule CodeBuild projects named `sagemaker-python-sdk-ci-<submodule>-unit-tests`. Those projects were created manually (no CloudFormation tags) and are not managed by the SageMakerMLFPySDKInfraCDK pipeline, so they drifted stale: they still run `tox ... --cov=.` (last modified 2026-06-15) even though the merged and deployed buildspec CR changed this to `--cov=sagemaker`. As a result PR coverage kept reporting the old test-file-inflated numbers and never reflected the fix. Point the job at the single CDK/pipeline-managed project `sagemaker-python-sdk-ci-health-unit-test-v3` (createCIUnitV3BuildSpec), driven by the `SUBMODULE` env var, exactly as the ci-health workflow invokes it. This project carries the deployed `--cov=sagemaker` buildspec, so PR coverage now tracks the intended product-only measurement, and the CI wiring stays in sync with the CDK going forward. The manual per-submodule `-unit-tests` projects can be retired separately.
1 parent f8d3d99 commit 8c3096f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎.github/workflows/pr-checks-master.yml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,18 @@ jobs:
208208
- name: Run Unit Tests for ${{ matrix.submodule }}
209209
uses: aws-actions/aws-codebuild-run-build@v1
210210
with:
211-
project-name: ${{ github.event.repository.name }}-ci-${{ matrix.submodule }}-unit-tests
211+
# Use the single CDK-managed V3 unit-test project (driven by the SUBMODULE
212+
# env var), the same project the CI-health workflow uses. The previous
213+
# per-submodule projects (sagemaker-python-sdk-ci-<submodule>-unit-tests)
214+
# were created manually, are not CDK/pipeline-managed, and had drifted
215+
# stale (e.g. still running `--cov=.` instead of the deployed
216+
# `--cov=sagemaker`), so PR coverage never reflected buildspec fixes.
217+
project-name: ${{ github.event.repository.name }}-ci-health-unit-test-v3
212218
source-version-override: 'refs/pull/${{ github.event.pull_request.number }}/head^{${{ github.event.pull_request.head.sha }}}'
219+
env-vars-for-codebuild: |
220+
SUBMODULE
221+
env:
222+
SUBMODULE: ${{ matrix.submodule }}
213223

214224
integ-tests:
215225
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)