Repository navigation
Conversation
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 28 minutes. View limit detailsLimit details: You’ve used the included review currently available. Your 96 included PR review attempts over the past 7 days set your current allowance at 1 review per hour. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (2)
Comment |
Reviewer's GuideRepairs the stale merge-module path in the runtime-only rerun allowlist and adds filesystem and mutation-based tests to ensure build-script rerun directives cannot track runtime-only modules. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Check that every runtime-only rerun path still names a file so a\nfuture module move cannot silently weaken the build-script guard.
Extract the runtime-only rerun check into a validator shared by the build-script contract and mutation test. Mutate `build.rs` in memory to prove tracking `src/cli/merge/mod.rs` is rejected. Keep the test in a separate module to keep integration test files within the repository's size limit.
Use the moved host-pattern directive as the insertion anchor so the runtime-only mutation remains runnable after the module-layout change.
fac303b to
76f5ba1
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@coderabbitai review. Candidate head: 76f5ba1, based on main b6e7cf5. Please inspect the runtime-only merge-module boundary and its mutation test. Validation passed: make check-fmt, make test, make typecheck, and make lint. |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
git rev-parse HEAD
git diff --stat b6e7cf502a26d16bf7319c0990441b4920271a95 76f5ba1d93b4069af7fa4310f874eeabdc4ac7f6
git diff --no-ext-diff b6e7cf502a26d16bf7319c0990441b4920271a95 76f5ba1d93b4069af7fa4310f874eeabdc4ac7f6
fd -H '^AGENTS\.md$|^\.coderabbit\.ya?ml$'Length of output: 733 🏁 Script executed: #!/bin/bash
gh api repos/leynos/netsuke/compare/b6e7cf502a26d16bf7319c0990441b4920271a95...76f5ba1d93b4069af7fa4310f874eeabdc4ac7f6 --jq '{status, files: [.files[] | {filename,status,patch}]}'
fd -H '^AGENTS\.md$|^\.coderabbit\.ya?ml$'
fd -i 'build|boundary'
rg -n -C3 'runtime.only|src/cli/merge/mod\.rs' --type rustLength of output: 15867 🏁 Script executed: #!/bin/bash
cat AGENTS.md
ast-grep outline tests/build_module_slice_ui_tests.rs --items all
ast-grep outline tests/support/build_module_slice_runtime_only_tests.rs --items all
ast-grep outline build.rs --items all
ast-grep outline src/cli/merge/mod.rs --items all
sed -n '1,120p' tests/build_module_slice_ui_tests.rs
sed -n '230,390p' tests/build_module_slice_ui_tests.rs
cat -n tests/support/build_module_slice_runtime_only_tests.rs
rg -n -C4 'rerun-if-changed|path =|mod cli|mod host' build.rs
rg -n -C3 'mod merge|cfg.*build|mod parser|mod discovery' src/cli/mod.rs
python - <<'PY'
import pathlib, re
source = pathlib.Path('tests/build_module_slice_ui_tests.rs').read_text()
block = re.search(r'const RUNTIME_ONLY_RERUN_PATHS:.*?= &\[(.*?)\];', source, re.S).group(1)
for path in re.findall(r'"([^"]+)"', block):
print(f'{path}: is_file={pathlib.Path(path).is_file()}')
PYLength of output: 57886
This change guards unnecessary build-script reruns. It does not change runtime behaviour. Validation was inspected, not executed. The reported [review] You are interacting with an AI system. |
Correct the runtime-only rerun list to reference
src/cli/merge/mod.rs. Reject stale runtime-only entries whose files nolonger exist, and prove in memory that tracking the actual merge module
is rejected.
This guards unnecessary build-script reruns and does not indicate a
runtime failure. The mismatch was present at the base of PR #813, making
this follow-up separate from issue #811.
Closes #815
Summary by Sourcery
Repair build-script boundary checks for runtime-only rerun paths and prevent stale merge-module tracking.
Bug Fixes:
Enhancements:
Tests:
References