Skip to content

Update CLI dependencies and fix ShellCommandTest#3074

Closed
CydeWeys wants to merge 2 commits into
google:masterfrom
CydeWeys:last-three-deps
Closed

Update CLI dependencies and fix ShellCommandTest#3074
CydeWeys wants to merge 2 commits into
google:masterfrom
CydeWeys:last-three-deps

Conversation

@CydeWeys
Copy link
Copy Markdown
Member

@CydeWeys CydeWeys commented May 29, 2026

This commit relaxes the upper bounds on CLI dependencies (jcommander, jline, and jakarta.servlet):
- org.jcommander to [2.0,)
- org.jline to [3.0,)
- jakarta.servlet to [6.0,)

Upgrading to the modern versions of jline introduced a breaking change where DefaultParser().parse(line, line.length()) strips trailing spaces when using the default ParseContext.UNSPECIFIED. This caused the autocompletion to misbehave and tests to fail.

This commit fixes ShellCommandTest.java by explicitly passing ParseContext.COMPLETE when parsing test strings to perfectly mimic the real-world JLine completion context.

This change is Reviewable

CydeWeys added 2 commits May 29, 2026 11:14
This commit relaxes the upper bounds on several dependencies that were previously hardcapped to specific versions:
- com.google.protobuf to [3.25.5,) and [3.17.3,)
- org.apache.beam to [2.72.0,)
- io.github.ss-bhatt to [1.0.0,)
- io.protostuff to [1.8.0,)
- redis.clients:jedis to [7.4.1,)
- org.junit.jupiter and org.junit.platform to [5.6.2,) and [1.6.2,)

Note: org.hibernate.orm and jakarta.persistence remain capped at 7.3.4.Final and [3.2.0,4.0.0) due to backwards incompatible deprecations added in newer versions that break the build under -Werror.

The lockfiles have been fully regenerated and all test suites ran successfully against the latest available transitive versions.
This commit relaxes the upper bounds on CLI dependencies (jcommander, jline, and jakarta.servlet):
- org.jcommander to [2.0,)
- org.jline to [3.0,)
- jakarta.servlet to [6.0,)

Upgrading to the modern versions of jline introduced a breaking change where DefaultParser().parse(line, line.length()) strips trailing spaces when using the default ParseContext.UNSPECIFIED. This caused the autocompletion to misbehave and tests to fail.

This commit fixes ShellCommandTest.java by explicitly passing ParseContext.COMPLETE when parsing test strings to perfectly mimic the real-world JLine completion context.
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

⚠️ Attention Required: Lockfile Detected

This pull request contains modifications to one or more *.lockfile files. Please confirm that you have run update_dependency.sh to push new dependencies to the private repo.

Someone with Admin role must manually dismiss this review before merging.

@CydeWeys CydeWeys closed this May 29, 2026
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