Skip to content

Increase visibility of allowed failures #4584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Dec 7, 2020
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
py38-upstream-dev:
conda_env: py38
upstream_dev: true
allow_failure: true
py38-flaky:
conda_env: py38
pytest_extra_flags: --run-flaky --run-network-tests
Expand Down
7 changes: 6 additions & 1 deletion ci/azure/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ steps:
--junitxml=junit/test-results.xml \
--cov=xarray \
--cov-report=xml \
$(pytest_extra_flags) || [ "$ALLOW_FAILURE" = "true" ]
$(pytest_extra_flags) \
|| ( \
[ "$ALLOW_FAILURE" = "true" ] \
&& echo "##vso[task.logissue type=warning]Allowed CI failure!!" \
&& echo "##vso[task.complete result=SucceededWithIssues]" \
)
displayName: Run tests

- bash: |
Expand Down