Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/scripts/unique_warning_reporter.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
# warnings-as-errors action runs. The volume of each reported warning can be used to indicate
# the severity or importance of rectification.

JOBID=$(gh run list -w "Test-suite with Python warnings as errors" -L 1 --json databaseId -q '.[0].databaseId')
JOBID=$(gh run list -w "Test-suite with Python warnings as errors" --repo PennylaneAI/pennylane -L 1 --json databaseId -q '.[0].databaseId')
echo "View latest job at https://github.com/PennyLaneAI/pennylane/actions/runs/$JOBID"
gh run view $JOBID --log-failed >/tmp/job_$JOBID.out
cat /tmp/job_$JOBID.out | grep "Warning:" | awk '{split($0,a,"Warning:"); print a[1]"Warning"}' | awk '{split($0,a," - "); print a[2]}' | sort -u >unique_wae.txt
gh run view $JOBID --log-failed --repo PennylaneAI/pennylane >/tmp/job_$JOBID.out
cat /tmp/job_$JOBID.out | grep "Warning:" | awk '{split($0,a,"Warning:"); print a[1]"Warning"}' | awk '{split($0,a," "); print a[3]}' | sort -u >unique_wae.txt

declare -A waeCounts

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ The following table shows the current Catalyst compatibility with the Lightning
<table>
<tr>
<td><code>UserWarning</code></td>
<td><a href=https://github.com/PennyLaneAI/pennylane/actions/workflows/package_warnings_as_errors.yml><img src=https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FPennyLaneAI%2Fplugin-test-matrix%2Frefs%2Ftags%2Fwae_data_tag%2Funique_wae.json&query=%24%5B0%5D.UserWarning&label=&color=9c6700></td>
<td><a href=https://github.com/PennyLaneAI/pennylane/actions/workflows/package_warnings_as_errors.yml><img src=https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FPennyLaneAI%2Fplugin-test-matrix%2Frefs%2Fheads%2Fsc-104689-upd-wae%2Funique_wae.json&query=%24%5B0%5D.UserWarning&label=&color=9c6700></td>
</tr>
<tr>
<td><code>DeprecationWarning</code></td>
Expand Down
1 change: 1 addition & 0 deletions unique_wae.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"UserWarning":4627,"DeprecationWarning":1705,"pytest.PytestRemovedIn9Warning":184,"PendingDeprecationWarning":0,"pytest.PytestUnraisableExceptionWarning":154,"numpy.exceptions.ComplexWarning":454,"pennylane.exceptions.PennyLaneDeprecationWarning":764,"RuntimeWarning":694,"pytest.PytestCollectionWarning":144,"FutureWarning":36}]
Loading