"...text-generation-inference.git" did not exist on "408dbc485c112e023a97fc959d4cb3721cf89fed"
Commit 2283df8a authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Surface test failures on CI (#3394)

Summary:
Set the directory of JUnitText XML file to the one where test-infra picks up and put them in summary.

Example: https://github.com/pytorch/audio/actions/runs/5136305988

Pull Request resolved: https://github.com/pytorch/audio/pull/3394

Differential Revision: D46328832

Pulled By: mthrok

fbshipit-source-id: f0b5020a911ca4ec09345a965bdec769300859f0
parent c5d3706c
...@@ -13,7 +13,7 @@ export PATH="${PWD}/third_party/install/bin/:${PATH}" ...@@ -13,7 +13,7 @@ export PATH="${PWD}/third_party/install/bin/:${PATH}"
declare -a args=( declare -a args=(
'-v' '-v'
'--cov=torchaudio' '--cov=torchaudio'
"--junitxml=${PWD}/test-results/junit.xml" "--junitxml=${RUNNER_TEST_RESULTS_DIR}/junit.xml"
'--durations' '20' '--durations' '20'
) )
......
...@@ -12,5 +12,5 @@ python -m torch.utils.collect_env ...@@ -12,5 +12,5 @@ python -m torch.utils.collect_env
env | grep TORCHAUDIO || true env | grep TORCHAUDIO || true
cd test cd test
pytest --cov=torchaudio --junitxml=../test-results/junit.xml -v --durations 20 torchaudio_unittest pytest --cov=torchaudio --junitxml=${RUNNER_TEST_RESULTS_DIR}/junit.xml -v --durations 20 torchaudio_unittest
coverage html coverage html
...@@ -79,7 +79,7 @@ jobs: ...@@ -79,7 +79,7 @@ jobs:
declare -a args=( declare -a args=(
'-v' '-v'
'--cov=torchaudio' '--cov=torchaudio'
"--junitxml=${PWD}/test-results/junit.xml" "--junitxml=${RUNNER_TEST_RESULTS_DIR}/junit.xml"
'--durations' '100' '--durations' '100'
'-k' 'cuda or gpu' '-k' 'cuda or gpu'
) )
......
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