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

Random failing org.eclipse.core.internal.expressions.tests.ExpressionTests.testSubTypeTiming #894

Open
HeikoKlare opened this issue Nov 29, 2023 · 5 comments
Labels
macOS happens on macOS test junit test related things

Comments

@HeikoKlare
Copy link
Contributor

Failed once on MacOS: https://github.com/eclipse-platform/eclipse.platform/pull/892/checks?check_run_id=19130535605

cachedDelta: 90, instanceDelta: 73
java.lang.AssertionError: cachedDelta: 90, instanceDelta: 73
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.eclipse.core.internal.expressions.tests.ExpressionTests.testSubTypeTiming(ExpressionTests.java:1135)
@HeikoKlare HeikoKlare added the test junit test related things label Nov 29, 2023
@akurtakov
Copy link
Member

Is this really timing measured ? If that's the case the test needs to be changed to check results and not timing.

@HeikoKlare
Copy link
Contributor Author

Is this really timing measured ? If that's the case the test needs to be changed to check results and not timing.

It seems to be an attempt to provide a performance test for a caching mechanism. So you are right: it has to be rewritten to make a functional validation of the caching rather than a time-based one.

@jukzi
Copy link
Contributor

jukzi commented Dec 5, 2023

mac

cachedDelta: 148, instanceDelta: 74
java.lang.AssertionError: cachedDelta: 148, instanceDelta: 74
	at org.eclipse.core.internal.expressions.tests.ExpressionTests.testSubTypeTiming(ExpressionTests.java:1135)

https://github.com/eclipse-platform/eclipse.platform/pull/918/checks?check_run_id=19294549887

@jukzi
Copy link
Contributor

jukzi commented Jan 7, 2025

https://download.eclipse.org/eclipse/downloads/drops4/I20250106-1800/testresults/html/org.eclipse.core.expressions.tests_ep435I-unit-macosx-x86_64-java21_macosx.cocoa.x86_64_21.html

java.lang.AssertionError: [assert cachedDelta is less than instanceDelta49]
Expecting actual:
57L
to be less than:
49L
at org.eclipse.core.internal.expressions.tests.ExpressionTests.testSubTypeTiming(ExpressionTests.java:1036)

@jukzi jukzi added the macOS happens on macOS label Jan 7, 2025
@jukzi
Copy link
Contributor

jukzi commented Jan 17, 2025

https://download.eclipse.org/eclipse/downloads/drops4/I20250116-1800/testresults/html/org.eclipse.core.expressions.tests_ep435I-unit-macosx-x86_64-java21_macosx.cocoa.x86_64_21.html

java.lang.AssertionError: [assert cachedDelta is less than instanceDelta43]
Expecting actual:
55L
to be less than:
43L
at org.eclipse.core.internal.expressions.tests.ExpressionTests.testSubTypeTiming(ExpressionTests.java:1036)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macOS happens on macOS test junit test related things
Projects
None yet
Development

No branches or pull requests

3 participants