Skip to content

fix: ignore test-only network CI guard lines - #99233

Merged
joshavant merged 1 commit into
mainfrom
fix/network-critical-quality-test-lines
Jul 2, 2026
Merged

joshavant merged 1 commit into
mainfrom
fix/network-critical-quality-test-lines

Conversation

@joshavant

Copy link
Copy Markdown
Collaborator

Related: #98951

What Problem This Solves

Resolves a problem where the network runtime critical-quality PR scan fails on test-only NO_PROXY assertions under src/infra/net/**, even when the production network runtime path is unchanged.

Why This Change Was Made

The fast PR scan should continue to require review for sensitive production network-runtime additions, but test files should be allowed to name proxy environment variables when they are proving the intended boundary behavior. This keeps the guard focused on runtime changes without making SSRF/proxy tests obscure their assertions.

AI-assisted: yes.

User Impact

No direct user-visible behavior changes. Maintainers can land network-boundary regression tests without tripping the production-sensitive-line guard solely because the test names or stubs NO_PROXY.

Evidence

  • pnpm test test/scripts/ci-workflow-guards.test.ts
  • pnpm exec oxfmt --check test/scripts/ci-workflow-guards.test.ts
  • pnpm exec actionlint .github/workflows/codeql-critical-quality.yml
  • git diff --check

@joshavant
joshavant requested a review from a team as a code owner July 2, 2026 21:00
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Jul 2, 2026
@clawsweeper

clawsweeper Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 2, 2026, 5:07 PM ET / 21:07 UTC.

Summary
The PR excludes *.test.ts, *.test.tsx, and *.e2e.test.ts(x) files from the network critical-quality added-line scan and adds a guard assertion for that workflow text.

PR surface: Tests +3, Config +1. Total +4 across 2 files.

Reproducibility: yes. Current main selects src/infra/net/ files and greps added lines for NO_PROXY, and the related open PR's CI log shows test-only NO_PROXY additions under that path tripping the guard.

Review metrics: 1 noteworthy metric.

  • Workflow guard behavior: 1 test-file exclusion added. The PR changes when CI escalates boundary-sensitive network additions, so maintainers should notice the narrowed automation surface before merge.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🌊 off-meta tidepool
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • none.

Risk before merge

  • [P1] The network-runtime critical-quality job skipped on this PR because workflow changes do not select that shard on pull_request, so the exact new jq filter is covered by source review, actionlint, and check-guards rather than a live run of that shard.
  • [P1] The guard will no longer escalate proxy/socket strings added inside test files under sensitive network paths; maintainers should accept that test files stay out of the production-sensitive fast scan.

Maintainer options:

  1. Accept the test-file exclusion (recommended)
    A secops or workflow owner can accept that test files should not trigger the production-sensitive fast network scan because the existing shard selector already excludes them.
  2. Ask for a targeted filter proof
    Maintainers can request a small jq or workflow-fixture proof showing a test-file NO_PROXY addition is ignored while a production-file addition still fails.
  3. Wait for the motivating proxy PR
    Maintainers can pause this until the related managed-proxy PR is otherwise ready if they want to review the guard change with the runtime fix it unblocks.

Next step before merge

  • [P1] The protected maintainer label and critical-quality workflow ownership make this an owner-review item rather than an automated repair candidate.

Security
Cleared: No concrete security or supply-chain defect was found; the diff changes workflow jq filtering only and adds no action refs, permissions, secrets, dependency sources, or runtime code execution.

Review details

Best possible solution:

Land the guard alignment after secops or maintainer review accepts excluding test files from the fast network-runtime added-line scan while keeping production paths guarded.

Do we have a high-confidence way to reproduce the issue?

Yes. Current main selects src/infra/net/ files and greps added lines for NO_PROXY, and the related open PR's CI log shows test-only NO_PROXY additions under that path tripping the guard.

Is this the best way to solve the issue?

Yes. Filtering test filenames before scanning added lines is the narrowest maintainable fix because the existing shard selector already excludes test files while production sensitive-path additions still reach the grep.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 968aa51b8000.

Label changes

Label changes:

  • add P2: This is a bounded CI guard bugfix that can unblock network-boundary regression tests without changing runtime behavior.
  • add merge-risk: 🚨 automation: The diff changes critical-quality workflow filtering, so a bad regex or scope choice could suppress or misroute automation evidence after merge.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The PR is maintainer-labeled, so the external contributor real-behavior proof gate is not applied; CI actionlint and check-guards are supplemental automation validation.

Label justifications:

  • P2: This is a bounded CI guard bugfix that can unblock network-boundary regression tests without changing runtime behavior.
  • merge-risk: 🚨 automation: The diff changes critical-quality workflow filtering, so a bad regex or scope choice could suppress or misroute automation evidence after merge.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The PR is maintainer-labeled, so the external contributor real-behavior proof gate is not applied; CI actionlint and check-guards are supplemental automation validation.
Evidence reviewed

PR surface:

Tests +3, Config +1. Total +4 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 3 0 +3
Docs 0 0 0 0
Config 1 1 0 +1
Generated 0 0 0 0
Other 0 0 0 0
Total 2 4 0 +4

What I checked:

Likely related people:

  • steipete: Introduced the existing test-only exclusion for the network CodeQL shard selection in commit 37c6e2d, which this PR mirrors in the fast added-line scan. (role: recent area contributor; confidence: high; commits: 37c6e2dfa0bf; files: .github/workflows/codeql-critical-quality.yml)
  • vincentkoc: Recently moved the CodeQL critical-quality workflow to hosted runners and added adjacent guard coverage in commit 8946028; GitHub path history shows repeated recent work on this workflow and test file. (role: recent CI workflow contributor; confidence: high; commits: 89460288c4eb; files: .github/workflows/codeql-critical-quality.yml, test/scripts/ci-workflow-guards.test.ts, docs/ci.md)
  • jesse-merhi: Merged pull request lint: classify raw socket callsites #77126 introduced the network runtime CodeQL quality shard that the fast PR scan protects. (role: introduced network quality shard; confidence: medium; commits: 95a1c915312a; files: .github/workflows/codeql-critical-quality.yml, .github/codeql/codeql-network-runtime-boundary-critical-quality.yml)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jul 2, 2026
@joshavant
joshavant merged commit 1a508d7 into main Jul 2, 2026
141 of 148 checks passed
@joshavant
joshavant deleted the fix/network-critical-quality-test-lines branch July 2, 2026 21:18
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant