ci(dylint): symlink the @<toolchain> alias so the retry loop converges (fixes #964) - #973
ci(dylint): symlink the @<toolchain> alias so the retry loop converges (fixes #964)#973zackees wants to merge 1 commit into
Conversation
#964) The Dylint job has been red on main: cargo-dylint 5.0.0 builds each lint lib as bare `lib<name>.so` then looks for `lib<name>@<toolchain>.so` and fails 'despite successful build'. The retry loop `cp`-aliased bare -> @toolchain, but cargo-dylint rebuilds the libs on every invocation, so the static copy went stale against the freshly-built bare lib on the next attempt and re-triggered the same error — and the loop's `[ ! -e ]` guard refused to refresh the existing stale copy, bailing with 'no new aliases to create'. Use a relative symlink instead of a copy: it always resolves to the current bare lib, so it stays fresh across cargo-dylint's rebuilds and the retry converges. Restores enforcement of the ban_raw_subprocess / ban_raw_path_prefix_compare lints (#963) that have not actually run in CI. Fixes #964. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 11 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ 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 |
|
Closing without merging: the symlink alias got the retry loop from failing on attempt 2 to attempt 25 (more robust than the stale |
Problem
The Dylint job is red on
main(has been for a while), so the custom lints —ban_raw_subprocessand theban_raw_path_prefix_compareguardrail added in #963 — have never actually enforced in CI.Root cause, from the failing log:
cargo-dylint 5.0.0 builds each lint lib as bare
lib<name>.sobut looks forlib<name>@<toolchain>.so. The retry loopcp-aliased bare →@toolchain— but cargo-dylint rebuilds the libs on every invocation ("Locking 153 packages" each attempt), so the static copy from attempt 1 goes stale against the freshly-built bare lib on attempt 2 and re-triggers the same error. The loop's[ ! -e "$alias_path" ]guard then refuses to refresh the existing stale copy →created_any=0→ "no new aliases to create" → bail.Fix
Alias with a relative symlink instead of a copy. A symlink always resolves to the current bare lib, so it stays fresh across cargo-dylint's rebuilds and the retry converges (attempt 1 creates the symlinks; attempt 2 finds fresh
@toolchainlibs and succeeds).CI-only change (
.github/workflows/dylint.yml); this PR's own Dylint run is the validation — if it goes green, the guardrails enforce again.Fixes #964.
🤖 Generated with Claude Code