Skip to content
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

Unit test consistency across OS and runs #269

Open
jzy3d opened this issue May 24, 2022 · 0 comments
Open

Unit test consistency across OS and runs #269

jzy3d opened this issue May 24, 2022 · 0 comments
Labels

Comments

@jzy3d
Copy link
Owner

jzy3d commented May 24, 2022

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

  • This one works but this other run from the same build failed.

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

Link to build output.
Capture d’écran 2022-05-24 à 09 28 24

Not sure this relates to Ubuntu iteself. A race condition in jGL after resizing the viewport?

@jzy3d jzy3d added the bug label May 24, 2022
@jzy3d jzy3d changed the title Unit test error on Ubuntu Unit test consistency across OS and runs May 24, 2022
@jzy3d jzy3d added this to the 2.2.0 milestone May 24, 2022
@jzy3d jzy3d removed this from the 2.2.0 milestone Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant