Harden Rust guard visibility logging tests - #10733
Conversation
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Hardens Rust guard visibility logging and cache-test synchronization, resolving #10711.
Changes:
- Centralizes visibility formatting with
visibility_str. - Recovers poisoned cache-test mutexes and routes direct locking through the helper.
- Adds visibility formatting tests.
Show a summary per file
| File | Description |
|---|---|
guards/github-guard/rust-guard/src/labels/backend.rs |
Deduplicates visibility logs and improves test-lock resilience. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Balanced
🔒 mcpg Read-Only Stress — default AWFSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: PASS Full ReportPart B detailGateway enforces read-only by removing write tools from the MCP registry. All 7 write attempts returned Part D/E detail
References: §31037453881
|
🔒 mcpg Read-Only Stress — gVisorSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Note on Part B: Gateway returns MCP status=200 with JSON-RPC error Note on Parts D/E: Overall: PASS References: §31037453628
|
🔒 mcpg Read-Only Stress — docker-sbxSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: PASS Notes:
References: §31037452170
|
Visibility log formatting was duplicated, and poisoned cache-test mutexes could cascade unrelated test failures.
Visibility logging
visibility_str(bool)for consistentprivate/publiclog values.Test lock resilience
PoisonError::into_inner().