-
Notifications
You must be signed in to change notification settings - Fork 47
Add flaky pytest infrastructure and weekend runners #1799
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
+79
−20
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
bb4634e
Add flaky test infra in `make pytest`
paul0403 931db6a
5 runs
paul0403 d61ea62
add weekly flaky test runner script
paul0403 cc61117
try skipping cuda
paul0403 298a9ab
don't ask when pip uninstall
paul0403 41ca911
testpypi catalyst follows dep versions already
paul0403 76eab9d
Merge remote-tracking branch 'origin/main' into paul0403/add_flaky_runs
paul0403 ec82572
Merge remote-tracking branch 'origin/main' into paul0403/add_flaky_runs
paul0403 fdcd8f3
set read-only permission on job
paul0403 b61f2db
popping capabilities should be per custom device class, NOT per insta…
paul0403 a981a4a
remove unused flaky import
paul0403 91f9c47
Merge remote-tracking branch 'origin/main' into paul0403/add_flaky_runs
paul0403 38b8753
add reset fixture to autograph `Failing` test util class
paul0403 35feb0f
add failure notif
paul0403 4d78c8e
codefactor
paul0403 a804c32
test failure notif
paul0403 29e82b8
remove temporary PR testings
paul0403 d2f87e1
Merge remote-tracking branch 'origin/main' into paul0403/add_flaky_runs
paul0403 86755fb
remove unnecessary line
paul0403 05421ef
add docstring for the mysterious `Failing` class in autograph test
paul0403 6b6a564
test_whileloop_no_warning passes
paul0403 de5e9ab
remove unused argument
paul0403 b6f27f9
Merge remote-tracking branch 'origin/main' into paul0403/add_flaky_runs
paul0403 e4f5a79
Update frontend/test/pytest/test_autograph.py
paul0403 c8f7956
line too long
paul0403 d26d043
remove test_whileloop_no_warning
paul0403 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Run Catalyst pytests for weekly flaky test checking | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
schedule: | ||
# Run every weekend on Saturday at 23:40 EDT (cron is in UTC) | ||
# https://crontab.cronhub.io/ | ||
- cron: "40 23 * * SAT" | ||
|
||
jobs: | ||
weekly-flaky-test-run: | ||
name: Run weekly flaky tests | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- name: Checkout Catalyst repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Deps | ||
run: | | ||
python3 -m pip install -r requirements.txt | ||
pip install --pre -U --extra-index-url https://test.pypi.org/simple/ PennyLane-Catalyst | ||
|
||
- name: Run Python Pytest Tests with flaky Checks | ||
run: | | ||
make pytest ENABLE_FLAKY=ON |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.