test(windows): diagnose Console catalog ACL omission - #223
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 49 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: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughConsole configuration discovery now exposes optional candidate-stage diagnostics. Trusted-candidate reads report detailed outcomes across ACL, file, validation, parsing, and migration stages, while dashboard tests capture and verify ordered diagnostics and Windows ACL behavior. ChangesConsole catalog candidate diagnostics
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/console/console-config-catalog.ts`:
- Around line 180-183: Extract a shared type alias for Awaited<ReturnType<typeof
open>> and use it in both closeTrustedConfigurationHandle and
readTrustedConfiguration, replacing the duplicated handle type expressions.
- Around line 180-192: Update closeTrustedConfigurationHandle so errors from
handle.close() are observed without being rethrown, allowing an already parsed
and validated candidate to remain accepted. Preserve the existing success and
error stage observations while preventing cleanup failure from rejecting the
successful candidate path.
In `@tests/console-dashboard-application-service.test.ts`:
- Around line 107-123: The catalogStageSummary helper implicitly maps candidate
names to candidateIndex values based on fixture file count and alphabetical
ordering. Add a brief comment near the candidates declaration or event filtering
documenting that gsc is index 0 and sentry is index 1 because the fixture files
are discovered in alphabetical order.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 8356e31e-35be-4004-b40d-c5ddf2cf8975
📒 Files selected for processing (2)
src/console/console-config-catalog.tstests/console-dashboard-application-service.test.ts
Refs #214
This PR is diagnostic-only. Its Windows test intercepts the exact ConsoleDashboardApplicationService catalog call, delegates immediately to the real catalog implementation, and calls the real production ACL verifier. It records only fixed fixture labels and the bounded outcome trusted, untrusted, or error; verifier errors are rethrown so the catalog preserves its normal fail-closed behavior.
The resulting assertion distinguishes missing enumeration, repeated ACL verification failure, verifier error, and a later trusted-read or metadata omission. No timeout, security boundary, or production behavior has changed.
Local validation:
Summary by CodeRabbit
New Features
Tests