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

JDK 19/20 CI intermittent failures / flaky test #1546

Open
dblock opened this issue Aug 16, 2023 · 1 comment
Open

JDK 19/20 CI intermittent failures / flaky test #1546

dblock opened this issue Aug 16, 2023 · 1 comment
Labels

Comments

@dblock
Copy link
Member

dblock commented Aug 16, 2023

https://github.com/java-native-access/jna/actions/runs/5801959465/job/15727351939
https://github.com/java-native-access/jna/actions/runs/5875801992/job/15948144145?pr=1544

    [junit] Testsuite: com.sun.jna.CallbacksTest
    [junit] JNA: Can't attach native thread to VM for callback: -1 (check stacksize for callbacks)
    [junit] Tests run: 53, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.508 sec
    [junit] 
    [junit] Testcase: testInvokeCallback(com.sun.jna.CallbacksTest):	FAILED
    [junit] Existing native function wrapper should be reused expected same:<Proxy interface to native function@0x7f4d400093b0 (com.sun.jna.CallbacksTest$TestLibrary$Int32CallbackX)> was not:<Proxy interface to native function@0x7f4d400093b0 (com.sun.jna.CallbacksTest$TestLibrary$Int32CallbackX)>
    [junit] junit.framework.AssertionFailedError: Existing native function wrapper should be reused expected same:<Proxy interface to native function@0x7f4d400093b0 (com.sun.jna.CallbacksTest$TestLibrary$Int32CallbackX)> was not:<Proxy interface to native function@0x7f4d400093b0 (com.sun.jna.CallbacksTest$TestLibrary$Int32CallbackX)>
    [junit] 	at com.sun.jna.CallbacksTest.testInvokeCallback(CallbacksTest.java:969)
    [junit] Test com.sun.jna.CallbacksTest FAILED
    [junit] 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
@matthiasblaesing
Copy link
Member

That test is flaky, given that it is related to GC it is not to surprising. I reran the failing test on master and it is now green.

@dblock dblock changed the title JDK 19/20 CI failures JDK 19/20 CI intermittent failures / flaky test Aug 17, 2023
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

2 participants