-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Enforcing fonts for galata #11682
base: main
Are you sure you want to change the base?
Enforcing fonts for galata #11682
Conversation
Thanks for making a pull request to jupyterlab! |
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.
LGTM
Benchmark reportThe execution time (in milliseconds) are grouped by test file, test type and browser. The mean relative comparison is computed with 95% confidence. Results table
Changes are computed with expected as reference. |
Well, unfortunately most of my tests still fail. My feeling is that we should do this when there is at least one other person that has problems with local UI tests. Otherwise this PR would be only about fixing my local dev environment issues. |
I do. My super inefficient workflow was to open a PR on my own fork to get the CI to kick in, download artifacts and then cleanly push the correct screenshot in the PR to this repo. Having majority of the tests pass locally would be super useful for good developer experience; the final 20% may not be worth the effort, but if we can get 80% to pass that would be a big step forward. What things still cause problems on your setup? |
@krassowski that sounds familiar to me. Only that I have polluted the tests on the main repo (sorry) ... so let's get on with this.
I don't understand that one, though. Chrome tells me it's rendering DejaVu Sans Mono. |
I guess I'm lucky. Running on stock Debian 11, running the 158 tests on 4 workers:
Terminal related tests are expected to fail. The general tests and the sidebar one are failing because I'm using Regarding the font for menu, here are the details: Regarding the discrepancy on the font, I don't know if it could come from anti-aliasing. But I'm a bit afraid of using higher threshold (the default seems to be 0.2). The small discrepancy like the difference between triangle icon showing collapsed/expanded may not be catch. But it is a risk we need to evaluate against dev' comfort. |
@schmidi314 in your screencast with font diff, was the test ran twice? If so was the diff identical in the two attempts? |
Just re-ran it twice manually. Yes they are the same. As for the font: Thanks, @fcollonval , that matches with my config. |
Yes, I know what you mean. But with many of my tests failing with minor font issues (the italics stuff I mean), I'm gaining more confidence with the 0.3 threshold. |
@fcollonval can you please check |
This returns no match |
@krassowski @jtpio would you mind running galata test on this PR locally and report the test results? If possible could you test it a second time not specifying the snapshot threshold in |
I was going through PRs added to the Is it still relevant, and if so should it be bumped to |
Moving to 4.0, it is a maintenance PR for dev comfort (but it will be a good one to get...).
|
How shall we proceed here? For me this PR makes testing a little easier. But I haven't managed to get the italics issue under control. So it would be interesting how it works for the other devs to choose which commits to keep. |
Apologies that no one responded here @schmidi314. I would suggest to keep the part changing fonts but not the part relaxing threshold and merge this after resolving conflicts. If it helps even a bit then it's good to go - does not need to be perfect. |
@fcollonval would your docker image PR supersede this PR? |
Yes it will |
@fcollonval If #15916 supersedes this, and you're planning to merge this in during the next month, would you prefer to close this PR and tag #15916 with the 4.3.0 milestone? |
Trying to make fonts consistent over different Linux systems, including the github test.
Testing the github galata tests...
--> This commit should not affect the github workflow.
References
See discussion in #11615
Code changes
User-facing changes
None
Backwards-incompatible changes
None