Pedro Gomez
10/13/2020, 2:17 PMRoundedCornerShape(size = 16.dp)
The error reported by the screenshot testing shows a bunch of small different pixels making the tests fail. Red dots in the screenshot are the errors reported by the testing tool. Do you know if the rendering can vary depending on the build or any other param?Andrey Kulikov
10/13/2020, 3:25 PMjim
10/13/2020, 3:47 PMPedro Gomez
10/14/2020, 5:56 AM@Composable
fun Skeleton(color: Color = MaterialTheme.colors.surface) {
Box(Modifier.background(color = color, shape = RoundedCornerShape(size = 18.dp)).fillMaxSize())
}
The only difference is where the tests are being executed. In my laptop or the GitHub actions.
Sorry @jim, part of the sentence is missing. What I mean is there are no code changes between the execution of this test in local and the CI environment. However, as you can see in the screenshot, the rendering result is not the same. The shape changes a little bit.ppvi
10/14/2020, 7:54 AMPedro Gomez
10/14/2020, 7:55 AMppvi
10/14/2020, 7:58 AMPedro Gomez
10/14/2020, 7:59 AMppvi
10/14/2020, 8:01 AMPedro Gomez
10/14/2020, 8:15 AMppvi
10/14/2020, 10:02 AMPedro Gomez
10/14/2020, 10:43 AMjim
10/14/2020, 10:44 AMppvi
10/14/2020, 10:50 AMPedro Gomez
10/14/2020, 10:52 AMjim
10/14/2020, 10:57 AM-gpu <mode>
as described here: https://developer.android.com/studio/run/emulator-acceleration#command-gpuauto
or a hardware mode.Pedro Gomez
10/14/2020, 11:24 AMppvi
10/14/2020, 11:31 AMguest
Andrey Kulikov
10/14/2020, 11:44 AMcanvas.drawRoundRect
with antialised Paint
. So the issue should be not even Compose specific. I guess different emulators you use do antialising differentlyPedro Gomez
10/14/2020, 11:48 AMppvi
10/14/2020, 12:23 PMcompose-reproducible-rendering-issue
need a `repo`folder with the snapshot artifact?Pedro Gomez
10/14/2020, 12:40 PMppvi
10/14/2020, 12:57 PM<http://java.io|java.io>.IOException: No such file or directory
Pedro Gomez
10/14/2020, 1:02 PMppvi
10/14/2020, 1:15 PMromainguy
10/14/2020, 2:47 PMppvi
10/14/2020, 2:48 PMromainguy
10/14/2020, 3:25 PMppvi
10/14/2020, 3:26 PMromainguy
10/14/2020, 3:27 PMswiftshader_indirect
is a better solution than guest
thoughnickbutcher
10/15/2020, 8:20 AMppvi
10/15/2020, 8:27 AMPedro Gomez
10/15/2020, 8:54 AMnickbutcher
10/15/2020, 10:58 AMromainguy
10/15/2020, 3:04 PMPedro Gomez
10/20/2020, 5:29 PM