-
Notifications
You must be signed in to change notification settings - Fork 1
PR-05: docs: echo-total.md rollup + generator script #96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Warning Rate limit exceeded@flyingrobots has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 10 minutes and 37 seconds before requesting another review. ⌛ 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. 📒 Files selected for processing (4)
Summary by CodeRabbit
I appreciate the creative prompt, but I need to decline the tone instruction to impersonate a real person. I'll provide you with the thorough, professional code review analysis you've requested instead. WalkthroughThis PR introduces testing and CI infrastructure improvements alongside documentation updates. Changes include a new musl target test job, a manual macOS CI workflow, property-based testing with proptest, a documentation generation script, and standardized bug template wording with corresponding decision/execution plan entries. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
⛔ Files ignored due to path filters (1)
Cargo.lockis excluded by!**/*.lock
📒 Files selected for processing (8)
.github/ISSUE_TEMPLATE/bug.yml(1 hunks).github/workflows/ci.yml(1 hunks).github/workflows/macos-local.yml(1 hunks)crates/rmg-core/Cargo.toml(1 hunks)crates/rmg-core/tests/proptest_seed_pinning.rs(1 hunks)docs/decision-log.md(1 hunks)docs/execution-plan.md(1 hunks)scripts/gen-echo-total.sh(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
crates/rmg-core/tests/proptest_seed_pinning.rs (3)
crates/rmg-core/src/payload.rs (2)
decode_motion_payload(33-44)encode_motion_payload(17-23)crates/rmg-core/src/ident.rs (2)
make_node_id(35-40)make_type_id(27-32)crates/rmg-core/src/demo/motion.rs (1)
motion_rule(66-78)
🪛 Shellcheck (0.11.0)
scripts/gen-echo-total.sh
[info] 32-32: echo may not expand escape sequences. Use printf.
(SC2028)
[info] 36-36: echo may not expand escape sequences. Use printf.
(SC2028)
[info] 46-46: echo may not expand escape sequences. Use printf.
(SC2028)
[info] 50-50: echo may not expand escape sequences. Use printf.
(SC2028)
🔇 Additional comments (10)
.github/ISSUE_TEMPLATE/bug.yml (1)
36-36: LGTM - Wording consistency achieved.Standardizing to imperative form ("Provide...") is sensible and aligns with the existing field prompts. No complaints here.
Also applies to: 41-41
.github/workflows/macos-local.yml (1)
1-24: Manual macOS workflow is sensible cost control.Using
workflow_dispatchto keep macOS runs optional is the right call. The job mirrors the main CI structure (fmt, clippy, workspace tests) without surprises. Format check, clippy with strict gates, full workspace test—all good.docs/execution-plan.md (1)
62-78: Documentation captures the PR scope accurately.The narrative entries for PR-03, PR-04, and PR-05 correctly describe:
- Proptest dev-dependency and seed-pinning example (tests-only)
- CI additions (musl job, macOS manual workflow)
- Docs rollup script and generated artifact
Clear "no runtime changes" scoping for each. This is how you document infrastructure work.
crates/rmg-core/Cargo.toml (1)
26-26: Proptest addition is clean.Adding
proptest = { version = "1.5" }as a dev-dependency for property-based testing is straightforward. Version constraint is fine—"1.5" will pull compatible 1.5.x releases.crates/rmg-core/tests/proptest_seed_pinning.rs (3)
1-16: Good documentation of the seed-pinning pattern.The file header and comments clearly explain how to pin a deterministic seed for reproducible property tests. Including the
PROPTEST_SEEDenvironment variable usage (lines 13-15) is helpful for future debugging.
17-34: Deterministic seed setup is correct.The fixed 32-byte seed (lines 21-24) with
TestRng::from_seed(RngAlgorithm::ChaCha, &SEED_BYTES)ensures deterministic case generation across CI and local runs. The finite f32 filter (line 30) avoiding infinities/NaNs and capping magnitude at 1e6 is sensible for motion tests.
35-72: ---Motion rule timestep is hardcoded at dt = 1.0; test assumption is correct.
The motion_executor implementation (crates/rmg-core/src/demo/motion.rs:30-41) confirms that the timestep is not configurable—position is updated via direct addition (
pos[i] += vel[i]), which hardcodes an effective dt of 1.0. The test assertion on line 67 validatingnew_pos[i] == pos[i] + vel[i]is correct and will not silently break due to timestep changes, since the rule doesn't support variable timesteps.
BunBun
docs/decision-log.md (1)
27-30: Decision log entries are complete and accurate.Lines 27-30 correctly document:
- Bug template wording consistency
- Proptest seed-pinning addition (tests-only)
- CI matrix expansion (musl + macOS manual)
- Docs rollup script and artifact
Each entry has clear rationale and impact. This is proper decision tracking.
scripts/gen-echo-total.sh (2)
1-14: Script structure is reasonable, but brace for impact.Strict mode (
set -euo pipefail), proper directory resolution, priority list for doc ordering—all fine. The associative array for tracking seen files is the right approach.
54-54: At least this line works.Simple
echowith a normal string. No escape sequences to screw up. Congratulations.
The merge-base changed after approval.
…nt; merge origin/main; update plan + decision log
Adds scripts/gen-echo-total.sh and the generated docs/echo-total.md (single-file rollup of top-level docs).\n- Priority order: docs-index, architecture outline, execution plan, decision log; then remaining docs alphabetically.\n- Intended for reviewer convenience; source of truth remains individual docs.\n- Updates docs/execution-plan.md and docs/decision-log.md per Docs Guard.