Skip to content

Commit c4f37b8

Browse files
keewismathause
andauthored
Increase visibility of allowed failures (#4584)
* try to warn on allowed failure * allow failures on upstream-dev * install pynio to intentionally fail the upstream-dev CI * install pynio before uninstalling other packages * fail a flaky test instead of installing a incompatible library * try changing to error * try setting the result * Update ci/azure/unit-tests.yml Co-authored-by: Mathias Hauser <mathause@users.noreply.github.com> * remove the intentionally failed test * don't use the escape code for '#' Co-authored-by: Mathias Hauser <mathause@users.noreply.github.com>
1 parent 53b8d39 commit c4f37b8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
py38-upstream-dev:
2929
conda_env: py38
3030
upstream_dev: true
31+
allow_failure: true
3132
py38-flaky:
3233
conda_env: py38
3334
pytest_extra_flags: --run-flaky --run-network-tests

ci/azure/unit-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ steps:
1515
--junitxml=junit/test-results.xml \
1616
--cov=xarray \
1717
--cov-report=xml \
18-
$(pytest_extra_flags) || [ "$ALLOW_FAILURE" = "true" ]
18+
$(pytest_extra_flags) \
19+
|| ( \
20+
[ "$ALLOW_FAILURE" = "true" ] \
21+
&& echo "##vso[task.logissue type=warning]Allowed CI failure!!" \
22+
&& echo "##vso[task.complete result=SucceededWithIssues]" \
23+
)
1924
displayName: Run tests
2025

2126
- bash: |

0 commit comments

Comments
 (0)