-
Notifications
You must be signed in to change notification settings - Fork 13k
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
When comparing SVG tests against their blessed version, ignore the first line #122779
Conversation
Some changes occurred in src/tools/compiletest cc @jieyouxu |
Context #122029 (comment) |
…rst line `anstyle_svg` has some weird non-determinism in the width parameter, which makes tests blessed in one environment to fail in another. This is the *only* non-determinism detected so far, so we modify the diff check to ignore the first line of the SVG. In order for a test to fail/be updated by `--bless`, a different part of the file needs to also have changed.
15b07dd
to
bf63f7e
Compare
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 can reproduce the failure and this does fix it 👍
@bors r+ rollup p=1 |
what command? ahh |
A simple |
The distinction is made because on windows we produce different colors than on all other platforms (cyan instead of light blue), which would require everyone that works with ui tests to have access to both a linux/mac and windows, in perpetuity. |
☀️ Test successful - checks-actions |
Finished benchmarking commit (e3df96c): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 669.176s -> 669.218s (0.01%) |
Still all ok, strange. |
At work we noticed that this fix didn't make it into 1.78, which makes the .svg tests fail non-deterministically. If we do a dot-release, we should include this PR. |
anstyle_svg
has some weird non-determinism in the width parameter, which makes tests blessed in one environment to fail in another. This is the only non-determinism detected so far, so we modify the diff check to ignore the first line of the SVG. In order for a test to fail/be updated by--bless
, a different part of the file needs to also have changed. If other sources of non-determinism are found, we should back out of the "--color=always
means.svg
" change.r? @compiler-errors