Skip to content

WIP: Allow passing command line properties to tests#577

Closed
zhengyu123 wants to merge 24 commits into
mainfrom
zgu/test_cmd_opts
Closed

WIP: Allow passing command line properties to tests#577
zhengyu123 wants to merge 24 commits into
mainfrom
zgu/test_cmd_opts

Conversation

@zhengyu123
Copy link
Copy Markdown
Contributor

What does this PR do?:

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!

@zhengyu123 zhengyu123 requested a review from a team as a code owner June 4, 2026 18:32
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b67b5cc7d2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1272 to +1274
if (!isHiddenClass(jvmti, klass) &&
jvmti->GetClassLoader(klass, &cl) == JVMTI_ERROR_NONE &&
isSystemClassLoaders(jni, cl)) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid treating hidden classes as loader-pinned

When a hidden class is defined from ordinary class bytes (for example via Lookup.defineHiddenClass using an application-loader lookup class), GetClassModifiers can return normal class-file modifiers rather than 0/synthetic/bridge, so this condition treats it as a system-loader class and skips GetClassMethods. Later samples store a raw Method* for a class that can still be unloaded independently of the loader, leaving stored traces with stale VM metadata pointers to resolve at dump time.

Useful? React with 👍 / 👎.

Comment on lines +318 to +322
// Profiler options from -Pprofiler.options property
val profilerOptions = project.findProperty("profiler.options") as String?
if (profilerOptions != null) {
allArgs.add("-Dddprof.test.options=$profilerOptions")
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Pass profiler options to the normal Test tasks

This only wires -Pprofiler.options into the Exec-based paths, but on glibc/macOS the regular test<Config> tasks are created by createTestTask, which never adds -Dddprof.test.options to its JVM args. As a result, the documented/normal workflow such as testDebug -Pprofiler.options=... silently ignores the override unless the user switches to the new testProcess<Config> task or runs on musl.

Useful? React with 👍 / 👎.

@datadog-prod-us1-3
Copy link
Copy Markdown

datadog-prod-us1-3 Bot commented Jun 4, 2026

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 6 Pipeline jobs failed

CI Run | test-matrix / test-linux-musl-amd64 (11-librca, debug)   View in Datadog   GitHub Actions

See error 10 failed attempts for method 'pingPong' in ContendedWallclockSamplesTest. Assertion failed: expected <true> but was <false>.

CI Run | test-matrix / test-linux-musl-amd64 (17-librca, debug)   View in Datadog   GitHub Actions

See error 5 tests failed due to unexpected unexpected results: expected <true> but got <false> in multiple instances including ContendedWallclockSamplesTest and ContextWallClockTest.

CI Run | test-matrix / test-linux-musl-amd64 (21-librca, debug)   View in Datadog   GitHub Actions

See error 11 tests failed due to assertion failures related to profiler data: expected results but received NaN values.

View all 6 failed jobs.

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: b67b5cc | Docs | Datadog PR Page | Give us feedback!

@zhengyu123 zhengyu123 marked this pull request as draft June 4, 2026 18:47
@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts Bot commented Jun 4, 2026

CI Test Results

Run: #26971651105 | Commit: e3dd847 | Duration: 13m 15s (longest job)

5 of 32 test jobs failed

Status Overview

JDK glibc-aarch64/debug glibc-amd64/debug musl-aarch64/debug musl-amd64/debug
8 - - -
8-ibm - - -
8-j9 - -
8-librca - -
8-orcl - - -
11 - - -
11-j9 - -
11-librca - -
17 - -
17-graal - -
17-j9 - -
17-librca - -
21 - -
21-graal - -
21-librca - -
25 - -
25-graal - -
25-librca - -

Legend: ✅ passed | ❌ failed | ⚪ skipped | 🚫 cancelled

Failed Tests

musl-amd64/debug / 21-librca

Job: View logs

No detailed failure information available. Check the job logs.

musl-amd64/debug / 17-librca

Job: View logs

No detailed failure information available. Check the job logs.

musl-amd64/debug / 25-librca

Job: View logs

No detailed failure information available. Check the job logs.

musl-amd64/debug / 11-librca

Job: View logs

No detailed failure information available. Check the job logs.

musl-amd64/debug / 8-librca

Job: View logs

No detailed failure information available. Check the job logs.

Summary: Total: 32 | Passed: 27 | Failed: 5


Updated: 2026-06-04 18:49:21 UTC

@zhengyu123 zhengyu123 closed this Jun 5, 2026
@zhengyu123 zhengyu123 deleted the zgu/test_cmd_opts branch June 5, 2026 14:50
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.

1 participant