"vscode:/vscode.git/clone" did not exist on "f30c71d677978f709e243fece5b099c45ed1d660"
Commit 9ab5dd71 authored by Mingbo Wan's avatar Mingbo Wan Committed by Vincent QB
Browse files

Better smoke test (#364)

* use binaries just built for smoke test

* to trigger tests on PR

* trigger tests

* different build has different test

* test good, now move to official

* test good, now move to official
parent 70328527
...@@ -166,21 +166,36 @@ jobs: ...@@ -166,21 +166,36 @@ jobs:
smoke_test_linux_conda: smoke_test_linux_conda:
<<: *smoke_test_common <<: *smoke_test_common
steps: steps:
- attach_workspace:
at: ~/workspace
- run: - run:
name: install binaries
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}
conda install -y -c pytorch-nightly torchaudio conda install -v -y -c pytorch-nightly pytorch
conda install -v -y $(ls ~/workspace/torchaudio*.tar.bz2)
- run:
name: smoke test
command: |
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
python -c "import torchaudio" python -c "import torchaudio"
smoke_test_linux_pip: smoke_test_linux_pip:
<<: *smoke_test_common <<: *smoke_test_common
steps: steps:
- attach_workspace:
at: ~/workspace
- run: - run:
name: install binaries
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 torchaudio_nightly -f https://download.pytorch.org/whl/nightly/torch_nightly.html pip install $(ls ~/workspace/torchaudio*.whl) -f https://download.pytorch.org/whl/nightly/torch_nightly.html
- run:
name: smoke test
command: |
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
python -c "import torchaudio" python -c "import torchaudio"
docker_image_build: docker_image_build:
...@@ -319,11 +334,6 @@ workflows: ...@@ -319,11 +334,6 @@ workflows:
python_version: "3.5" python_version: "3.5"
requires: requires:
- nightly_binary_linux_wheel_py3.5_upload - nightly_binary_linux_wheel_py3.5_upload
- smoke_test_linux_conda:
name: nightly_binary_linux_wheel_py3.5_smoke_test_conda
python_version: "3.5"
requires:
- nightly_binary_linux_wheel_py3.5_upload
filters: filters:
branches: branches:
only: nightly only: nightly
...@@ -343,11 +353,6 @@ workflows: ...@@ -343,11 +353,6 @@ workflows:
python_version: "3.6" python_version: "3.6"
requires: requires:
- nightly_binary_linux_wheel_py3.6_upload - nightly_binary_linux_wheel_py3.6_upload
- smoke_test_linux_conda:
name: nightly_binary_linux_wheel_py3.6_smoke_test_conda
python_version: "3.6"
requires:
- nightly_binary_linux_wheel_py3.6_upload
filters: filters:
branches: branches:
only: nightly only: nightly
...@@ -367,11 +372,6 @@ workflows: ...@@ -367,11 +372,6 @@ workflows:
python_version: "3.7" python_version: "3.7"
requires: requires:
- nightly_binary_linux_wheel_py3.7_upload - nightly_binary_linux_wheel_py3.7_upload
- smoke_test_linux_conda:
name: nightly_binary_linux_wheel_py3.7_smoke_test_conda
python_version: "3.7"
requires:
- nightly_binary_linux_wheel_py3.7_upload
filters: filters:
branches: branches:
only: nightly only: nightly
...@@ -471,11 +471,6 @@ workflows: ...@@ -471,11 +471,6 @@ workflows:
context: org-member context: org-member
requires: requires:
- nightly_binary_linux_conda_py3.5 - nightly_binary_linux_conda_py3.5
- smoke_test_linux_pip:
name: nightly_binary_linux_conda_py3.5_smoke_test_pip
python_version: "3.5"
requires:
- nightly_binary_linux_conda_py3.5_upload
- smoke_test_linux_conda: - smoke_test_linux_conda:
name: nightly_binary_linux_conda_py3.5_smoke_test_conda name: nightly_binary_linux_conda_py3.5_smoke_test_conda
python_version: "3.5" python_version: "3.5"
...@@ -495,11 +490,6 @@ workflows: ...@@ -495,11 +490,6 @@ workflows:
context: org-member context: org-member
requires: requires:
- nightly_binary_linux_conda_py3.6 - nightly_binary_linux_conda_py3.6
- smoke_test_linux_pip:
name: nightly_binary_linux_conda_py3.6_smoke_test_pip
python_version: "3.6"
requires:
- nightly_binary_linux_conda_py3.6_upload
- smoke_test_linux_conda: - smoke_test_linux_conda:
name: nightly_binary_linux_conda_py3.6_smoke_test_conda name: nightly_binary_linux_conda_py3.6_smoke_test_conda
python_version: "3.6" python_version: "3.6"
...@@ -519,11 +509,6 @@ workflows: ...@@ -519,11 +509,6 @@ workflows:
context: org-member context: org-member
requires: requires:
- nightly_binary_linux_conda_py3.7 - nightly_binary_linux_conda_py3.7
- smoke_test_linux_pip:
name: nightly_binary_linux_conda_py3.7_smoke_test_pip
python_version: "3.7"
requires:
- nightly_binary_linux_conda_py3.7_upload
- smoke_test_linux_conda: - smoke_test_linux_conda:
name: nightly_binary_linux_conda_py3.7_smoke_test_conda name: nightly_binary_linux_conda_py3.7_smoke_test_conda
python_version: "3.7" python_version: "3.7"
......
...@@ -166,21 +166,36 @@ jobs: ...@@ -166,21 +166,36 @@ jobs:
smoke_test_linux_conda: smoke_test_linux_conda:
<<: *smoke_test_common <<: *smoke_test_common
steps: steps:
- attach_workspace:
at: ~/workspace
- run: - run:
name: install binaries
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}
conda install -y -c pytorch-nightly torchaudio conda install -v -y -c pytorch-nightly pytorch
conda install -v -y $(ls ~/workspace/torchaudio*.tar.bz2)
- run:
name: smoke test
command: |
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
python -c "import torchaudio" python -c "import torchaudio"
smoke_test_linux_pip: smoke_test_linux_pip:
<<: *smoke_test_common <<: *smoke_test_common
steps: steps:
- attach_workspace:
at: ~/workspace
- run: - run:
name: install binaries
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 torchaudio_nightly -f https://download.pytorch.org/whl/nightly/torch_nightly.html pip install $(ls ~/workspace/torchaudio*.whl) -f https://download.pytorch.org/whl/nightly/torch_nightly.html
- run:
name: smoke test
command: |
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
python -c "import torchaudio" python -c "import torchaudio"
docker_image_build: docker_image_build:
...@@ -229,11 +244,13 @@ jobs: ...@@ -229,11 +244,13 @@ jobs:
- {{prefix}}binary_{{os}}_{{btype}}_py{{python_version}}{{ "_unicode" if unicode }} - {{prefix}}binary_{{os}}_{{btype}}_py{{python_version}}{{ "_unicode" if unicode }}
{%- if filter_branch == 'nightly' %} {%- if filter_branch == 'nightly' %}
{%- if os == 'linux' and not python_version.startswith("2.") %} {%- if os == 'linux' and not python_version.startswith("2.") %}
{%- if btype == 'wheel' %}
- smoke_test_linux_pip: - smoke_test_linux_pip:
name: {{prefix}}binary_{{os}}_{{btype}}_py{{python_version}}{{ "_unicode" if unicode }}_smoke_test_pip name: {{prefix}}binary_{{os}}_{{btype}}_py{{python_version}}{{ "_unicode" if unicode }}_smoke_test_pip
python_version: "{{python_version}}" python_version: "{{python_version}}"
requires: requires:
- {{prefix}}binary_{{os}}_{{btype}}_py{{python_version}}{{ "_unicode" if unicode }}_upload - {{prefix}}binary_{{os}}_{{btype}}_py{{python_version}}{{ "_unicode" if unicode }}_upload
{%- else %}
- smoke_test_linux_conda: - smoke_test_linux_conda:
name: {{prefix}}binary_{{os}}_{{btype}}_py{{python_version}}{{ "_unicode" if unicode }}_smoke_test_conda name: {{prefix}}binary_{{os}}_{{btype}}_py{{python_version}}{{ "_unicode" if unicode }}_smoke_test_conda
python_version: "{{python_version}}" python_version: "{{python_version}}"
...@@ -241,6 +258,7 @@ jobs: ...@@ -241,6 +258,7 @@ jobs:
- {{prefix}}binary_{{os}}_{{btype}}_py{{python_version}}{{ "_unicode" if unicode }}_upload - {{prefix}}binary_{{os}}_{{btype}}_py{{python_version}}{{ "_unicode" if unicode }}_upload
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- endif %}
{%- if filter_branch %} {%- if filter_branch %}
filters: filters:
branches: branches:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment