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
241ab1e8
"...text-generation-inference.git" did not exist on "23d82b8fb6e65642f55843f0c64ec90094074ed7"
Unverified
Commit
241ab1e8
authored
May 26, 2020
by
guyang3532
Committed by
GitHub
May 26, 2020
Browse files
Add windows smoke test job to CI (#655)
parent
313f4f5c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
146 additions
and
4 deletions
+146
-4
.circleci/config.yml
.circleci/config.yml
+95
-0
.circleci/config.yml.in
.circleci/config.yml.in
+47
-0
.circleci/regenerate.py
.circleci/regenerate.py
+4
-4
No files found.
.circleci/config.yml
View file @
241ab1e8
...
...
@@ -241,6 +241,53 @@ jobs:
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
python -c "import torchaudio"
smoke_test_windows_conda
:
<<
:
*binary_common
executor
:
name
:
windows-cpu
steps
:
-
attach_workspace
:
at
:
~/workspace
-
run
:
name
:
install binaries
command
:
|
set -x
eval "$('/C/tools/miniconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
conda env remove -n python${PYTHON_VERSION} || true
conda create -yn python${PYTHON_VERSION} python=${PYTHON_VERSION}
conda activate python${PYTHON_VERSION}
conda install -v -y -c pytorch-nightly pytorch
conda install -v -y $(ls ~/workspace/torchaudio*.tar.bz2)
-
run
:
name
:
smoke test
command
:
|
eval "$('/C/tools/miniconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
conda activate python${PYTHON_VERSION}
python -c "import torchaudio"
smoke_test_windows_pip
:
<<
:
*binary_common
executor
:
name
:
windows-cpu
steps
:
-
attach_workspace
:
at
:
~/workspace
-
run
:
name
:
install binaries
command
:
|
set -x
eval "$('/C/tools/miniconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
conda env remove -n python${PYTHON_VERSION} || true
conda create -yn python${PYTHON_VERSION} python=${PYTHON_VERSION}
conda activate python${PYTHON_VERSION}
pip install $(ls ~/workspace/torchaudio*.whl) -f https://download.pytorch.org/whl/nightly/torch_nightly.html
-
run
:
name
:
smoke test
command
:
|
eval "$('/C/tools/miniconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
conda activate python${PYTHON_VERSION}
python -c "import torchaudio"
smoke_test_docker_image_build
:
machine
:
image
:
ubuntu-1604:201903-01
...
...
@@ -664,6 +711,14 @@ workflows:
name
:
nightly_binary_windows_wheel_py3.6_upload
requires
:
-
nightly_binary_windows_wheel_py3.6
-
smoke_test_windows_pip
:
filters
:
branches
:
only
:
nightly
name
:
nightly_binary_windows_wheel_py3.6_smoke_test_pip
python_version
:
'
3.6'
requires
:
-
nightly_binary_windows_wheel_py3.6_upload
-
binary_windows_wheel
:
filters
:
branches
:
...
...
@@ -678,6 +733,14 @@ workflows:
name
:
nightly_binary_windows_wheel_py3.7_upload
requires
:
-
nightly_binary_windows_wheel_py3.7
-
smoke_test_windows_pip
:
filters
:
branches
:
only
:
nightly
name
:
nightly_binary_windows_wheel_py3.7_smoke_test_pip
python_version
:
'
3.7'
requires
:
-
nightly_binary_windows_wheel_py3.7_upload
-
binary_windows_wheel
:
filters
:
branches
:
...
...
@@ -692,6 +755,14 @@ workflows:
name
:
nightly_binary_windows_wheel_py3.8_upload
requires
:
-
nightly_binary_windows_wheel_py3.8
-
smoke_test_windows_pip
:
filters
:
branches
:
only
:
nightly
name
:
nightly_binary_windows_wheel_py3.8_smoke_test_pip
python_version
:
'
3.8'
requires
:
-
nightly_binary_windows_wheel_py3.8_upload
-
binary_linux_conda
:
filters
:
branches
:
...
...
@@ -814,6 +885,14 @@ workflows:
name
:
nightly_binary_windows_conda_py3.6_upload
requires
:
-
nightly_binary_windows_conda_py3.6
-
smoke_test_windows_conda
:
filters
:
branches
:
only
:
nightly
name
:
nightly_binary_windows_conda_py3.6_smoke_test_conda
python_version
:
'
3.6'
requires
:
-
nightly_binary_windows_conda_py3.6_upload
-
binary_windows_conda
:
filters
:
branches
:
...
...
@@ -828,6 +907,14 @@ workflows:
name
:
nightly_binary_windows_conda_py3.7_upload
requires
:
-
nightly_binary_windows_conda_py3.7
-
smoke_test_windows_conda
:
filters
:
branches
:
only
:
nightly
name
:
nightly_binary_windows_conda_py3.7_smoke_test_conda
python_version
:
'
3.7'
requires
:
-
nightly_binary_windows_conda_py3.7_upload
-
binary_windows_conda
:
filters
:
branches
:
...
...
@@ -842,6 +929,14 @@ workflows:
name
:
nightly_binary_windows_conda_py3.8_upload
requires
:
-
nightly_binary_windows_conda_py3.8
-
smoke_test_windows_conda
:
filters
:
branches
:
only
:
nightly
name
:
nightly_binary_windows_conda_py3.8_smoke_test_conda
python_version
:
'
3.8'
requires
:
-
nightly_binary_windows_conda_py3.8_upload
docker_build
:
triggers
:
-
schedule
:
...
...
.circleci/config.yml.in
View file @
241ab1e8
...
...
@@ -241,6 +241,53 @@ jobs:
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
python -c "import torchaudio"
smoke_test_windows_conda:
<<: *binary_common
executor:
name: windows-cpu
steps:
- attach_workspace:
at: ~/workspace
- run:
name: install binaries
command: |
set -x
eval "$('/C/tools/miniconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
conda env remove -n python${PYTHON_VERSION} || true
conda create -yn python${PYTHON_VERSION} python=${PYTHON_VERSION}
conda activate python${PYTHON_VERSION}
conda install -v -y -c pytorch-nightly pytorch
conda install -v -y $(ls ~/workspace/torchaudio*.tar.bz2)
- run:
name: smoke test
command: |
eval "$('/C/tools/miniconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
conda activate python${PYTHON_VERSION}
python -c "import torchaudio"
smoke_test_windows_pip:
<<: *binary_common
executor:
name: windows-cpu
steps:
- attach_workspace:
at: ~/workspace
- run:
name: install binaries
command: |
set -x
eval "$('/C/tools/miniconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
conda env remove -n python${PYTHON_VERSION} || true
conda create -yn python${PYTHON_VERSION} python=${PYTHON_VERSION}
conda activate python${PYTHON_VERSION}
pip install $(ls ~/workspace/torchaudio*.whl) -f https://download.pytorch.org/whl/nightly/torch_nightly.html
- run:
name: smoke test
command: |
eval "$('/C/tools/miniconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
conda activate python${PYTHON_VERSION}
python -c "import torchaudio"
smoke_test_docker_image_build:
machine:
image: ubuntu-1604:201903-01
...
...
.circleci/regenerate.py
View file @
241ab1e8
...
...
@@ -46,13 +46,13 @@ def build_workflow_pair(btype, os_type, python_version, filter_branch, prefix=''
if
upload
:
is_py3_linux
=
os_type
==
'linux'
and
not
python_version
.
startswith
(
"2."
)
is_py3_linux
=
os_type
in
[
'linux'
,
"windows"
]
and
not
python_version
.
startswith
(
"2."
)
w
.
append
(
generate_upload_workflow
(
base_workflow_name
,
filter_branch
,
btype
))
if
filter_branch
==
'nightly'
and
is_py3_linux
:
pydistro
=
'pip'
if
btype
==
'wheel'
else
'conda'
w
.
append
(
generate_smoketest_workflow
(
pydistro
,
base_workflow_name
,
filter_branch
,
python_version
))
w
.
append
(
generate_smoketest_workflow
(
pydistro
,
base_workflow_name
,
filter_branch
,
python_version
,
os_type
))
return
w
...
...
@@ -87,7 +87,7 @@ def generate_upload_workflow(base_workflow_name, filter_branch, btype):
return
{
"binary_{btype}_upload"
.
format
(
btype
=
btype
):
d
}
def
generate_smoketest_workflow
(
pydistro
,
base_workflow_name
,
filter_branch
,
python_version
):
def
generate_smoketest_workflow
(
pydistro
,
base_workflow_name
,
filter_branch
,
python_version
,
os_type
):
required_build_suffix
=
"_upload"
required_build_name
=
base_workflow_name
+
required_build_suffix
...
...
@@ -103,7 +103,7 @@ def generate_smoketest_workflow(pydistro, base_workflow_name, filter_branch, pyt
if
filter_branch
:
d
[
"filters"
]
=
gen_filter_branch_tree
(
filter_branch
)
return
{
"smoke_test_
linux
_{pydistro}"
.
format
(
pydistro
=
pydistro
):
d
}
return
{
"smoke_test_
{os_type}
_{pydistro}"
.
format
(
os_type
=
os_type
,
pydistro
=
pydistro
):
d
}
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