Skip to content

test(ci): static body in codex e2e mock route bridge (CodeQL #737) — main companion - #7559

Merged
diegosouzapw merged 1 commit into
mainfrom
fix/codeql-737-static-test-body-main
Jul 17, 2026
Merged

diegosouzapw merged 1 commit into
mainfrom
fix/codeql-737-static-test-body-main

Conversation

@diegosouzapw

Copy link
Copy Markdown
Collaborator

What

Companion to the release/v3.8.49 PR (#7558) — the same file exists on main, carrying the same open CodeQL alert. Per merge-gates §8, a gate/CI-touching fix lands on main in the same session so main doesn't bleed the whole cycle.

Why

CodeQL js/stack-trace-exposure flags any error-derived value returned from the mock route bridge's 500 path, not only error.stack. Alert #737 (same file/line as the already-fixed #736) stays open and is the only open CodeQL alert repo-wide → check:codeql-ratchet keeps Quality Ratchet red on every open PR.

Fix

} catch {
  outgoing.writeHead(500, { "content-type": "text/plain" });
  outgoing.end("internal test route error");
}

Static body, no error content. The test only asserts status === 200, so the 500 body is never inspected — no assertion weakened.

Validation (Hard Rule #18)

node --import tsx/esm --test tests/integration/codex-chat-reasoning-http-e2e.test.ts → 1 pass, 0 fail (verified on the release worktree; identical diff).

CodeQL js/stack-trace-exposure flags ANY error-derived value returned in
the mock route bridge's 500 path, not just error.stack — swapping .stack
for error.message (in #7354, alert #736) left sibling alert #737 open on
the same line. Replace the body with a static string; the test only
asserts status===200, so the 500 body is never inspected. Clears the last
open CodeQL alert repo-wide, unblocking the Quality Ratchet on every PR.

Companion to the release/v3.8.49 PR (merge-gates §8 — gate/CI-touching fix
lands on main in the same session).
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions

Copy link
Copy Markdown
Contributor

CI Coverage Report

  • Coverage job: success
  • PR test policy: success

Coverage artifact was not available for this run.

@sonarqubecloud

Copy link
Copy Markdown

@diegosouzapw
diegosouzapw merged commit 8e383f5 into main Jul 17, 2026
5 of 6 checks passed
@diegosouzapw
diegosouzapw deleted the fix/codeql-737-static-test-body-main branch July 19, 2026 21:01
Poid-ZA pushed a commit to Poid-ZA/OmniRoute that referenced this pull request Aug 5, 2026
…inference#737) (cheaper-inference#7559)

CodeQL js/stack-trace-exposure flags ANY error-derived value returned in
the mock route bridge's 500 path, not just error.stack — swapping .stack
for error.message (in cheaper-inference#7354, alert cheaper-inference#736) left sibling alert cheaper-inference#737 open on
the same line. Replace the body with a static string; the test only
asserts status===200, so the 500 body is never inspected. Clears the last
open CodeQL alert repo-wide, unblocking the Quality Ratchet on every PR.

Companion to the release/v3.8.49 PR (merge-gates §8 — gate/CI-touching fix
lands on main in the same session).
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…inference#737) (cheaper-inference#7559)

CodeQL js/stack-trace-exposure flags ANY error-derived value returned in
the mock route bridge's 500 path, not just error.stack — swapping .stack
for error.message (in cheaper-inference#7354, alert cheaper-inference#736) left sibling alert cheaper-inference#737 open on
the same line. Replace the body with a static string; the test only
asserts status===200, so the 500 body is never inspected. Clears the last
open CodeQL alert repo-wide, unblocking the Quality Ratchet on every PR.

Companion to the release/v3.8.49 PR (merge-gates §8 — gate/CI-touching fix
lands on main in the same session).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant