fix: update stale test references in spec_ledger.yaml#254
fix: update stale test references in spec_ledger.yaml#254EffortlessSteven wants to merge 1 commit intomainfrom
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Rate limit exceeded
⌛ 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. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (6)
✨ 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. Comment |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on improving the maintainability and accuracy of test references and documentation. It introduces a new utility script to help keep test references up-to-date and corrects several existing references and microcrate counts in the project's feature status documentation. Additionally, it refines the linting policy for the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates test references and adds a new script to reconcile them. I've reviewed the changes and have a couple of suggestions for the new Python script scripts/reconcile_spec_tests.py to improve its robustness. Specifically, I've pointed out an issue with broad exception handling and a bug in the test discovery logic that could cause some tests to be missed. The other changes appear to be updates to generated files and a reasonable crate-level lint configuration change with good justification.
| elif line.strip() and not line.strip().startswith("#"): | ||
| pending = False |
There was a problem hiding this comment.
The current logic for finding test functions can fail if it encounters a Rust-style comment (//) between a #[test] attribute and the function definition. The check not line.strip().startswith("#") is insufficient because // does not start with #. This can cause tests that have comments above them to be missed by this script.
| elif line.strip() and not line.strip().startswith("#"): | |
| pending = False | |
| elif line.strip() and not (line.strip().startswith("#") or line.strip().startswith("//")): | |
| pending = False |
| rel = path.relative_to(ROOT).as_posix() | ||
| try: | ||
| lines = path.read_text(encoding="utf-8", errors="ignore").splitlines() | ||
| except Exception: |
There was a problem hiding this comment.
Summary