Skip to content

Conversation

@CyclingNinja
Copy link
Contributor

No description provided.

@CyclingNinja CyclingNinja changed the title Correct code to pass and remove xfails from initial tests Visual tests - correct code to pass and remove xfails Mar 24, 2025
@CyclingNinja CyclingNinja force-pushed the visual_test_alterations branch from dd6ad3a to f5b15d6 Compare March 27, 2025 13:45
@CyclingNinja CyclingNinja force-pushed the visual_test_alterations branch from c7c69e5 to c845ed3 Compare April 7, 2025 09:13
@astrofrog
Copy link
Member

pre-commit.ci autofix

Copy link
Member

@astrofrog astrofrog left a 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.

@CyclingNinja
Copy link
Contributor Author

pre-commit.ci autofix

@CyclingNinja CyclingNinja force-pushed the visual_test_alterations branch 2 times, most recently from fe83e5b to 923f903 Compare April 10, 2025 15:55
@astrofrog
Copy link
Member

Looking good, I think you just need to update the hashes now!

@CyclingNinja CyclingNinja force-pushed the visual_test_alterations branch 3 times, most recently from d4b8372 to cdcd961 Compare April 11, 2025 09:01
@codecov
Copy link

codecov bot commented Apr 11, 2025

Codecov Report

Attention: Patch coverage is 18.46154% with 53 lines in your changes missing coverage. Please review.

Project coverage is 84.41%. Comparing base (f997e7d) to head (cdcd961).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
glue_jupyter/bqplot/scatter/tests/test_visual.py 0.00% 29 Missing ⚠️
glue_jupyter/bqplot/scatter/layer_artist.py 29.41% 24 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CyclingNinja CyclingNinja force-pushed the visual_test_alterations branch from cdcd961 to f502c94 Compare July 21, 2025 14:38
@dhomeier dhomeier force-pushed the visual_test_alterations branch from f502c94 to fc591ee Compare September 23, 2025 16:11
@dhomeier
Copy link
Contributor

Seems test_remove is failing now (due to changed number of tests?)
And the two failing image comparisons look like it’s just a change in colourmaps, so just update the hashes again?

@dhomeier dhomeier mentioned this pull request Oct 2, 2025
@CyclingNinja CyclingNinja force-pushed the visual_test_alterations branch from fc591ee to f91f12a Compare December 5, 2025 15:40
@CyclingNinja CyclingNinja force-pushed the visual_test_alterations branch from f91f12a to d5a7f83 Compare December 5, 2025 16:36
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)]
Copy link
Contributor

@dhomeier dhomeier Dec 9, 2025

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.

Copy link
Contributor Author

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

Copy link
Contributor

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.

Copy link
Contributor

@dhomeier dhomeier left a 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.

@CyclingNinja CyclingNinja force-pushed the visual_test_alterations branch 3 times, most recently from 2df1673 to 78948e7 Compare December 16, 2025 14:37
@CyclingNinja CyclingNinja force-pushed the visual_test_alterations branch from 78948e7 to 8c52133 Compare December 16, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants