jzy3d-api
jzy3d-api copied to clipboard
Unit test consistency across OS and runs
This ticket relates all problems that occur while executing unit tests with Github Actions, meaning they're run on macOS, Ubuntu, Windows for multiple JDK (9 & 14).
Problems are rather race conditions than repeatable compatibility issues with a given OS/JDK.
TestCamera_EmulGL_Onscreen
Verifies that the canvas size is relevant with the latest frame size change.
Works when
- Running from IDE
- Running from CLI at the module level (in jzy3d-api/jzy3d-emulgl-awt/ folder)
Fails when
- Running from Github Actions for some OS (sometime macOS, sometime Ubuntu).
- Running from CLI at the project level (in jzy3d-api/ folder)
Examples
TestDepthRange
Verifies that the depth range configuration is relevant. The issue is that the pixel buffer seam to change dimension during the tests (initialized at 500x500=250.000) : the test fail because of an attempt to access a pixel with ID>250.000.
It does not seam to be related with OS, neither JVM.
Error on whenRenderAxis_DepthRangeModifiedByAxis:52 : ArrayIndexOutOfBounds
Not sure this relates to Ubuntu iteself. A race condition in jGL after resizing the viewport?