Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

feat: port Java runtime selection and Maven cache settings - #308

Merged
chemzqm merged 2 commits into
masterfrom
codex/upstream-sync-20261003
Oct 3, 2026
Merged

chemzqm merged 2 commits into
masterfrom
codex/upstream-sync-20261003

Conversation

@chemzqm

@chemzqm chemzqm commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Adds Maven project-cache sizing, classpath variables and JavaSE-27 support, and adapts upstream tooling-JDK selection and AppCDS behavior while preserving Coc's existing transport and binary-resolution contracts.

Independent Codex review checked the complete source/configuration/test change at 26d9914 and TypeScript checks passed. The existing migration ledger records passing Neovim contracts and JDT integration, plus Vim interaction failures also reproduced on the baseline; those failures are not claimed as passing.

Review fixes and latest verification

At 1f81361, classpath variable validation is anchored and JDK discovery is deferred until client readiness while preserving explicit runtime/importer settings. Seven new regressions were added. Exact-head CI passed contracts40/40, real JDT integration8/8, build, and type checking: https://github.com/neoclide/coc-java/actions/runs/37118264688 . Local environment-only failures reproduced on the prior head and did not occur in CI. Latest GitHub Codex review of 1f81361 completed without major findings. Further Copilot requests are paused following its quota response.

- Add `java.jdt.ls.mavenProjectCacheSize` and `java.classpath.variables` settings
- Add JavaSE-27 execution environment definition
- Suppress AppCDS arguments on Java 26 and above
- Skip system JDK discovery when configured tooling JDK is valid
- Add regression tests and migration documentation

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Startup still performs system JDK discovery despite the stated optimization, and classpath validation accepts malformed variable names.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)
What changed in this PR

Ports upstream Java runtime, Maven cache, classpath-variable, and AppCDS updates, with migration records and contract tests.

Changes:

  • Adds JavaSE-27, classpath variables, and Maven cache configuration.
  • Updates JDK discovery and AppCDS behavior.
  • Expands tests and migration documentation.
File Description
AGENTS.md Adds task-branch delivery guidance.
migrate.md Records migration scope and validation.
package.json Adds settings and JavaSE-27.
src/​javaServerStarter.ts Adds cache and AppCDS handling.
src/​requirements.ts Defers one system JDK scan.
src/​settings.ts Restarts for cache-size changes.
sync-history.md Summarizes upstream maintenance.
test/​contracts.test.ts Adds regression contracts.

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

Comment thread package.json Resolved
Comment thread src/requirements.ts Resolved

chemzqm commented Oct 3, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 26d9914888

ℹ️ 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".

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T11:07:07.269135Z 1f81361 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Anchor classpath variable validation and preserve explicit project runtimes,
current settings, selected importers, and client lifecycle during background
JDK discovery. Add regression coverage and record cloud validation.

chemzqm commented Oct 3, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 1f81361820

ℹ️ 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".

@chemzqm
chemzqm merged commit fb956a3 into master Oct 3, 2026
1 check passed
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