Skip to content

[TensorFlow][Training][Sagemaker] TensorFlow 2.21.0 Currency Release #61

[TensorFlow][Training][Sagemaker] TensorFlow 2.21.0 Currency Release

[TensorFlow][Training][Sagemaker] TensorFlow 2.21.0 Currency Release #61

name: "PR - PyTorch 2.11 CPU"
on:
# TEMP: Enable after all frameworks are refactored
workflow_dispatch:
# pull_request:
# branches: [main]
# types: [opened, reopened, synchronize]
# paths:
# - ".github/config/image/pytorch/2.11-*-cpu.yml"
# - ".github/workflows/pytorch.pipeline.yml"
# - ".github/workflows/pytorch.pr-2.11-cpu.yml"
# - "docker/pytorch/2.11/Dockerfile.cpu"
# - "scripts/docker/common/**"
# - "scripts/docker/pytorch/**"
# - "scripts/docker/telemetry/**"
# - "test/pytorch/unit/**"
# - "test/sanity/**"
# - "test/security/data/ecr_scan_allowlist/pytorch_runtime/**"
# - "test/telemetry/**"
# - "!docs/**"
permissions:
contents: read
pull-requests: read
jobs:
gatekeeper:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.base.sha }}
fetch-depth: 1
- uses: ./.github/actions/pr-permission-gate
check-changes:
needs: [gatekeeper]
runs-on: ubuntu-latest
outputs:
build-change: ${{ steps.changes.outputs.build-change }}
sanity-test-change: ${{ steps.changes.outputs.sanity-test-change }}
telemetry-test-change: ${{ steps.changes.outputs.telemetry-test-change }}
unit-test-change: ${{ steps.changes.outputs.unit-test-change }}
steps:
- uses: actions/checkout@v6
- uses: dorny/paths-filter@v4
id: changes
with:
filters: |
build-change:
- ".github/config/image/pytorch/2.11-*-cpu.yml"
- "docker/pytorch/2.11/Dockerfile.cpu"
- "scripts/docker/common/**"
- "scripts/docker/pytorch/**"
- "test/security/data/ecr_scan_allowlist/pytorch_runtime/**"
sanity-test-change:
- "test/sanity/**"
telemetry-test-change:
- "scripts/docker/telemetry/**"
- "test/telemetry/**"
unit-test-change:
- "test/pytorch/unit/**"
discover:
needs: [gatekeeper]
runs-on: ubuntu-latest
outputs:
configs: ${{ steps.discover.outputs.configs }}
steps:
- uses: actions/checkout@v6
- id: discover
uses: ./.github/actions/discover-configs
with:
pattern: ".github/config/image/pytorch/2.11-*-cpu.yml"
pipeline:
needs: [check-changes, discover]
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(needs.discover.outputs.configs) }}
uses: ./.github/workflows/pytorch.pipeline.yml
with:
config-file: ${{ matrix.config_file }}
tag-suffix: pr-${{ github.event.pull_request.number }}
build: ${{ needs.check-changes.outputs.build-change == 'true' }}
run-efa-test: false
run-multi-gpu-test: false
run-multi-node-test: false
run-sanity-test: ${{ needs.check-changes.outputs.build-change == 'true' || needs.check-changes.outputs.sanity-test-change == 'true' }}
run-security-test: ${{ needs.check-changes.outputs.build-change == 'true' }}
run-single-gpu-test: false
run-telemetry-test: ${{ needs.check-changes.outputs.build-change == 'true' || needs.check-changes.outputs.telemetry-test-change == 'true' }}
run-unit-test: ${{ needs.check-changes.outputs.build-change == 'true' || needs.check-changes.outputs.unit-test-change == 'true' }}
release: false
secrets: inherit