Skip to content

Commit b9395a4

Browse files
author
Caroline Chen
authored
Fix Linux smoke tests (#1906)
1 parent 234627f commit b9395a4

File tree

3 files changed

+62
-23
lines changed

3 files changed

+62
-23
lines changed

.circleci/config.yml

Lines changed: 35 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/config.yml.in

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,8 @@ binary_common: &binary_common
9797
smoke_test_common: &smoke_test_common
9898
<<: *binary_common
9999
docker:
100-
- image: 308535385114.dkr.ecr.us-east-1.amazonaws.com/torchaudio/smoke_test:56c846a5-acaa-41a7-92f5-46ec66186c61
101-
aws_auth:
102-
aws_access_key_id: ${ECR_AWS_ACCESS_KEY}
103-
aws_secret_access_key: ${ECR_AWS_SECRET_ACCESS_KEY}
100+
- image: pytorch/torchaudio_unittest_base:smoke_test-20211019
101+
resource_class: large
104102

105103
jobs:
106104
circleci_consistency:
@@ -337,6 +335,26 @@ jobs:
337335
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
338336
python -c "import torchaudio"
339337

338+
smoke_test_linux_conda_gpu:
339+
<<: *smoke_test_common
340+
steps:
341+
- attach_workspace:
342+
at: ~/workspace
343+
- designate_upload_channel
344+
- load_conda_channel_flags
345+
- run:
346+
name: install binaries
347+
command: |
348+
set -x
349+
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
350+
conda install -v -y -c pytorch-${UPLOAD_CHANNEL} pytorch cudatoolkit=${CU_VERSION:2:2}.${CU_VERSION:4} -c conda-forge
351+
conda install -v -y -c file://$HOME/workspace/conda-bld torchaudio
352+
- run:
353+
name: smoke test
354+
command: |
355+
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
356+
python -c "import torchaudio"
357+
340358
smoke_test_linux_pip:
341359
<<: *smoke_test_common
342360
steps:
@@ -349,7 +367,7 @@ jobs:
349367
command: |
350368
set -x
351369
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
352-
pip install $(ls ~/workspace/torchaudio*.whl) -f "https://download.pytorch.org/whl/${UPLOAD_CHANNEL}/torch_${UPLOAD_CHANNEL}.html"
370+
pip install $(ls ~/workspace/torchaudio*.whl) -f "https://download.pytorch.org/whl/${UPLOAD_CHANNEL}/${CU_VERSION}/torch_${UPLOAD_CHANNEL}.html"
353371
- run:
354372
name: smoke test
355373
command: |

.circleci/regenerate.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ def generate_smoketest_workflow(pydistro, base_workflow_name, filter_branch, pyt
190190
if filter_branch:
191191
d["filters"] = gen_filter_branch_tree(filter_branch)
192192

193-
return {f"smoke_test_{os_type}_{pydistro}": d}
193+
smoke_name = f"smoke_test_{os_type}_{pydistro}"
194+
if pydistro == "conda" and os_type == "linux" and cu_version != "cpu":
195+
smoke_name += "_gpu"
196+
return {smoke_name: d}
194197

195198

196199
def indent(indentation, data_list):

0 commit comments

Comments
 (0)