-
Notifications
You must be signed in to change notification settings - Fork 39
Visual tests - correct code to pass and remove xfails #479
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
base: main
Are you sure you want to change the base?
Conversation
dd6ad3a to
f5b15d6
Compare
c7c69e5 to
c845ed3
Compare
|
pre-commit.ci autofix |
astrofrog
left a comment
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.
This looks good to me, though it looks like there might be a genuine failure in the line style test. Once this is fixed, the hashes for the figures should be updated for the two tests which will allow the CI to pass.
|
pre-commit.ci autofix |
fe83e5b to
923f903
Compare
|
Looking good, I think you just need to update the hashes now! |
d4b8372 to
cdcd961
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #479 +/- ##
==========================================
- Coverage 85.07% 84.41% -0.67%
==========================================
Files 91 91
Lines 5407 5447 +40
==========================================
- Hits 4600 4598 -2
- Misses 807 849 +42 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
cdcd961 to
f502c94
Compare
f502c94 to
fc591ee
Compare
|
Seems |
fc591ee to
f91f12a
Compare
f91f12a to
d5a7f83
Compare
| vector_lines_cls = bqplot.Lines | ||
| self.vector_lines = vector_lines_cls(scales=self.view.scales, x=[0.], y=[0.]) | ||
| self.vector_lines.colors = [color2hex(self.state.color)] | ||
| self.vector_lines.color = [color2hex(self.state.color)] |
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 don't understand the logic behind renaming the property to color here and in just a couple other instances below – colors is still present in various other instances, so this should at least remain consistent. Looking further at the existing instances e.g. of scatter_mark.color, the latter I think is generally a single colour, while colors always is a list, even if only a single element one. May need to review #363 where those were introduced though.
But I am wondering if this is related to the colour mismatches in the ui tests.
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.
Okay, having refreshed my brain, the color vs colors comes from the altering between lines_gl and lines. What eventually becomes self.line_mark_gl and self.line_mark see 337 and 338
It alternates between the two in order to handle the switch to non gl linestyle. Is it readable, not so much, but it does work
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.
Needs some explanation in comments or here in the PR then; from the above it’s anything but clear how this is related to a lines vs. lines_gl alternation. And here in __init__ at least self.vector_lines.colors is no longer set at all (or left at default, if there is one).
With the bunch of tests still failing it’s hard to tell if it does work; both the colour mismatches in CircleCI and warnings like BROWSER LOG: no color set in ui-tests still look suspicious.
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 don't exactly understand the changed test_visual_linestyle, adding two more layers and then removing them again without further testing? Looks like the outcome should be the same as with the original 3 layers, but the failure indicates some expected number (of layers?) has changed.
The colors issue definitely needs to be sorted out.
py314 error on scikit-image under Windows is unrelated, though I have no idea why it would install the py313 wheel last week and now refuses to (but apparently still uses it on Linux and macOS!). But a new rc for 0.26 just came out today; dunno if that's related, but hopefully there will be a version with proper py314 support soon.
Co-authored-by: Derek Homeier <[email protected]>
2df1673 to
78948e7
Compare
78948e7 to
8c52133
Compare
No description provided.