-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add handling to report-failures when no log files are available (#1009)
- Loading branch information
1 parent
4e1642d
commit 08cff1a
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -203,15 +203,20 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: test-ubuntu-latest-py3.10-results | ||
- name: Prepare issue label | ||
- name: Prepare logs & issue label | ||
run: | | ||
# TODO: remove this if xarray-contrib/issue-from-pytest-log no longer needs a log-path | ||
if [ -f test-ubuntu-latest-py3.10-results/test-ubuntu-latest-py3.10-results.jsonl ]; then | ||
cp test-ubuntu-latest-py3.10-results/test-ubuntu-latest-py3.10-results.jsonl results.jsonl | ||
else | ||
touch results.jsonl | ||
fi | ||
# convert which_upstream to lowercase | ||
echo "which_upstream_lower=${which_upstream,,}" >> $GITHUB_ENV | ||
- name: Open or update issue on failure | ||
uses: xarray-contrib/[email protected] | ||
with: | ||
log-path: test-ubuntu-latest-py3.10-results.jsonl | ||
log-path: results.jsonl | ||
issue-title: ⚠️ Upstream CI ${{ env.which_upstream }} failed ⚠️ | ||
issue-label: upstream-${{ env.which_upstream_lower }} |