Skip to content

Make child-process tests portable across operating systems - #12355

Draft
AlexeyKuznetsov-DD wants to merge 1 commit into
masterfrom
alexeyk/pure-java-test-commands
Draft

Make child-process tests portable across operating systems#12355
AlexeyKuznetsov-DD wants to merge 1 commit into
masterfrom
alexeyk/pure-java-test-commands

Conversation

@AlexeyKuznetsov-DD

Copy link
Copy Markdown
Contributor

What Does This Do

Adds PortableCommand so tests can run echo, cat, sleep, and a non-terminating command without OS-specific call sites. POSIX keeps native utilities; Windows uses a small child JVM.

Migrates ProcessSupervisorTest and ShellCommandExecutorTest to the portable commands.

Motivation

Make child-process tests OS-independent without relying on Windows shell builtins or changing existing POSIX behavior.

Additional Notes

Validated the helper on the default JVM and Java 8, plus both migrated test classes: 43 focused test executions passed.

Contributor Checklist

Jira ticket: N/A

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD added comp: testing Testing tag: no release notes Changes to exclude from release notes type: refactoring tag: ai generated Largely based on code generated by an AI or LLM labels Aug 31, 2026
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD self-assigned this Aug 31, 2026
@datadog-prod-us1-6

This comment has been minimized.

@dd-octo-sts

dd-octo-sts Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 14.82 s 14.79 s [-0.7%; +1.1%] (no difference)
startup:insecure-bank:tracing:Agent 13.63 s 13.75 s [-1.7%; -0.1%] (maybe better)
startup:petclinic:appsec:Agent 17.40 s 17.34 s [-0.7%; +1.4%] (no difference)
startup:petclinic:iast:Agent 16.87 s 17.60 s [-8.4%; +0.1%] (no difference)
startup:petclinic:profiling:Agent 17.45 s 17.32 s [-0.3%; +1.7%] (no difference)
startup:petclinic:sca:Agent 17.55 s 17.41 s [-0.1%; +1.7%] (no difference)
startup:petclinic:tracing:Agent 16.58 s 16.66 s [-1.4%; +0.5%] (no difference)

Commit: 25626260 · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD removed the tag: ai generated Largely based on code generated by an AI or LLM label Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: testing Testing tag: no release notes Changes to exclude from release notes type: refactoring

1 participant