When comparing SVG tests against their blessed version, ignore the first line#122779
When comparing SVG tests against their blessed version, ignore the first line#122779bors merged 1 commit intorust-lang:masterfrom
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
lqd
left a comment
There was a problem hiding this comment.
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_svghas 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=alwaysmeans.svg" change.r? @compiler-errors