You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reduce certificate setup time in Account composition tests - #3499
Reuse the signed leaf and its matching key directly in the Account composition fixture.
Keep fixture CA validation, certificate identity and purpose, and per-session isolation. Keep the existing store-based path for other callers.
Validation
Controlled historical comparison at 1c1a8b99 passed the same 36 cases on both paths. JUnit suite time decreased from 1,310.330 s to 1,186.427 s (9.46%). This measures the fixture workload only.
Current develop at d49d0e10: all three Account composition integration cases passed with no skips. Spotless passed after formatting.
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Summary
Test-only change. No production code, contracts, schemas, or deployment settings change. Diff: 2 files, +70/−33.
services/common-test-support (LoopbackMtlsTestPki, testFixtures): Adds createWithDirectSignedLeafRead. Both public methods call a private create overload with a flag. When the flag is true, issueIdentity skips the keystore imports of the CA and signed leaf, reads the leaf from its output file, and checks that the private key and stored certificate exist, that their public keys match, and that the leaf verifies against the CA. Failed checks throw GeneralSecurityException. The store-based path is unchanged.
services/account-service (AccountGameSessionOriginalNewFinalAdmissionCompositionIntegrationTest): Uses the new method (one-line change).
Validation: the PR reports 36 matching cases and a 9.46% suite-time reduction. Not verified here.
The test PKI fixture adds a creation method that reads the signed leaf certificate from its output file and validates it against the keystore and CA. An account-service integration test uses this method.
The fixture adds createWithDirectSignedLeafRead and a conditional issuance path. This path reads the leaf certificate from its output file, checks that its public key matches the keystore certificate, verifies it with the CA public key, and returns it with the private key.
Integration test selection services/account-service/src/test/java/integration/net/firedevops/firemud/accountservice/repository/AccountGameSessionOriginalNewFinalAdmissionCompositionIntegrationTest.java
The integration test uses createWithDirectSignedLeafRead; its PKI directory, CA name, and identity specifications remain unchanged.
This test-only change speeds up certificate setup in the Account composition integration test by reading the signed leaf certificate directly, while keeping CA validation and key matching. Production code is not touched and other callers keep the existing path. No concrete merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: reducing certificate setup time in the Account composition tests. The raw summary shows the change adds a direct signed-leaf read path to the LoopbackMtlsTestPki fixtu…
Description check
The description has a Summary and a Validation section, which covers the purpose and the checks run. It gives concrete evidence: a controlled historical comparison with timing figures, a passing run o…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: reducing certificate setup time in the Account composition tests. The raw summary shows the change adds a direct signed-leaf read path to the LoopbackMtlsTestPki fixture and switches the Account composition integration test to it. The objectives confirm the aim is to speed up that fixture by reusing the signed leaf certificate and its matching key. The title is concise, specific, and free of noise.
Full details: Description check
Explanation
The description has a Summary and a Validation section, which covers the purpose and the checks run. It gives concrete evidence: a controlled historical comparison with timing figures, a passing run of the three Account composition integration cases on current develop, Spotless, and an independent source review. It does not have the What Changed or Notes sections from the template, and the Summary does not reference related issues or design docs. The LOC Impact section is generated by CI and is not expected from the author. The missing What Changed section is the main gap, since the summary names no changed files or the new createWithDirectSignedLeafRead method. The description is mostly complete, so the check passes.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Fix failing CI checks
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
⚠️ Known PLAY failed: ERROR ENTITLEMENT_UNAVAILABLE after LOGIN. Canonical PLAY transition exception accepted; no runtime qualification or publication.
✅ Changes detection: success
✅ Smoke Gate: success
❌ PR Full-Stack Smoke: failure (known PLAY exception accepted; no runtime qualification or publication)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
1c1a8b99passed the same 36 cases on both paths. JUnit suite time decreased from 1,310.330 s to 1,186.427 s (9.46%). This measures the fixture workload only.developatd49d0e10: all three Account composition integration cases passed with no skips. Spotless passed after formatting.FireMUD LOC impact
Compared
d49d0e10a3fa→65d065bbdeae(PR merge-base → head).PR scope: 5 changed files · 93 added textual lines / 37 deleted textual lines.
Rows are hierarchical and overlapping views; do not add them together.
LOC means cloc code lines; blank and comment-only lines are excluded.