-
Notifications
You must be signed in to change notification settings - Fork 15
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
Refactor tests to use TestItems.jl #142
Refactor tests to use TestItems.jl #142
Conversation
Hi, Bryan! Thank you for starting this! Please check out this similar contribution made to QuantumClifford.jl -- following the same style would help me a lot in keeping things consistent across projects: QuantumSavory/QuantumClifford.jl#329 QuantumSavory probably will be a more challenging case because there are a lot of ad-hoc examples tested in weird environments (faked opengl environment in CI for some of the plotting tests for instance). It will probably need some redoing of of tagging and filtering of tests. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #142 +/- ##
==========================================
- Coverage 67.18% 67.05% -0.13%
==========================================
Files 41 41
Lines 1737 1709 -28
==========================================
- Hits 1167 1146 -21
+ Misses 570 563 -7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
The only remaining failure is the Comparing the github actions run log to a recent run on
and one new warning during running tests:
|
Thanks, @BKaperick ! Some of the errors you are getting are from some invasive work happening to remove piracies that is still in progress as it spans multiple packages (e.g. #143 ). It should get merged soon and then I will be able to rerun the tests here and provide a review. Apologies for the delay! I am running a summer workshop this week (qnumerics.org) so I might be a bit slow to answer. |
cf77a88
to
f3a942b
Compare
809add9
to
fa3fe7f
Compare
Apologies for not warning you about the JuMP/GraphMatching removal -- that happened because they were causing issues with installation on non-linux machines. |
Hi @Krastanov no problem at all about the GraphMatching removal; I saw the other PR. Right now I have 37 issues identified by JET, which is more than the 33 allowed. The last run on Doing a diff on the JET output, it looks like these are the two new issues, but looking at src/CircuitZoo/CircuitZoo.jl#L150 I don't see why this PR would cause these new issues to arise:
|
After some investigation, @Krastanov this is what I've found: Removing Changes to The two additional JET issues I commented above are still mysterious to me, but caught when we re-add the line ignoring |
Thank you! Apologies for the annoyance with this. I should be able to review and merge this before the end of the week |
…esults more like current behavior
The documentation runner indeed has been somewhat unreliable. The other runners seem fine. I will restart the doc builder a few more times if it fails again. That issue is does not seem related to your work. |
… does not matter because we have dropped julia 1.9 anyway)
Looks great! I think there was one minor typo -- running tests for it right now and this should be merged shortly. Could you please send me an email at [email protected] with a link to this PR and your name and email so I can have NumFOCUS send you the bounty. Next batch should be sometime in October. |
Closes issue #141.
Hello, this is a first contribution, so I am fully receptive to any feedback you have.
I have a few comments/questions:
@testitem
blocks cannot be nested, and I don't know of any way to share set-up code between them, so intest/test_circuitzoo_purification.jl
I just kept the@testset
blocks, but all nested within one@testitem
. If someone has a recommendation for how to do this more properly I will update this.I am still testing it locally, so I am opening this as a draft to indicate that I am actively working on this issue. I will change its status to Open once I've validated the changes are working correctly.