Skip to content

fix: update stale test references in spec_ledger.yaml#254

Open
EffortlessSteven wants to merge 1 commit intomainfrom
fix/spec-ledger-test-refs
Open

fix: update stale test references in spec_ledger.yaml#254
EffortlessSteven wants to merge 1 commit intomainfrom
fix/spec-ledger-test-refs

Conversation

@EffortlessSteven
Copy link
Member

Summary

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai
Copy link

coderabbitai bot commented Mar 9, 2026

Warning

Rate limit exceeded

@EffortlessSteven has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 2 minutes and 54 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: f59b3e7f-e6ac-487a-af2b-894536c63a3e

📥 Commits

Reviewing files that changed from the base of the PR and between 607f501 and 1aad85e.

📒 Files selected for processing (6)
  • crates/flight-scheduler/src/lib.rs
  • docs/bdd_metrics.json
  • docs/feature_status.md
  • docs/reference/feature-status.md
  • scripts/reconcile_spec_tests.py
  • specs/spec_ledger.yaml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/spec-ledger-test-refs

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 and usage tips.

@gemini-code-assist
Copy link

Summary of Changes

Hello, 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 flight-scheduler crate to better suit its real-time scheduling nature.

Highlights

  • Test Reference Reconciliation Script: Introduced a new Python script (scripts/reconcile_spec_tests.py) to automate the detection and reconciliation of stale test references within spec_ledger.yaml, providing suggestions for corrections.
  • Documentation Updates: Updated documentation files (docs/bdd_metrics.json, docs/feature_status.md, docs/reference/feature-status.md) to reflect the addition of new microcrates and correct existing test reference counts and paths.
  • Linting Policy Refinement: Modified the flight-scheduler crate's linting policy by adding several #[allow(clippy::*)] attributes, accompanied by detailed explanations for disabling specific pedantic lints relevant to its real-time scheduling nature.
Changelog
  • crates/flight-scheduler/src/lib.rs
    • Added crate-wide #[allow(clippy::*)] attributes with detailed comments explaining the rationale for disabling specific pedantic lints.
  • docs/bdd_metrics.json
    • Updated the total microcrate count from 87 to 92.
    • Added entries for five new microcrates: flight-dcs-bios, flight-ffb-brunner, flight-installer-tests, flight-pedals, and flight-testkit.
  • docs/feature_status.md
    • Updated the total microcrate count from 87 to 92 and adjusted associated percentages.
    • Added entries for five new microcrates: flight-dcs-bios, flight-ffb-brunner, flight-installer-tests, flight-pedals, and flight-testkit.
    • Corrected test reference counts for REQ-40 (AC-40.3 and AC-40.4) from 3 to 1 and 2 to 1 respectively.
    • Corrected a path for INF-REQ-17 (AC-17.1).
  • docs/reference/feature-status.md
    • Updated the total microcrate count from 87 to 92 and adjusted associated percentages.
    • Added entries for five new microcrates: flight-dcs-bios, flight-ffb-brunner, flight-installer-tests, flight-pedals, and flight-testkit.
    • Corrected test reference counts for REQ-40 (AC-40.3 and AC-40.4) from 3 to 1 and 2 to 1 respectively.
    • Corrected a path for INF-REQ-17 (AC-17.1).
  • scripts/reconcile_spec_tests.py
    • Added a new Python script designed to collect Rust test functions and reconcile their references in spec_ledger.yaml, offering suggestions for stale or incorrect entries.
Activity
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

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 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.

Comment on lines +33 to +34
elif line.strip() and not line.strip().startswith("#"):
pending = False

Choose a reason for hiding this comment

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

high

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.

Suggested change
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:

Choose a reason for hiding this comment

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

medium

Catching a broad Exception can hide unexpected errors (like KeyboardInterrupt) and make debugging more difficult. It's better to catch more specific exceptions that you expect to handle, such as IOError or OSError for file operations.

Suggested change
except Exception:
except (IOError, OSError):

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