Skip to content

fix(xtest): Add secp256r1-mlkem768 mechanism to java cli#531

Merged
dmihalcik-virtru merged 3 commits into
mainfrom
dmihalcik-virtru-patch-1
Jun 23, 2026
Merged

fix(xtest): Add secp256r1-mlkem768 mechanism to java cli#531
dmihalcik-virtru merged 3 commits into
mainfrom
dmihalcik-virtru-patch-1

Conversation

@dmihalcik-virtru

@dmihalcik-virtru dmihalcik-virtru commented Jun 22, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Tests
    • Added support for testing a new cryptographic mechanism in the test suite.

@dmihalcik-virtru dmihalcik-virtru requested review from a team as code owners June 22, 2026 18:27
@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@sujankota, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 15 minutes and 41 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses rolling per-developer review limits. Reviews become available again as older review attempts age out of the rolling limit window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 206906c7-8f21-4c93-82ba-b5de3fba725b

📥 Commits

Reviewing files that changed from the base of the PR and between afd3cb6 and ecbde40.

📒 Files selected for processing (1)
  • xtest/sdk/java/cli.sh
📝 Walkthrough

Walkthrough

A new feature case mechanism-mechanism-secpmlkem is added to the supports mode in xtest/sdk/java/cli.sh. When triggered, it runs cmdline.jar help encrypt, performs a case-insensitive grep for secp256r1-mlkem768, and exits with the grep's status code.

Changes

Java CLI secp256r1-mlkem768 Support Detection

Layer / File(s) Summary
Add mechanism-mechanism-secpmlkem feature case
xtest/sdk/java/cli.sh
Adds a new supports-mode case that enables pipefail, validates encryption help output from cmdline.jar contains secp256r1-mlkem768 (case-insensitive), and exits with the grep result.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A rabbit hops and checks the key,
secp256r1-mlkem768 found with glee!
The grep returns a zero'd way,
New mechanism spotted today.
🐇✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
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 change: adding support for the secp256r1-mlkem768 mechanism to the Java CLI test script, which directly matches the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dmihalcik-virtru-patch-1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request adds support for checking the secp256r1-mlkem768 mechanism in the Java CLI test script. However, the case pattern contains a duplicate prefix (mechanism-mechanism-secpmlkem) and should be corrected to mechanism-secpmlkem to match the feature name properly.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread xtest/sdk/java/cli.sh Outdated

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@xtest/sdk/java/cli.sh`:
- Line 105: The case label `mechanism-mechanism-secpmlkem` on line 105 contains
a typo with a doubled "mechanism-" prefix that does not match the expected
feature name used by the upstream test infrastructure. Remove the duplicate
"mechanism-" prefix from the case label so it reads `mechanism-secpmlkem`
instead. This will ensure the feature detection logic correctly identifies the
secp256r1-mlkem768 feature and prevents the code from falling through to the
default case that returns exit code 2.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7be1a8ef-dabd-4766-90de-bf44c78e4178

📥 Commits

Reviewing files that changed from the base of the PR and between f1ae3a6 and afd3cb6.

📒 Files selected for processing (1)
  • xtest/sdk/java/cli.sh

Comment thread xtest/sdk/java/cli.sh Outdated
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@dmihalcik-virtru dmihalcik-virtru merged commit 61c70ca into main Jun 23, 2026
17 checks passed
@dmihalcik-virtru dmihalcik-virtru deleted the dmihalcik-virtru-patch-1 branch June 23, 2026 16:15
@sonarqubecloud

Copy link
Copy Markdown

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