Skip to content

Commit 7e619b9

Browse files
Rong Rong (AI Infra)facebook-github-bot
Rong Rong (AI Infra)
authored andcommitted
First step to rearrange files in tools folder (pytorch#60473)
Summary: Changes including: - introduced `linter/`, `testing/`, `stats/` folders in `tools/` - move appropriate scripts into these folders - change grepped references in the pytorch/pytorch repo Next step - introduce `build/` folder for build scripts Pull Request resolved: pytorch#60473 Test Plan: - CI (this is important b/c pytorch/test-infra also rely on some script reference. - tools/tests/ Reviewed By: albanD Differential Revision: D29352716 Pulled By: walterddr fbshipit-source-id: bad40b5ce130b35dfd9e59b8af34f9025f3285fd
1 parent 40d2fe1 commit 7e619b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+203
-185
lines changed

.circleci/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ jobs:
686686
export CIRCLE_WORKFLOW_ID="$CIRCLE_WORKFLOW_ID"
687687
cd workspace
688688
export PYTHONPATH="\${PWD}"
689-
python tools/print_test_stats.py --upload-to-s3 --compare-with-s3 test
689+
python tools/stats/print_test_stats.py --upload-to-s3 --compare-with-s3 test
690690
EOL
691691
echo "(cat docker_commands.sh | docker exec -u jenkins -e LANG=C.UTF-8 -i "$id" bash) 2>&1" > command.sh
692692
unbuffer bash command.sh | ts
@@ -840,7 +840,7 @@ jobs:
840840
export AWS_SECRET_ACCESS_KEY=${CIRCLECI_AWS_SECRET_KEY_FOR_WIN_BUILD_V1}
841841
export PYTHONPATH="$PWD"
842842
pip install typing_extensions boto3
843-
python tools/print_test_stats.py --upload-to-s3 --compare-with-s3 test
843+
python tools/stats/print_test_stats.py --upload-to-s3 --compare-with-s3 test
844844
when: always
845845
- store_test_results:
846846
path: test/test-reports
@@ -1455,7 +1455,7 @@ jobs:
14551455
# Using the same IAM user to write stats to our OSS bucket
14561456
export AWS_ACCESS_KEY_ID=${CIRCLECI_AWS_ACCESS_KEY_FOR_SCCACHE_S3_BUCKET_V4}
14571457
export AWS_SECRET_ACCESS_KEY=${CIRCLECI_AWS_SECRET_KEY_FOR_SCCACHE_S3_BUCKET_V4}
1458-
python tools/print_test_stats.py --upload-to-s3 --compare-with-s3 test
1458+
python tools/stats/print_test_stats.py --upload-to-s3 --compare-with-s3 test
14591459
when: always
14601460
- store_test_results:
14611461
path: test/test-reports

.circleci/verbatim-sources/job-specs/job-specs-custom.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
# Using the same IAM user to write stats to our OSS bucket
214214
export AWS_ACCESS_KEY_ID=${CIRCLECI_AWS_ACCESS_KEY_FOR_SCCACHE_S3_BUCKET_V4}
215215
export AWS_SECRET_ACCESS_KEY=${CIRCLECI_AWS_SECRET_KEY_FOR_SCCACHE_S3_BUCKET_V4}
216-
python tools/print_test_stats.py --upload-to-s3 --compare-with-s3 test
216+
python tools/stats/print_test_stats.py --upload-to-s3 --compare-with-s3 test
217217
when: always
218218
- store_test_results:
219219
path: test/test-reports

.circleci/verbatim-sources/job-specs/pytorch-job-specs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ jobs:
224224
export CIRCLE_WORKFLOW_ID="$CIRCLE_WORKFLOW_ID"
225225
cd workspace
226226
export PYTHONPATH="\${PWD}"
227-
python tools/print_test_stats.py --upload-to-s3 --compare-with-s3 test
227+
python tools/stats/print_test_stats.py --upload-to-s3 --compare-with-s3 test
228228
EOL
229229
echo "(cat docker_commands.sh | docker exec -u jenkins -e LANG=C.UTF-8 -i "$id" bash) 2>&1" > command.sh
230230
unbuffer bash command.sh | ts
@@ -378,7 +378,7 @@ jobs:
378378
export AWS_SECRET_ACCESS_KEY=${CIRCLECI_AWS_SECRET_KEY_FOR_WIN_BUILD_V1}
379379
export PYTHONPATH="$PWD"
380380
pip install typing_extensions boto3
381-
python tools/print_test_stats.py --upload-to-s3 --compare-with-s3 test
381+
python tools/stats/print_test_stats.py --upload-to-s3 --compare-with-s3 test
382382
when: always
383383
- store_test_results:
384384
path: test/test-reports

.github/templates/linux_ci_workflow.yml.j2

+4-4
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
sh -c 'sudo chown -R jenkins . && .jenkins/pytorch/build.sh'
146146
- name: Display and upload binary build size statistics (Click Me)
147147
# temporary hack: set CIRCLE_* vars, until we update
148-
# tools/print_test_stats.py to natively support GitHub Actions
148+
# tools/stats/print_test_stats.py to natively support GitHub Actions
149149
env:
150150
SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.SCRIBE_GRAPHQL_ACCESS_TOKEN }}
151151
CIRCLE_BRANCH: ${{ steps.parse-ref.outputs.branch }}
@@ -337,7 +337,7 @@ jobs:
337337
- name: Checkout PyTorch
338338
uses: actions/checkout@v2
339339
with:
340-
# deep clone, to allow tools/print_test_stats.py to use Git commands
340+
# deep clone, to allow tools/stats/print_test_stats.py to use Git commands
341341
fetch-depth: 0
342342
- uses: actions/download-artifact@v2
343343
name: Download PyTorch Test Reports
@@ -360,7 +360,7 @@ jobs:
360360
run: .github/scripts/parse_ref.py
361361
- name: Display and upload test statistics (Click Me)
362362
# temporary hack: set CIRCLE_* vars, until we update
363-
# tools/print_test_stats.py to natively support GitHub Actions
363+
# tools/stats/print_test_stats.py to natively support GitHub Actions
364364
env:
365365
SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.SCRIBE_GRAPHQL_ACCESS_TOKEN }}
366366
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_OSSCI_METRICS_ACCESS_KEY_ID }}
@@ -373,7 +373,7 @@ jobs:
373373
CIRCLE_WORKFLOW_ID: '${{ github.run_id }}_${{ github.run_number }}'
374374
run: |
375375
export PYTHONPATH=$PWD
376-
python tools/print_test_stats.py --upload-to-s3 --compare-with-s3 test
376+
python tools/stats/print_test_stats.py --upload-to-s3 --compare-with-s3 test
377377
{%- if enable_doc_jobs %}
378378

379379
pytorch_python_doc_build:

.github/templates/windows_ci_workflow.yml.j2

+3-3
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ jobs:
203203
- name: Checkout PyTorch
204204
uses: actions/checkout@v2
205205
with:
206-
# deep clone, to allow tools/print_test_stats.py to use Git commands
206+
# deep clone, to allow tools/stats/print_test_stats.py to use Git commands
207207
fetch-depth: 0
208208
- uses: actions/download-artifact@v2
209209
name: Download PyTorch Test Reports
@@ -226,7 +226,7 @@ jobs:
226226
run: .github/scripts/parse_ref.py
227227
- name: Display and upload test statistics (Click Me)
228228
# temporary hack: set CIRCLE_* vars, until we update
229-
# tools/print_test_stats.py to natively support GitHub Actions
229+
# tools/stats/print_test_stats.py to natively support GitHub Actions
230230
env:
231231
SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.SCRIBE_GRAPHQL_ACCESS_TOKEN }}
232232
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_OSSCI_METRICS_ACCESS_KEY_ID }}
@@ -239,4 +239,4 @@ jobs:
239239
CIRCLE_WORKFLOW_ID: '${{ github.run_id }}_${{ github.run_number }}'
240240
run: |
241241
export PYTHONPATH=$PWD
242-
python tools/print_test_stats.py --upload-to-s3 --compare-with-s3 test
242+
python tools/stats/print_test_stats.py --upload-to-s3 --compare-with-s3 test

.github/workflows/build_linux_conda.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
path: /remote/**/*.bz2
9494
- name: Display and upload binary build size statistics (Click Me)
9595
# temporary hack: set CIRCLE_* vars, until we update
96-
# tools/print_test_stats.py to natively support GitHub Actions
96+
# tools/stats/print_test_stats.py to natively support GitHub Actions
9797
env:
9898
SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.SCRIBE_GRAPHQL_ACCESS_TOKEN }}
9999
CIRCLE_BRANCH: ${{ steps.parse-ref.outputs.branch }}

.github/workflows/build_linux_libtorch.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
path: /remote/**/*.zip
9393
- name: Display and upload binary build size statistics (Click Me)
9494
# temporary hack: set CIRCLE_* vars, until we update
95-
# tools/print_test_stats.py to natively support GitHub Actions
95+
# tools/stats/print_test_stats.py to natively support GitHub Actions
9696
env:
9797
SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.SCRIBE_GRAPHQL_ACCESS_TOKEN }}
9898
CIRCLE_BRANCH: ${{ steps.parse-ref.outputs.branch }}

.github/workflows/build_linux_wheels.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
path: /remote/**/*.whl
9292
- name: Display and upload binary build size statistics (Click Me)
9393
# temporary hack: set CIRCLE_* vars, until we update
94-
# tools/print_test_stats.py to natively support GitHub Actions
94+
# tools/stats/print_test_stats.py to natively support GitHub Actions
9595
env:
9696
SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.SCRIBE_GRAPHQL_ACCESS_TOKEN }}
9797
CIRCLE_BRANCH: ${{ steps.parse-ref.outputs.branch }}

.github/workflows/clang_format.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929
# only run clang-format on allowlisted files
3030
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
3131
echo "| clang-format failures found! Run: "
32-
echo "| tools/clang_format_ci.sh ${BASE_SHA} "
32+
echo "| tools/linter/clang_format_ci.sh ${BASE_SHA} "
3333
echo "| to fix this error. "
3434
echo "| For more info, see: https://github.com/pytorch/pytorch/wiki/clang-format "
3535
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
3636
37-
tools/clang_format_ci.sh "${BASE_SHA}"
37+
tools/linter/clang_format_ci.sh "${BASE_SHA}"
3838
3939
GIT_DIFF=$(git diff)
4040
if [[ -z $GIT_DIFF ]]; then

.github/workflows/lint.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Ensure correct trailing newlines
3232
if: always() && steps.requirements.outcome == 'success'
3333
run: |
34-
(! git --no-pager grep -Il '' -- . ':(exclude)**/contrib/**' ':(exclude)third_party' ':(exclude)**.expect' ':(exclude)tools/clang_format_hash' | tools/trailing_newlines.py || (echo "The above files do not have correct trailing newlines; please normalize them"; false))
34+
(! git --no-pager grep -Il '' -- . ':(exclude)**/contrib/**' ':(exclude)third_party' ':(exclude)**.expect' ':(exclude)tools/clang_format_hash' | tools/linter/trailing_newlines.py || (echo "The above files do not have correct trailing newlines; please normalize them"; false))
3535
- name: Ensure no trailing spaces
3636
if: always()
3737
run: |
@@ -160,7 +160,7 @@ jobs:
160160
- name: Run ShellCheck
161161
if: always() && steps.install_shellcheck.outcome == 'success'
162162
run: |
163-
if ! tools/run_shellcheck.sh .extracted_scripts .jenkins/pytorch; then
163+
if ! tools/linter/run_shellcheck.sh .extracted_scripts .jenkins/pytorch; then
164164
echo
165165
echo 'ShellCheck gave a nonzero exit code. Please fix the warnings'
166166
echo 'listed above. Note that if a path in one of the above warning'
@@ -233,7 +233,7 @@ jobs:
233233
- name: Install dependencies
234234
run: |
235235
set -eux
236-
pip install typing-extensions # for tools/translate_annotations.py
236+
pip install typing-extensions # for tools/linter/translate_annotations.py
237237
pip install -r requirements-flake8.txt
238238
flake8 --version
239239
- name: Run flake8
@@ -245,7 +245,7 @@ jobs:
245245
env:
246246
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
247247
run: |
248-
tools/translate_annotations.py \
248+
tools/linter/translate_annotations.py \
249249
--file="${GITHUB_WORKSPACE}"/flake8-output.txt \
250250
--regex='^(?P<filename>.*?):(?P<lineNumber>\d+):(?P<columnNumber>\d+): (?P<errorCode>\w+\d+) (?P<errorDesc>.*)' \
251251
--commit="$HEAD_SHA" \
@@ -275,7 +275,7 @@ jobs:
275275
- name: Checkout PyTorch
276276
uses: actions/checkout@v2
277277
with:
278-
fetch-depth: 0 # to allow tools/clang_tidy.py to do its thing
278+
fetch-depth: 0 # to allow tools/linter/clang_tidy.py to do its thing
279279
- name: Prepare output dir with HEAD commit SHA
280280
env:
281281
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
@@ -328,7 +328,7 @@ jobs:
328328
# /torch/csrc/generic/*.cpp is excluded because those files aren't actually built.
329329
# deploy/interpreter files are excluded due to using macros and other techniquies
330330
# that are not easily converted to accepted c++
331-
python3 tools/clang_tidy.py \
331+
python3 tools/linter/clang_tidy.py \
332332
--verbose \
333333
--paths torch/csrc/ \
334334
--diff-file pr.diff \
@@ -353,7 +353,7 @@ jobs:
353353
354354
cat "${GITHUB_WORKSPACE}"/clang-tidy-output.txt
355355
356-
tools/translate_annotations.py \
356+
tools/linter/translate_annotations.py \
357357
--file=clang-tidy-output.txt \
358358
--regex='^(?P<filename>.*?):(?P<lineNumber>\d+):(?P<columnNumber>\d+): (?P<errorDesc>.*?) \[(?P<errorCode>.*)\]' \
359359
--commit="$HEAD_SHA" \

.github/workflows/pytorch-linux-xenial-cuda10.2-cudnn7-py3.6-gcc7.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
sh -c 'sudo chown -R jenkins . && .jenkins/pytorch/build.sh'
144144
- name: Display and upload binary build size statistics (Click Me)
145145
# temporary hack: set CIRCLE_* vars, until we update
146-
# tools/print_test_stats.py to natively support GitHub Actions
146+
# tools/stats/print_test_stats.py to natively support GitHub Actions
147147
env:
148148
SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.SCRIBE_GRAPHQL_ACCESS_TOKEN }}
149149
CIRCLE_BRANCH: ${{ steps.parse-ref.outputs.branch }}
@@ -335,7 +335,7 @@ jobs:
335335
- name: Checkout PyTorch
336336
uses: actions/checkout@v2
337337
with:
338-
# deep clone, to allow tools/print_test_stats.py to use Git commands
338+
# deep clone, to allow tools/stats/print_test_stats.py to use Git commands
339339
fetch-depth: 0
340340
- uses: actions/download-artifact@v2
341341
name: Download PyTorch Test Reports
@@ -358,7 +358,7 @@ jobs:
358358
run: .github/scripts/parse_ref.py
359359
- name: Display and upload test statistics (Click Me)
360360
# temporary hack: set CIRCLE_* vars, until we update
361-
# tools/print_test_stats.py to natively support GitHub Actions
361+
# tools/stats/print_test_stats.py to natively support GitHub Actions
362362
env:
363363
SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.SCRIBE_GRAPHQL_ACCESS_TOKEN }}
364364
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_OSSCI_METRICS_ACCESS_KEY_ID }}
@@ -371,4 +371,4 @@ jobs:
371371
CIRCLE_WORKFLOW_ID: '${{ github.run_id }}_${{ github.run_number }}'
372372
run: |
373373
export PYTHONPATH=$PWD
374-
python tools/print_test_stats.py --upload-to-s3 --compare-with-s3 test
374+
python tools/stats/print_test_stats.py --upload-to-s3 --compare-with-s3 test

.github/workflows/pytorch-linux-xenial-cuda11.1-cudnn8-py3.6-gcc7.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
sh -c 'sudo chown -R jenkins . && .jenkins/pytorch/build.sh'
144144
- name: Display and upload binary build size statistics (Click Me)
145145
# temporary hack: set CIRCLE_* vars, until we update
146-
# tools/print_test_stats.py to natively support GitHub Actions
146+
# tools/stats/print_test_stats.py to natively support GitHub Actions
147147
env:
148148
SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.SCRIBE_GRAPHQL_ACCESS_TOKEN }}
149149
CIRCLE_BRANCH: ${{ steps.parse-ref.outputs.branch }}
@@ -335,7 +335,7 @@ jobs:
335335
- name: Checkout PyTorch
336336
uses: actions/checkout@v2
337337
with:
338-
# deep clone, to allow tools/print_test_stats.py to use Git commands
338+
# deep clone, to allow tools/stats/print_test_stats.py to use Git commands
339339
fetch-depth: 0
340340
- uses: actions/download-artifact@v2
341341
name: Download PyTorch Test Reports
@@ -358,7 +358,7 @@ jobs:
358358
run: .github/scripts/parse_ref.py
359359
- name: Display and upload test statistics (Click Me)
360360
# temporary hack: set CIRCLE_* vars, until we update
361-
# tools/print_test_stats.py to natively support GitHub Actions
361+
# tools/stats/print_test_stats.py to natively support GitHub Actions
362362
env:
363363
SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.SCRIBE_GRAPHQL_ACCESS_TOKEN }}
364364
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_OSSCI_METRICS_ACCESS_KEY_ID }}
@@ -371,4 +371,4 @@ jobs:
371371
CIRCLE_WORKFLOW_ID: '${{ github.run_id }}_${{ github.run_number }}'
372372
run: |
373373
export PYTHONPATH=$PWD
374-
python tools/print_test_stats.py --upload-to-s3 --compare-with-s3 test
374+
python tools/stats/print_test_stats.py --upload-to-s3 --compare-with-s3 test

.github/workflows/pytorch-linux-xenial-py3.6-gcc5.4.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ jobs:
144144
sh -c 'sudo chown -R jenkins . && .jenkins/pytorch/build.sh'
145145
- name: Display and upload binary build size statistics (Click Me)
146146
# temporary hack: set CIRCLE_* vars, until we update
147-
# tools/print_test_stats.py to natively support GitHub Actions
147+
# tools/stats/print_test_stats.py to natively support GitHub Actions
148148
env:
149149
SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.SCRIBE_GRAPHQL_ACCESS_TOKEN }}
150150
CIRCLE_BRANCH: ${{ steps.parse-ref.outputs.branch }}
@@ -336,7 +336,7 @@ jobs:
336336
- name: Checkout PyTorch
337337
uses: actions/checkout@v2
338338
with:
339-
# deep clone, to allow tools/print_test_stats.py to use Git commands
339+
# deep clone, to allow tools/stats/print_test_stats.py to use Git commands
340340
fetch-depth: 0
341341
- uses: actions/download-artifact@v2
342342
name: Download PyTorch Test Reports
@@ -359,7 +359,7 @@ jobs:
359359
run: .github/scripts/parse_ref.py
360360
- name: Display and upload test statistics (Click Me)
361361
# temporary hack: set CIRCLE_* vars, until we update
362-
# tools/print_test_stats.py to natively support GitHub Actions
362+
# tools/stats/print_test_stats.py to natively support GitHub Actions
363363
env:
364364
SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.SCRIBE_GRAPHQL_ACCESS_TOKEN }}
365365
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_OSSCI_METRICS_ACCESS_KEY_ID }}
@@ -372,7 +372,7 @@ jobs:
372372
CIRCLE_WORKFLOW_ID: '${{ github.run_id }}_${{ github.run_number }}'
373373
run: |
374374
export PYTHONPATH=$PWD
375-
python tools/print_test_stats.py --upload-to-s3 --compare-with-s3 test
375+
python tools/stats/print_test_stats.py --upload-to-s3 --compare-with-s3 test
376376
377377
pytorch_python_doc_build:
378378
runs-on: linux.2xlarge

.github/workflows/pytorch-win-vs2019-cpu-py3.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ jobs:
167167
- name: Checkout PyTorch
168168
uses: actions/checkout@v2
169169
with:
170-
# deep clone, to allow tools/print_test_stats.py to use Git commands
170+
# deep clone, to allow tools/stats/print_test_stats.py to use Git commands
171171
fetch-depth: 0
172172
- uses: actions/download-artifact@v2
173173
name: Download PyTorch Test Reports
@@ -190,7 +190,7 @@ jobs:
190190
run: .github/scripts/parse_ref.py
191191
- name: Display and upload test statistics (Click Me)
192192
# temporary hack: set CIRCLE_* vars, until we update
193-
# tools/print_test_stats.py to natively support GitHub Actions
193+
# tools/stats/print_test_stats.py to natively support GitHub Actions
194194
env:
195195
SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.SCRIBE_GRAPHQL_ACCESS_TOKEN }}
196196
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_OSSCI_METRICS_ACCESS_KEY_ID }}
@@ -203,4 +203,4 @@ jobs:
203203
CIRCLE_WORKFLOW_ID: '${{ github.run_id }}_${{ github.run_number }}'
204204
run: |
205205
export PYTHONPATH=$PWD
206-
python tools/print_test_stats.py --upload-to-s3 --compare-with-s3 test
206+
python tools/stats/print_test_stats.py --upload-to-s3 --compare-with-s3 test

.github/workflows/pytorch-win-vs2019-cuda10-cudnn7-py3.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ jobs:
185185
- name: Checkout PyTorch
186186
uses: actions/checkout@v2
187187
with:
188-
# deep clone, to allow tools/print_test_stats.py to use Git commands
188+
# deep clone, to allow tools/stats/print_test_stats.py to use Git commands
189189
fetch-depth: 0
190190
- uses: actions/download-artifact@v2
191191
name: Download PyTorch Test Reports
@@ -208,7 +208,7 @@ jobs:
208208
run: .github/scripts/parse_ref.py
209209
- name: Display and upload test statistics (Click Me)
210210
# temporary hack: set CIRCLE_* vars, until we update
211-
# tools/print_test_stats.py to natively support GitHub Actions
211+
# tools/stats/print_test_stats.py to natively support GitHub Actions
212212
env:
213213
SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.SCRIBE_GRAPHQL_ACCESS_TOKEN }}
214214
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_OSSCI_METRICS_ACCESS_KEY_ID }}
@@ -221,4 +221,4 @@ jobs:
221221
CIRCLE_WORKFLOW_ID: '${{ github.run_id }}_${{ github.run_number }}'
222222
run: |
223223
export PYTHONPATH=$PWD
224-
python tools/print_test_stats.py --upload-to-s3 --compare-with-s3 test
224+
python tools/stats/print_test_stats.py --upload-to-s3 --compare-with-s3 test

0 commit comments

Comments
 (0)