Skip to content

Conversation

r1viollet
Copy link
Collaborator

What does this PR do?:

Skip zing and j9 flaky tests

Motivation:

Additional Notes:

How to test the change?:

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.
  • JIRA: [JIRA-XXXX]

Unsure? Have a question? Request a review!

Skip zing and j9 flaky tests
Copy link

github-actions bot commented Jul 7, 2025

🔧 Report generated by pr-comment-cppcheck

CppCheck Report

Errors (2)

Warnings (4)

Style Violations (297)

}
// Running vm stackwalker tests on JVMCI (Graal), JDK 24, aarch64 and with a sanitizer is crashing in a weird place
// This looks like the sanitizer instrumentation is breaking the longjump based crash recovery :(
assumeFalse(Platform.isJavaVersionAtLeast(24) && isJvmci && Platform.isAarch64() && cstack.startsWith("vm") && isSanitizer);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand the usage of assume here ?
we are triggering these tests here: https://github.com/DataDog/java-profiler/actions/runs/16116032610/job/45470209849?pr=238

Is this expected ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are running on JDK 17 - one of the conditions is Java >=24

So yes. This is expected.

Copy link

github-actions bot commented Jul 7, 2025

🔧 Report generated by pr-comment-scanbuild

boolean isSanitizer = config.endsWith("san");
boolean isJvmci = System.getProperty("java.vm.version", "").contains("jvmci");
assumeFalse(Platform.isZing() || Platform.isJ9());
// Skip test entirely on unsupported JVMs (don't use assumeFalse which gets retried)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use assumeFalse which gets retried

Ouch. This should not be the case. I will take a look at the @TestTemplate engine ...

@r1viollet r1viollet merged commit 98d0a12 into main Jul 7, 2025
96 checks passed
@r1viollet r1viollet deleted the r1viollet/flaky_tests branch July 7, 2025 16:05
@github-actions github-actions bot added this to the 1.29.0 milestone Jul 7, 2025
zhengyu123 pushed a commit that referenced this pull request Jul 9, 2025
Skip zing and j9 flaky tests
zhengyu123 added a commit that referenced this pull request Jul 9, 2025
* Potential memory leak with the JVMTI wallclock sampler

* v1

* Don't sample terminated thread

* v2

* v3

* v4

* Safe access

* Fix thread state

* v5

* Cleanup

* Cleanup

* safeFetch impl

* jdk11 support

* v6

* enhance and cleanup

* fix nullptr deference

* More cleanup

* Erwan's finding

* Fixed memory leak found by Erwan

* [Automated] Bump dev version to 1.29.0

* Update the sonatype repos (#235)

* Fix artifact download URL

* Split debug (#233)

* Split debug
Add build steps to store split debug information for release builds

* Add the micro-benchmark for thread filtering (#237)

* Add the micro-benchmark for thread filtering

* Do not test for obviously invalid thread id

* Relax threadfilter mem order

* Flaky test - j9 OSR (#239)

Skip zing and j9 flaky tests

* Fix flaky allocation test (#241)

Lower threshold for allocation test

* jbachorik's comments

* More jbachorik's comments

* Cleanup thread local references

---------

Co-authored-by: zhengyu.gu <[email protected]>
Co-authored-by: Datadog Java Profiler <[email protected]>
Co-authored-by: Jaroslav Bachorik <[email protected]>
Co-authored-by: Jaroslav Bachorik <[email protected]>
Co-authored-by: r1viollet <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants