Split squid config tests by concern#5575
Conversation
There was a problem hiding this comment.
Pull request overview
This PR improves test organization for Squid configuration and policy-manifest generation by splitting a previously mixed-responsibility suite into focused, independently runnable test files.
Changes:
- Split
generateSquidConfigcoverage into a dedicated core suite (src/squid-config-core.test.ts). - Consolidated
generatePolicyManifestcoverage insrc/squid-config-policy.test.ts, removing unrelated top-level suites. - Moved API-proxy-specific policy-manifest rule-order tests into
src/squid-config-policy-api-proxy.test.ts.
Show a summary per file
| File | Description |
|---|---|
| src/squid-config-policy.test.ts | Removes unrelated suites so this file focuses on policy-manifest behavior (and related config assertions). |
| src/squid-config-policy-api-proxy.test.ts | Adds isolated tests for API-proxy policy-manifest rule presence/order. |
| src/squid-config-core.test.ts | Adds focused tests for core Squid config generation (structure, domain patterns, rule ordering). |
| src/squid-config.test.ts | Removed in favor of the three focused suites above. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Low
|
✅ Copilot review passed with no inline comments. @copilot Add the |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅ |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
✅ Contribution Check completed successfully! Contribution check complete for PR #5575: changes are a test-only refactor with focused suites under src/, clear PR description, no documentation needed, and no important CONTRIBUTING.md gaps found. |
|
✅ Smoke Gemini completed. All facets verified. 💎 |
|
🔑 Smoke Copilot PAT PAT auth validated. All systems operational. ✅ |
|
✅ Smoke Copilot BYOK AOAI (api-key) completed. Copilot AOAI BYOK (api-key) mode operational. 🔓 |
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓 |
|
✅ Smoke Claude passed |
|
🔌 Smoke Services — All services reachable! ✅ |
|
🚀 Security Guard has started processing this pull request |
|
✅ Build Test Suite completed successfully! |
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded. |
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
|
✅ Smoke Copilot BYOK AOAI (Entra) completed. Copilot AOAI BYOK (Entra) mode operational. 🔓 |
Smoke Test: Claude Engine Validation
Overall result: PASS
|
🔬 Smoke Test ResultsPR: Split squid config tests by concern
Overall: FAIL — pre-step outputs were not resolved (template variables unset).
|
🔥 Smoke Test: Copilot PAT — PASS
Overall: PASS · Auth mode: PAT (COPILOT_GITHUB_TOKEN) /cc
|
🔍 Smoke Test: API Proxy OpenTelemetry Tracing
All 5 scenarios pass. OTEL tracing integration is functioning correctly.
|
✅ Smoke Test: Copilot BYOK (Direct) Mode - PASSTest Results:
Mode: Direct BYOK (COPILOT_PROVIDER_API_KEY) with api-proxy sidecar PR: Split squid config tests by concern (
|
Smoke Test Results
Overall Status: FAIL Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "localhost"See Network Configuration for more information.
|
|
Split squid config tests by concern Merged PRs:
Checks:
Overall: PASS Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "registry.npmjs.org"See Network Configuration for more information.
|
|
Smoke Test Results:
Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw) Overall: PASS
|
Chroot Version Comparison Results
Overall: ❌ Not all tests passed
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
|
Running in direct BYOK mode (AWF_AUTH_TYPE=github-oidc + AWF_AUTH_AZURE_* + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw) authenticated via Microsoft Entra Overall: PASS
|
Smoke Test: Services Connectivity
Overall: FAIL
|
src/squid-config.test.tshad grown into a mixed-responsibility file covering bothgenerateSquidConfigandgeneratePolicyManifest, with the policy manifest cases split across separate top-level suites. This change separates those concerns so domain allowlist tests, policy manifest coverage, and API-proxy manifest rules are independently discoverable and easier to run in isolation.What changed
src/squid-config.test.tsfile with three focused suites:src/squid-config-core.test.tssrc/squid-config-policy.test.tssrc/squid-config-policy-api-proxy.test.tsSuite boundaries
generateSquidConfigcoverage for config structure, real-world domain patterns, and protocol rule ordering intosrc/squid-config-core.test.tsgeneratePolicyManifestcoverage intosrc/squid-config-policy.test.tsgeneratePolicyManifestAPI-proxy rule-ordering cases intosrc/squid-config-policy-api-proxy.test.tsResult