Skip to content

add server-version and patchline - #2

Merged
et-nik merged 2 commits into
mainfrom
server-version
Oct 18, 2026
Merged

et-nik merged 2 commits into
mainfrom
server-version

Conversation

@et-nik

@et-nik et-nik commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features
    • run and download now support selecting a server patchline and pinning a server version. These settings can also be configured, with command-line selections taking precedence.
    • Running with a pinned version downloads it when needed and skips staged updates. A requested version must already be installed or match the latest version available for the selected patchline.
    • Downloading server files clears staged updates. A version supplied on the command line is saved to the per-server configuration when possible.
  • Documentation
    • Added usage examples and guidance for patchlines, version pinning, and staged updates.

@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: a6f7e742-172a-42fe-a36e-b39040a3484c
📥 Commits

Reviewing files that changed from the base of the PR and between 4471a36 and 7de6dbc.

📒 Files selected for processing: 1
  • src/java/detector.rs
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. 2 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

📝 Walkthrough

The CLI and configuration now support patchline and server-version selection. Run and download commands pass the selected values to the downloader. Pinned runs skip staged updates, and successful downloads remove the updater staging directory.

Changes: Server-version selection

Layer / File(s) Summary
Selection options and configuration
src/cli/mod.rs, src/config/app_config.rs
CLI arguments and AppConfig add optional patchline and server-version settings. Configuration merging prefers overlay values. A new method updates an existing per-server version pin, with tests for replacement and no-op cases.
Patchline-aware version downloads
src/server/downloader.rs, src/server/updater.rs
ServerDownloader accepts an optional patchline and required version. It checks the requested version, applies the patchline to downloader commands, and removes updater staging after a successful download.
Run and download command behavior
src/cli/run.rs, src/cli/download.rs, README.md
Run and download commands resolve selections from CLI arguments and configuration, then pass them to the downloader. They attempt to save CLI-supplied server versions and warn if saving fails. Pinned runs skip staged updates. README examples describe the options and behavior.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant RunCommand
  participant FileSetup as ensure_server_files
  participant Downloader as ServerDownloader
  participant UpdateLoop as run_server_loop
  RunCommand->>FileSetup: selected patchline and server version
  FileSetup->>Downloader: download_all with required version
  Downloader-->>FileSetup: server files ready or version mismatch
  FileSetup-->>RunCommand: server-file setup result
  RunCommand->>UpdateLoop: requested server version
  UpdateLoop->>UpdateLoop: skip staged update when version is pinned
Loading
Merge Risk: ⚪ Minimal · up to 7de6d

The reviewed parser behavior is unchanged, with no identified user-facing impact.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly identifies the main changes: adding server-version and patchline support.
Docstring Coverage Passed Docstring coverage is 85.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 20 functions across 7 files.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@et-nik
et-nik merged commit dbb1d43 into main Oct 18, 2026
8 checks 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.

1 participant