-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add persistent_tasks test #174
Conversation
Codecov Report
@@ Coverage Diff @@
## master #174 +/- ##
==========================================
- Coverage 89.63% 89.12% -0.52%
==========================================
Files 10 11 +1
Lines 415 570 +155
==========================================
+ Hits 372 508 +136
- Misses 43 62 +19
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 9 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, this looks like a good improvement for Aqua. Thanks! Unfortunately, the tests did not succeed and the reviewdog has some annotations. I have added some further remarks below.
Thank @timholy . Unfortunately CI tests fail in Julia 1.4-1.10 due to a CI timeout -- it seems the tests get suck somehow |
Now all passing except Windows. I will investigate later, other duties call. |
Yay, green. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for this wonderful contribution.
I have one remaining concern: there is an established pattern for signalling a broken test case, using a broken
kwarg; it would be nice if this PR also used it, instead of using fails
for essentially the same purpose. Would you mind doing that? If not, I'll try to make the necessary adjustments but it may take me a while to find the time (sorry)
I changed the name to |
I see a "needs changelog" label but I don't see a "NEWS" file? |
It has only been introduced this week. If you rebase your branch onto latest master, you should find a |
I'll later have a look at your issue with |
I have slightly altered the interface. Many of the issues here can easily be solved by splitting test functions up into one computing something and another one checking it with Similar adaptations are happening one after the other to the other, already for longer time existing tasks as well. I hope these changes are fine for you. Please check that I didn't break everything. Thanks! |
I noticed some caveats/errors with this new test. Aqua tests itself, and when enabling Furthermore, It would be great if you could look into these two things and fix them. |
c5a843f
to
85f0889
Compare
Rebased this on top of the 0.7.3 release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found the culprits (see comments below). Furthermore I already pushed a quality of life change, that restores the active environment after the test.
@timholy please have a look, if this looks good to you. If the suggestions get committed, this is good to go from my pov.
Sorry for my long absence here, and many thanks for carrying this forward. Just to check (since there have been many commits), are the comments in #174 (review) still relevant? They seem like nice changes to me. If you want I can update this, or feel free to do so yourself. Aside from some travel later this week, I am getting back to a point of having time to finish this off. |
Yes, these comments/suggestions are still relevant. I just rebase this onto master to resolve some conflicts. I think accepting all suggestions should resolve the remaining ci failures |
You don't need to worry about the failures in julia 1.3 and before, as we will drop support anyway (see #216). |
Co-authored-by: "Lars Göttgens <lars.goettgens@rwth-aachen.de>"
Flushing the io may prevent some of the CI hangs; also print diagnostics in case of unexpected outcomes.
Co-authored-by: Max Horn <max@quendi.de>
Co-authored-by: Max Horn <max@quendi.de>
Co-authored-by: Lars Göttgens <lars.goettgens@gmail.com>
3f15ae5
to
77f7fd7
Compare
Thanks for all the help, @lgoettgens, and others for their reviews! |
This checks whether a package spawns persistent
Task
s that might block precompilation of dependents of the package. It also provides a convenience utility,test_persistent_tasks_deps
, for checking all the dependencies of a given package, to simplify discovery. If one runs one of the tests in this PR without annotating one as an expected failure, here is the output on Julia 1.10-beta:Closes JuliaLang/julia#50914
CC @vtjnash