-
Notifications
You must be signed in to change notification settings - Fork 38
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
test: Don't test napari main #277
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #277 +/- ##
==========================================
+ Coverage 87.14% 87.28% +0.14%
==========================================
Files 47 47
Lines 3554 3554
==========================================
+ Hits 3097 3102 +5
+ Misses 457 452 -5 ☔ View full report in Codecov by Sentry. |
@tlambert03 So it's something about the pyvista action that is different from the combo of (ignore the 0.4.19 failure) |
I compared the apt installs and they are the same, so it's something in the headless-gui part. The resolution difference is not relevant, I tested that... |
Can you point us to where things break/broke? And/or how we could ensure compatibility on our end to reduce the burden here? We absolutely don't want to be an extra burden on superqt, but it's (super) important to us to stay compatible... |
it's actually still broken on this PR, which I guess means it was already broken with the latest release from last week. See the failing tests here. There's something about the I've been just continuing to add more ignores to this line here, but it happens somewhat frequently and i was hoping to reduce that frequency. if anyone from napari wants to set up the workflows here to use your specific reusable workflows, that would be welcome. |
Got it, thanks. Seeing the test checking for [1, 1, 1, 255] is extremely suspicious right off the bat. 😅 Did this maybe depend on some on-screen interpolation??? We'll investigate on our end.
oh god 😂
I think that is probably the best solution, because otherwise you're just pushing the problem to releases, which is better but still a pain to work through, as we are seeing. I'll try to make some time for it tomorrow. 🙏 |
yeah, not sure... it's conceivable it depends on the screen size settings in aganders3/headless-gui: https://github.com/aganders3/headless-gui/blob/fbd407c863dc613326c425c219d85507cd886a5f/src/start-xvfb.bash#L24-L26 |
I tested setting a smaller size -- same as pyvista. The test passes: |
by the way, @jni ... it came up with @psobolewskiPhD elsewhere, but you may be interested to know that https://github.com/pyvista/setup-headless-display-action is a pretty nice one-stop-shop that would let you replace three different actions: |
thanks @psobolewskiPhD! |
I guess the ideal outcome could/would be to sort out how to get the pyvista action working with napari tests and then upstream the change? |
yeah, or even just use it directly yourself? :) |
actually @psobolewskiPhD I don't think it's the screen size... what you use in your patch is the same thing they use |
Sorry I wasn't clear -- napari actions use the larger default from the headless-gui action. I switched to the smaller default of the pyvista action in my patch to see if that would break stuff. Edit: the issue with us using the pyvista action would be the failing test though 🤣 |
ahh... ok, that makes, confirms that the tests depends on the specific screen size |
true 😂 ... i guess the ultimate fix is to have tests that don't depend as critically on the size of the display? i know, it's hard stuff |
Does it? I ran the test with my patch with both sizes and both pass with the headless-gui action. |
ah, well no. if it doesn't matter what screen size you put in, then no, that indeed argues something different 😂. I don't know. in summary: going back to the original proposal. i'm basically happy to use any setup here that you want me to if someone from the napari team wants to maintain superqt's testing of napari. I just want something that I don't have to update as often as I have been |
So it means that I should work again on napari/napari#6336 |
yep, if that's your preferred strategy. I had been hoping to be able to use the general pyapp-kit reusable workflows, but napari is complex and fluid enough that I'm happy to use anything that napari developers want to maintain :) 👍 |
I'm afraid it's a bit too hard to maintain running tests against napari
main
on each PR. napari certainly needs to be able to be flexible in writing its own tests, but unfortunately it too often breaks here. this PR no longer tests against napari main, but does still test against an old version (v0.4.19.post1) and a new version (v0.5.6)