Skip to content

fix(ci): unbreak static analysis on main (restrict-template-expressions) - #14755

Merged
nwparker merged 1 commit into
mainfrom
fix/pr-test-loc-summary-template-lint
Aug 15, 2026
Merged

nwparker merged 1 commit into
mainfrom
fix/pr-test-loc-summary-template-lint

Conversation

@nwparker

@nwparker nwparker commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 +1 −1 0
Prod 0 0 0 0

Summary

main is currently failing the static analysis job, so every open PR inherits the failure.

#14738 (ci: post test vs non-test LoC on pull requests) added config/scripts/pr-test-loc-summary.test.mjs, which interpolates an untyped fetchImpl url into a template literal:

config/scripts/pr-test-loc-summary.test.mjs:88:45: warning typescript(restrict-template-expressions): Invalid type used in template literal expression.

pnpm run audit:code-quality:type-aware treats that as fatal (exit 1), and it runs as the Enforce type-aware code-quality baseline step of the static analysis job in .github/workflows/pr.yml.

Wrapping the value in String(...) clears it.

Verification

  • pnpm run audit:code-quality:type-aware — exit 1 on a clean origin/main checkout, exit 0 with this change
  • config/scripts/pr-test-loc-summary.test.mjs — 8 tests pass
  • oxlint config/scripts/ — 0 warnings, 0 errors

Trade-offs

None. One-line change in a test helper's error path; no runtime or CI behavior change beyond unblocking the gate.

… test

#14738 landed a template literal interpolating an untyped fetch url, which
fails audit:code-quality:type-aware. That audit runs in the static analysis
job, so main is currently red and every open PR inherits the failure.
@coderabbitai

coderabbitai Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 5d37ffb7-1064-4b7a-9875-e4bb68a41985

📥 Commits

Reviewing files that changed from the base of the PR and between 5b7f442 and 7d96efa.

📒 Files selected for processing (1)
  • config/scripts/pr-test-loc-summary.test.mjs

📝 Walkthrough

Walkthrough

The pagination fixture now applies String(url) when it reports an unexpected URL. This safely formats non-string URL values in the error message.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the change and verification, but it omits required template sections such as ELI5, Linked Issue, Visual Proof, checklist, and review details. Add the required sections, link the issue with Fixes #..., mark Visual Proof as N/A with a reason, and complete applicable testing, review, checklist, and AI disclosure fields.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the static analysis failure and the restrict-template-expressions fix described in the changes.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 931cb03 into main Aug 15, 2026
46 checks passed
@nwparker
nwparker deleted the fix/pr-test-loc-summary-template-lint branch August 15, 2026 10:13
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
… test (stablyai#14755)

stablyai#14738 landed a template literal interpolating an untyped fetch url, which
fails audit:code-quality:type-aware. That audit runs in the static analysis
job, so main is currently red and every open PR inherits the failure.
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