Skip to content
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

Slow python tests cause spurious errors #353

Open
aborgna-q opened this issue May 22, 2024 · 0 comments
Open

Slow python tests cause spurious errors #353

aborgna-q opened this issue May 22, 2024 · 0 comments
Labels
ci CI / devops

Comments

@aborgna-q
Copy link
Collaborator

test_depth_hyp runs depth optimisation on a set of circuits, with a 30ms deadline.

The test may take longer in some cases, which causes CI to fail.
See https://github.com/CQCL/tket2/actions/runs/9189665381/job/25272188461
We could reduce the circuit the generated circuit depth/n_qubits range to prevent this.

While we're looking at this, we may want to optimise test_simple_badger_pass_no_opt too, as it also slows down the tests quite a bit. This is the output of pytest --durations=0 on my machine (CI will be slower):

=============================== slowest durations ======================
6.71s call     tket2-py/test/test_pass.py::test_simple_badger_pass_no_opt
0.97s call     tket2-py/test/test_pass.py::test_depth_hyp
0.03s call     tket2-py/test/test_portmatching.py::test_larger_matching
0.01s setup    tket2-py/test/test_pauli_prop.py::test_simple_z_prop
@aborgna-q aborgna-q added the ci CI / devops label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci CI / devops
Projects
None yet
Development

No branches or pull requests

1 participant