feat(xtest): Enables pqc test suite in ci#443
Conversation
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthroughAdds an Changes
Sequence Diagram(s)(omitted — changes are small and do not introduce complex multi-component sequential flows) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Review rate limit: 0/1 reviews remaining, refill in 56 minutes and 43 seconds.Comment |
X-Test Failure Report❌ js-main |
…algorithm Add InvalidAlgorithm exception to otdfctl.py and update _get_or_create_key() to catch it and skip tests when the platform doesn't support a key algorithm. This allows PQC test fixtures to skip cleanly instead of failing when platform 0.14.x (or earlier) doesn't yet implement PQC/PQT key support. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@xtest/fixtures/keys.py`:
- Around line 56-66: The helper currently swallows all InvalidAlgorithm
exceptions around otdfctl.kas_registry_create_key which can hide real failures;
update the except InvalidAlgorithm block so it only calls pytest.skip for
algorithms that are feature-gated (e.g., check against your PQC_ALGORITHMS list
or use an existing is_feature_gated_algorithm(algorithm) helper), and for any
other algorithm re-raise the exception (use raise). Modify the except block in
the code around kas_registry_create_key in keys.py to perform that conditional
skip vs re-raise logic.
In `@xtest/otdfctl.py`:
- Around line 43-47: Run the code formatter to fix formatting issues flagged by
ruff: run "ruff format xtest/otdfctl.py" (or your project's formatter command)
and commit the updated file; ensure that the class InvalidAlgorithm and
surrounding whitespace/indentation are normalized by the formatter so "ruff
format --check" passes.
🪄 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: 67e97349-5d9c-40e2-b202-618849aa20bc
📒 Files selected for processing (3)
.github/workflows/xtest.ymlxtest/fixtures/keys.pyxtest/otdfctl.py
X-Test Failure Report❌ go-v0.14.0 |
Resolves refs/heads/<branch> inputs (other than main) by stripping the prefix before lookup, so callers passing full git refs like refs/heads/release/sdk-v0.17 no longer fail version resolution. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…solution" This reverts commit 7545343.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
X-Test Failure Report |
X-Test Results✅ js-v0.14.0 |



Summary by CodeRabbit
Bug Fixes
Tests