Skip to content

Commit ddf44ef

Browse files
committed
fix: ignore test-only network CI guard lines
1 parent 968aa51 commit ddf44ef

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/codeql-critical-quality.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ jobs:
446446
gh api --paginate "repos/${REPOSITORY}/pulls/${PR_NUMBER}/files" --jq '
447447
.[]
448448
| select(.filename | test("^(src/cli/gateway-cli/run-loop\\.ts|src/infra/(gateway-lock|jsonl-socket|push-apns-http2|ssh-tunnel)\\.ts|src/infra/net/|src/proxy-capture/|extensions/codex-supervisor/src/json-rpc-client\\.ts|extensions/irc/src/|extensions/qa-lab/src/|packages/net-policy/src/)"))
449+
| select(.filename | test("(^|/)[^/]+\\.(?:e2e\\.)?test\\.tsx?$") | not)
449450
| .filename as $file
450451
| (.patch // "")
451452
| split("\n")[]

‎test/scripts/ci-workflow-guards.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,9 @@ describe("ci workflow guards", () => {
968968
expect(networkConfig).toContain("\n - src/infra/net\n");
969969
expect(networkConfig).toContain("\n - packages/net-policy/src\n");
970970
expect(workflow).toContain("Fast PR network boundary diff scan");
971+
expect(workflow).toContain(
972+
'| select(.filename | test("(^|/)[^/]+\\\\.(?:e2e\\\\.)?test\\\\.tsx?$") | not)',
973+
);
971974
expect(workflow).toContain("Network runtime boundary-sensitive added lines");
972975
expect(workflow).toContain("if: ${{ github.event_name != 'pull_request' }}");
973976
});

0 commit comments

Comments
 (0)