-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark slowest tests as slow and add nightly slow test job (#8811)
* Mark slowest tests as slow and add nightly slow test job This commit makes two changes to hopefully improve CI throughput. The first is to mark the majority of the shor's algorithm testing and some other particularly slowly executing as slow. This prevents the tests from running as part of normal CI runs which should hopefully improve the runtime of a full unit test job. To make sure we don't forget about these tests and regress the functionality this commit also adds a new nightly CI job to github actions to run all the tests including the onest decorated with @slow_test. If the nightly job fails we can track it with an issue and fix it. * Remove ibmq-provider from job * Fix copy paste errors in slow job Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
30ee992
commit 93fbc0d
Showing
8 changed files
with
52 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Slow nightly tests | ||
on: | ||
schedule: | ||
- cron: '42 3 * * *' | ||
workflow_dispatch: | ||
jobs: | ||
slow-tests: | ||
name: Full-test-run-with-slow | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
name: Install Python | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
pip install -U -r requirements.txt -c constraints.txt | ||
pip install -U -r requirements-dev.txt -c constraints.txt | ||
pip install -c constraints.txt -e . | ||
pip install "qiskit-aer" "z3-solver" "cplex" -c constraints.txt | ||
env: | ||
SETUPTOOLS_ENABLE_FEATURES: "legacy-editable" | ||
- name: Run all tests including slow | ||
run: stestr run | ||
env: | ||
RUST_BACKTRACE: 1 | ||
QISKIT_TESTS: "run_slow" | ||
- name: Create comment on failed test run | ||
if: ${{ failure() }} | ||
uses: peter-evans/create-or-update-comment@v1 | ||
with: | ||
issue-number: 7864 | ||
body: | | ||
Nightly slow test run failed at commit ${{ github.sha }}. | ||
_Logs_: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}. |
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
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
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
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
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
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
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