Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
b9395a4f
Unverified
Commit
b9395a4f
authored
Oct 19, 2021
by
Caroline Chen
Committed by
GitHub
Oct 19, 2021
Browse files
Fix Linux smoke tests (#1906)
parent
234627f8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
23 deletions
+62
-23
.circleci/config.yml
.circleci/config.yml
+35
-17
.circleci/config.yml.in
.circleci/config.yml.in
+23
-5
.circleci/regenerate.py
.circleci/regenerate.py
+4
-1
No files found.
.circleci/config.yml
View file @
b9395a4f
...
@@ -97,10 +97,8 @@ binary_common: &binary_common
...
@@ -97,10 +97,8 @@ binary_common: &binary_common
smoke_test_common
:
&smoke_test_common
smoke_test_common
:
&smoke_test_common
<<
:
*binary_common
<<
:
*binary_common
docker
:
docker
:
-
image
:
308535385114.dkr.ecr.us-east-1.amazonaws.com/torchaudio/smoke_test:56c846a5-acaa-41a7-92f5-46ec66186c61
-
image
:
pytorch/torchaudio_unittest_base:smoke_test-20211019
aws_auth
:
resource_class
:
large
aws_access_key_id
:
${ECR_AWS_ACCESS_KEY}
aws_secret_access_key
:
${ECR_AWS_SECRET_ACCESS_KEY}
jobs
:
jobs
:
circleci_consistency
:
circleci_consistency
:
...
@@ -337,6 +335,26 @@ jobs:
...
@@ -337,6 +335,26 @@ jobs:
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
python -c "import torchaudio"
python -c "import torchaudio"
smoke_test_linux_conda_gpu
:
<<
:
*smoke_test_common
steps
:
-
attach_workspace
:
at
:
~/workspace
-
designate_upload_channel
-
load_conda_channel_flags
-
run
:
name
:
install binaries
command
:
|
set -x
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
conda install -v -y -c pytorch-${UPLOAD_CHANNEL} pytorch cudatoolkit=${CU_VERSION:2:2}.${CU_VERSION:4} -c conda-forge
conda install -v -y -c file://$HOME/workspace/conda-bld torchaudio
-
run
:
name
:
smoke test
command
:
|
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
python -c "import torchaudio"
smoke_test_linux_pip
:
smoke_test_linux_pip
:
<<
:
*smoke_test_common
<<
:
*smoke_test_common
steps
:
steps
:
...
@@ -349,7 +367,7 @@ jobs:
...
@@ -349,7 +367,7 @@ jobs:
command
:
|
command
:
|
set -x
set -x
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
pip install $(ls ~/workspace/torchaudio*.whl) -f "https://download.pytorch.org/whl/${UPLOAD_CHANNEL}/torch_${UPLOAD_CHANNEL}.html"
pip install $(ls ~/workspace/torchaudio*.whl) -f "https://download.pytorch.org/whl/${UPLOAD_CHANNEL}/
${CU_VERSION}/
torch_${UPLOAD_CHANNEL}.html"
-
run
:
-
run
:
name
:
smoke test
name
:
smoke test
command
:
|
command
:
|
...
@@ -2359,7 +2377,7 @@ workflows:
...
@@ -2359,7 +2377,7 @@ workflows:
name
:
nightly_binary_linux_conda_py3.6_cu102_upload
name
:
nightly_binary_linux_conda_py3.6_cu102_upload
requires
:
requires
:
-
nightly_binary_linux_conda_py3.6_cu102
-
nightly_binary_linux_conda_py3.6_cu102
-
smoke_test_linux_conda
:
-
smoke_test_linux_conda
_gpu
:
cuda_version
:
cu102
cuda_version
:
cu102
filters
:
filters
:
branches
:
branches
:
...
@@ -2395,7 +2413,7 @@ workflows:
...
@@ -2395,7 +2413,7 @@ workflows:
name
:
nightly_binary_linux_conda_py3.6_cu111_upload
name
:
nightly_binary_linux_conda_py3.6_cu111_upload
requires
:
requires
:
-
nightly_binary_linux_conda_py3.6_cu111
-
nightly_binary_linux_conda_py3.6_cu111
-
smoke_test_linux_conda
:
-
smoke_test_linux_conda
_gpu
:
cuda_version
:
cu111
cuda_version
:
cu111
filters
:
filters
:
branches
:
branches
:
...
@@ -2431,7 +2449,7 @@ workflows:
...
@@ -2431,7 +2449,7 @@ workflows:
name
:
nightly_binary_linux_conda_py3.6_cu113_upload
name
:
nightly_binary_linux_conda_py3.6_cu113_upload
requires
:
requires
:
-
nightly_binary_linux_conda_py3.6_cu113
-
nightly_binary_linux_conda_py3.6_cu113
-
smoke_test_linux_conda
:
-
smoke_test_linux_conda
_gpu
:
cuda_version
:
cu113
cuda_version
:
cu113
filters
:
filters
:
branches
:
branches
:
...
@@ -2503,7 +2521,7 @@ workflows:
...
@@ -2503,7 +2521,7 @@ workflows:
name
:
nightly_binary_linux_conda_py3.7_cu102_upload
name
:
nightly_binary_linux_conda_py3.7_cu102_upload
requires
:
requires
:
-
nightly_binary_linux_conda_py3.7_cu102
-
nightly_binary_linux_conda_py3.7_cu102
-
smoke_test_linux_conda
:
-
smoke_test_linux_conda
_gpu
:
cuda_version
:
cu102
cuda_version
:
cu102
filters
:
filters
:
branches
:
branches
:
...
@@ -2539,7 +2557,7 @@ workflows:
...
@@ -2539,7 +2557,7 @@ workflows:
name
:
nightly_binary_linux_conda_py3.7_cu111_upload
name
:
nightly_binary_linux_conda_py3.7_cu111_upload
requires
:
requires
:
-
nightly_binary_linux_conda_py3.7_cu111
-
nightly_binary_linux_conda_py3.7_cu111
-
smoke_test_linux_conda
:
-
smoke_test_linux_conda
_gpu
:
cuda_version
:
cu111
cuda_version
:
cu111
filters
:
filters
:
branches
:
branches
:
...
@@ -2575,7 +2593,7 @@ workflows:
...
@@ -2575,7 +2593,7 @@ workflows:
name
:
nightly_binary_linux_conda_py3.7_cu113_upload
name
:
nightly_binary_linux_conda_py3.7_cu113_upload
requires
:
requires
:
-
nightly_binary_linux_conda_py3.7_cu113
-
nightly_binary_linux_conda_py3.7_cu113
-
smoke_test_linux_conda
:
-
smoke_test_linux_conda
_gpu
:
cuda_version
:
cu113
cuda_version
:
cu113
filters
:
filters
:
branches
:
branches
:
...
@@ -2647,7 +2665,7 @@ workflows:
...
@@ -2647,7 +2665,7 @@ workflows:
name
:
nightly_binary_linux_conda_py3.8_cu102_upload
name
:
nightly_binary_linux_conda_py3.8_cu102_upload
requires
:
requires
:
-
nightly_binary_linux_conda_py3.8_cu102
-
nightly_binary_linux_conda_py3.8_cu102
-
smoke_test_linux_conda
:
-
smoke_test_linux_conda
_gpu
:
cuda_version
:
cu102
cuda_version
:
cu102
filters
:
filters
:
branches
:
branches
:
...
@@ -2683,7 +2701,7 @@ workflows:
...
@@ -2683,7 +2701,7 @@ workflows:
name
:
nightly_binary_linux_conda_py3.8_cu111_upload
name
:
nightly_binary_linux_conda_py3.8_cu111_upload
requires
:
requires
:
-
nightly_binary_linux_conda_py3.8_cu111
-
nightly_binary_linux_conda_py3.8_cu111
-
smoke_test_linux_conda
:
-
smoke_test_linux_conda
_gpu
:
cuda_version
:
cu111
cuda_version
:
cu111
filters
:
filters
:
branches
:
branches
:
...
@@ -2719,7 +2737,7 @@ workflows:
...
@@ -2719,7 +2737,7 @@ workflows:
name
:
nightly_binary_linux_conda_py3.8_cu113_upload
name
:
nightly_binary_linux_conda_py3.8_cu113_upload
requires
:
requires
:
-
nightly_binary_linux_conda_py3.8_cu113
-
nightly_binary_linux_conda_py3.8_cu113
-
smoke_test_linux_conda
:
-
smoke_test_linux_conda
_gpu
:
cuda_version
:
cu113
cuda_version
:
cu113
filters
:
filters
:
branches
:
branches
:
...
@@ -2791,7 +2809,7 @@ workflows:
...
@@ -2791,7 +2809,7 @@ workflows:
name
:
nightly_binary_linux_conda_py3.9_cu102_upload
name
:
nightly_binary_linux_conda_py3.9_cu102_upload
requires
:
requires
:
-
nightly_binary_linux_conda_py3.9_cu102
-
nightly_binary_linux_conda_py3.9_cu102
-
smoke_test_linux_conda
:
-
smoke_test_linux_conda
_gpu
:
cuda_version
:
cu102
cuda_version
:
cu102
filters
:
filters
:
branches
:
branches
:
...
@@ -2827,7 +2845,7 @@ workflows:
...
@@ -2827,7 +2845,7 @@ workflows:
name
:
nightly_binary_linux_conda_py3.9_cu111_upload
name
:
nightly_binary_linux_conda_py3.9_cu111_upload
requires
:
requires
:
-
nightly_binary_linux_conda_py3.9_cu111
-
nightly_binary_linux_conda_py3.9_cu111
-
smoke_test_linux_conda
:
-
smoke_test_linux_conda
_gpu
:
cuda_version
:
cu111
cuda_version
:
cu111
filters
:
filters
:
branches
:
branches
:
...
@@ -2863,7 +2881,7 @@ workflows:
...
@@ -2863,7 +2881,7 @@ workflows:
name
:
nightly_binary_linux_conda_py3.9_cu113_upload
name
:
nightly_binary_linux_conda_py3.9_cu113_upload
requires
:
requires
:
-
nightly_binary_linux_conda_py3.9_cu113
-
nightly_binary_linux_conda_py3.9_cu113
-
smoke_test_linux_conda
:
-
smoke_test_linux_conda
_gpu
:
cuda_version
:
cu113
cuda_version
:
cu113
filters
:
filters
:
branches
:
branches
:
...
...
.circleci/config.yml.in
View file @
b9395a4f
...
@@ -97,10 +97,8 @@ binary_common: &binary_common
...
@@ -97,10 +97,8 @@ binary_common: &binary_common
smoke_test_common: &smoke_test_common
smoke_test_common: &smoke_test_common
<<: *binary_common
<<: *binary_common
docker:
docker:
- image: 308535385114.dkr.ecr.us-east-1.amazonaws.com/torchaudio/smoke_test:56c846a5-acaa-41a7-92f5-46ec66186c61
- image: pytorch/torchaudio_unittest_base:smoke_test-20211019
aws_auth:
resource_class: large
aws_access_key_id: ${ECR_AWS_ACCESS_KEY}
aws_secret_access_key: ${ECR_AWS_SECRET_ACCESS_KEY}
jobs:
jobs:
circleci_consistency:
circleci_consistency:
...
@@ -337,6 +335,26 @@ jobs:
...
@@ -337,6 +335,26 @@ jobs:
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
python -c "import torchaudio"
python -c "import torchaudio"
smoke_test_linux_conda_gpu:
<<: *smoke_test_common
steps:
- attach_workspace:
at: ~/workspace
- designate_upload_channel
- load_conda_channel_flags
- run:
name: install binaries
command: |
set -x
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
conda install -v -y -c pytorch-${UPLOAD_CHANNEL} pytorch cudatoolkit=${CU_VERSION:2:2}.${CU_VERSION:4} -c conda-forge
conda install -v -y -c file://$HOME/workspace/conda-bld torchaudio
- run:
name: smoke test
command: |
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
python -c "import torchaudio"
smoke_test_linux_pip:
smoke_test_linux_pip:
<<: *smoke_test_common
<<: *smoke_test_common
steps:
steps:
...
@@ -349,7 +367,7 @@ jobs:
...
@@ -349,7 +367,7 @@ jobs:
command: |
command: |
set -x
set -x
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
pip install $(ls ~/workspace/torchaudio*.whl) -f "https://download.pytorch.org/whl/${UPLOAD_CHANNEL}/torch_${UPLOAD_CHANNEL}.html"
pip install $(ls ~/workspace/torchaudio*.whl) -f "https://download.pytorch.org/whl/${UPLOAD_CHANNEL}/
${CU_VERSION}/
torch_${UPLOAD_CHANNEL}.html"
- run:
- run:
name: smoke test
name: smoke test
command: |
command: |
...
...
.circleci/regenerate.py
View file @
b9395a4f
...
@@ -190,7 +190,10 @@ def generate_smoketest_workflow(pydistro, base_workflow_name, filter_branch, pyt
...
@@ -190,7 +190,10 @@ def generate_smoketest_workflow(pydistro, base_workflow_name, filter_branch, pyt
if
filter_branch
:
if
filter_branch
:
d
[
"filters"
]
=
gen_filter_branch_tree
(
filter_branch
)
d
[
"filters"
]
=
gen_filter_branch_tree
(
filter_branch
)
return
{
f
"smoke_test_
{
os_type
}
_
{
pydistro
}
"
:
d
}
smoke_name
=
f
"smoke_test_
{
os_type
}
_
{
pydistro
}
"
if
pydistro
==
"conda"
and
os_type
==
"linux"
and
cu_version
!=
"cpu"
:
smoke_name
+=
"_gpu"
return
{
smoke_name
:
d
}
def
indent
(
indentation
,
data_list
):
def
indent
(
indentation
,
data_list
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment