zhengdaodeguL opened a new pull request, #77670: URL: https://github.com/apache/airflow/pull/77670
## Summary The Java SDK currently ships LGPL-2.1-or-later `kotlin-argparser` and its transitive `xenocom` dependency at runtime, which ASF projects cannot include. `Server.create` only needs the coordinator's `--comm` and `--logs` options and the Gradle plugin's `--describe-sources` option, so it can parse those directly without an additional runtime library. Closes #77467 ## Tests - Added checks for missing required arguments, missing values, malformed addresses, and unknown arguments. - Added a forked-JVM regression test that creates a `Server` after filtering `kotlin-argparser` and `xenocom` from the runtime classpath. - Updated the socket tests to exercise the coordinator's equals-form address arguments. ## Verification - `git diff --check` passed. - Java SDK build and tests ran via the Gradle wrapper (`:sdk:build` with the ktlint style checks skipped): 416 tests completed, 7 failed (rebased onto current `main`; the pre-rebase run was 413 tests, same 7 failures). All 7 failures are environment artifacts of the verification sandbox, not of this change: 2 in `ServerTest` (`SocketTimeoutException: Accept timed out` on localhost) and 5 in `CancellationTest` (the sandbox's `JAVA_TOOL_OPTIONS` line is picked up by the forked test JVMs and pollutes the exact stdout assertions). The 3 new tests added here all pass on the fix and all fail on the unpatched base (base negative control: 10 failed = the same 7 environment failures + the 3 new tests). - `:sdk:dependencyInsight --dependency kotlin-argparser --configuration runtimeClasspath` reports no matching dependencies — `kotlin-argparser` (and its transitive `xenocom`) are no longer on the runtime classpath. - `java-sdk/gradle/verification-metadata.xml` is unchanged, so no metadata regeneration was needed. - The ktlint style checks could not run in this sandbox (the Gradle worker daemons cannot connect back to the daemon over localhost here); please run them in CI. ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Codex 0.164.0-alpha.9 Generated-by: Codex 0.164.0-alpha.9 following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
