Skip to content

[Java] Clean-up: make it so interim time during implementation produces correct artifacts - #2345

Merged
edburns merged 2 commits into
mainfrom
edburns/2323-java-windows-x64-embed-rust
Aug 24, 2026
Merged

[Java] Clean-up: make it so interim time during implementation produces correct artifacts#2345
edburns merged 2 commits into
mainfrom
edburns/2323-java-windows-x64-embed-rust

Conversation

@edburns

@edburns edburns commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

Fixes #2344 .

Since the merging of #2301 , the Java Maven POM incorrectly produced artifacts containing linux-x64 in the filename, regardless of the actual os-arch of the build. This is incorrect. The correct behavior is to make it so only when the actual os-arch is linux-x64 should such artifacts be produced.

Copilot AI balanced review requested due to automatic review settings August 16, 2026 23:46
@edburns
edburns requested a review from a team as a code owner August 16, 2026 23:46
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Restricts Java native-runtime packaging to supported build hosts so incorrect platform-classified artifacts are not produced.

Changes:

  • Adds host-activated Maven native packaging.
  • Updates native-build documentation and ADR.
  • Adds temporary implementation and validation plans.
Show a summary per file
File Description
java/copilot-native/pom.xml Adds host-gated native packaging profiles.
java/README.md Documents native build behavior.
java/docs/adr/adr-007-native-bundling-strategy.md Records the host-matched packaging strategy.
2323-java-windows-x64-embed-rust-remove-before-merge/20260815-make-it-so-no-incorrect-os-arch-artifacts-are-produced.md Adds a temporary implementation plan.
2323-java-windows-x64-embed-rust-remove-before-merge/20260816-notes-to-linux-x64-agent.md Adds a temporary Linux validation handoff.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 5/5 changed files
  • Comments generated: 4
  • Review effort level: Balanced

Comment thread java/copilot-native/pom.xml
Comment thread java/copilot-native/pom.xml
@github-actions

This comment has been minimized.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 2ea248b2-112a-4548-865e-922721479b0c
@edburns
edburns force-pushed the edburns/2323-java-windows-x64-embed-rust branch from 84a429b to c5c8e28 Compare August 24, 2026 18:47
@github-actions

This comment has been minimized.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: de80978a-085e-476a-97a2-d2c5858446f6

fix(java): guard native packaging by libc

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: de80978a-085e-476a-97a2-d2c5858446f6

Remove prompts before merge
@edburns
edburns force-pushed the edburns/2323-java-windows-x64-embed-rust branch from c5c8e28 to a3316cc Compare August 24, 2026 21:40
@github-actions

Copy link
Copy Markdown
Contributor

Cross-SDK Consistency Review ✅

This PR is entirely scoped to the Java SDK's native bundling infrastructure — no public SDK API surface is added or modified.

Changed files:

  • .github/workflows/java-sdk-tests.yml — CI workflow fix
  • java/README.md — documentation update
  • java/copilot-native/pom.xml — Maven POM artifact naming fix
  • java/copilot-native/scripts/validate-native-host.mjs — new validation script
  • java/copilot-native/scripts/validate-native-host.test.mjs — tests for that script
  • java/docs/adr/adr-007-native-bundling-strategy.md — architecture decision record

Consistency assessment: The fix corrects incorrect linux-x64 artifact names being produced on all platforms. This is a Java-specific native bundling concern (the copilot-native module is unique to the Java SDK). No other SDKs embed platform-native binaries this way, so there is nothing to mirror in Node.js, Python, Go, .NET, or Rust.

No cross-language consistency issues found. 🎉

Generated by SDK Consistency Review Agent for #2345 · sonnet46 17.7 AIC · ⌖ 5.42 AIC · ⊞ 6.6K ·

@edburns
edburns merged commit 6e6eb55 into main Aug 24, 2026
31 checks passed
@edburns
edburns deleted the edburns/2323-java-windows-x64-embed-rust branch August 24, 2026 22:02
@edburns
edburns restored the edburns/2323-java-windows-x64-embed-rust branch August 24, 2026 22:03
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.

[Java] Clean-up: make it so interim time during implementation produces correct artifacts

2 participants