3737 PR_LABELS: ${{ toJson(github.event.pull_request.labels.*.name) }}
3838 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3939 AWS_DEFAULT_REGION: us-east-1
40- CIRCLE_PR_NUMBER: ${{ github.event.pull_request.number }}
41- CIRCLE_SHA1: ${{ github.event.pull_request.head.sha || github.sha }}
40+ PR_NUMBER: ${{ github.event.pull_request.number }}
41+ SHA1: ${{ github.event.pull_request.head.sha || github.sha }}
42+ PYTORCH_RETRY_TEST_CASES: 1
4243!{{ common.concurrency(build_environment) }}
4344
4445jobs:
6263 !{{ common.parse_ref() }}
6364 - name: Build
6465 env:
65- CIRCLE_BRANCH : ${{ steps.parse-ref.outputs.branch }}
66+ BRANCH : ${{ steps.parse-ref.outputs.branch }}
6667 run: |
6768 # detached container should get cleaned up by teardown_ec2_linux
6869 container_name=$(docker run \
7172 -e MAX_JOBS="$(nproc --ignore=2)" \
7273 -e AWS_DEFAULT_REGION \
7374 -e IS_GHA \
74- -e CIRCLE_PR_NUMBER \
75- -e CIRCLE_SHA1 \
76- -e CIRCLE_BRANCH \
75+ -e PR_NUMBER \
76+ -e SHA1 \
77+ -e BRANCH \
7778 -e GITHUB_RUN_ID \
7879 -e SCCACHE_BUCKET \
7980 -e XLA_CLANG_CACHE_S3_BUCKET_NAME \
9899 # tools/stats/print_test_stats.py to natively support GitHub Actions
99100 env:
100101 SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.SCRIBE_GRAPHQL_ACCESS_TOKEN }}
101- CIRCLE_BRANCH : ${{ steps.parse-ref.outputs.branch }}
102- CIRCLE_TAG : ${{ steps.parse-ref.outputs.tag }}
103- CIRCLE_WORKFLOW_ID : '${{ github.run_id }}_${{ github.run_number }}'
102+ BRANCH : ${{ steps.parse-ref.outputs.branch }}
103+ TAG : ${{ steps.parse-ref.outputs.tag }}
104+ WORKFLOW_ID : '${{ github.run_id }}_${{ github.run_number }}'
104105 run: |
105106 COMMIT_TIME=$(git log --max-count=1 --format=%ct || echo 0)
106107 export COMMIT_TIME
@@ -223,7 +224,7 @@ jobs:
223224 - name: Test
224225 env:
225226 PR_NUMBER: ${{ github.event.pull_request.number }}
226- CIRCLE_BRANCH : ${{ steps.parse-ref.outputs.branch }}
227+ BRANCH : ${{ steps.parse-ref.outputs.branch }}
227228 # Time out the test phase after !{{ timeout_after }} minutes
228229 timeout-minutes: !{{ timeout_after }}
229230 run: |
@@ -248,9 +249,8 @@ jobs:
248249 -e GITHUB_ACTIONS \
249250 -e IN_CI \
250251 -e IS_GHA \
251- -e CIRCLE_BRANCH \
252- -e CIRCLE_SHA1 \
253- -e CIRCLE_PR_NUMBER \
252+ -e BRANCH \
253+ -e SHA1 \
254254 -e AWS_DEFAULT_REGION \
255255 -e IN_WHEEL_TEST \
256256 -e SHARD_NUMBER \
@@ -325,7 +325,7 @@ jobs:
325325 -e CUSTOM_TEST_ARTIFACT_BUILD_DIR \
326326 -e IN_CI \
327327 -e MAX_JOBS="$(nproc --ignore=2)" \
328- -e CIRCLE_SHA1 ="$GITHUB_SHA" \
328+ -e SHA1 ="$GITHUB_SHA" \
329329 -e DOCS_VERSION="${target}" \
330330 -e DOCS_TYPE \
331331 -e PR_LABELS \
0 commit comments