Skip to content

fix(checks): restore the lint and format baseline on the default branch - #2993

Closed
XiaoBinGan wants to merge 1 commit into
morluto:mainfrom
XiaoBinGan:fix/static-checks-lint-budget
Closed

XiaoBinGan wants to merge 1 commit into
morluto:mainfrom
XiaoBinGan:fix/static-checks-lint-budget

Conversation

@XiaoBinGan

Copy link
Copy Markdown
Contributor

Summary

Restore the default branch's Static checks: the two max-lines-per-function lint errors and the two unformatted files that the default branch currently reports.

Problem and expected behavior

The default branch is red independently of any pull request, so every open PR inherits a failing Static checks task. Measured on origin/main @ 20b802f1:

npm run lint          → Lint: 2962 files, 2 errors, 1122 warnings.
                        tests/boundary/filesystem/artifactComparison.test.ts:345:46
                        src/dotnet/ManagedCilDecoding.test.ts:248:48
npm run format:check  → Format issues found in above 2 files:
                        tests/boundary/mcp/enhancedTools.04-uses-complete-inventories-inline.test.ts
                        tests/evaluation/package/packagePlatformDiagnostics.test.ts

Expected: the default branch reports no lint errors and no format drift, so a PR's Static checks reflects only that PR's own content.

Change and scope

  • The two reported functions are describe(...) callbacks holding one exhaustive scenario (artifact comparison completeness) and one exhaustive case table (managed operand extent diagnostics). Rather than splitting the scenarios — which would change what each test reads as one flow — each now carries the repository's existing targeted form, // oxlint-disable-next-line max-lines-per-function -- <reason>, as already used in tests/boundary/mcp/enhancedTools.01-lists-the-complete-target-open.test.ts and src/server/registerEnhancedTools.ts.
  • The two unformatted files are reformatted by the pinned formatter with no source change.
  • No production source, contract, or behavior is touched.

Contract and boundary impact

None. The four files are tests, plus one test-adjacent reason comment. No CLI/MCP contract, schema, generated artifact, or provider adapter is affected.

Evidence and regression coverage

Measured on this head, with the same commands used to state the problem:

npm run format:check  → All matched files use the correct format.
npm run lint          → Lint: 2962 files, 0 errors, 1122 warnings.
npm run check:fast    → Tasks: 2 successful, 2 total
npm run test:focused -- tests/boundary/filesystem/artifactComparison.test.ts \
  src/dotnet/ManagedCilDecoding.test.ts \
  tests/boundary/mcp/enhancedTools.04-uses-complete-inventories-inline.test.ts \
  tests/evaluation/package/packagePlatformDiagnostics.test.ts
                      → Test Files 4 passed (4) · Tests 105 passed (105)

The focused tests are the four affected files; the same commands fail on the parent revision, which is the with/without evidence for this change.

Unavailable coverage

The full check:pr gate and the CI shards were not run locally; the four affected test files were run directly. No real-provider behavior is involved.

The default branch currently fails two merged pull requests' static checks, so
every open pull request inherits a red `Static checks` task regardless of its
own content. `npm run lint` reports two `max-lines-per-function` errors and
`npm run format:check` reports two unformatted files, all four introduced by
test blocks merged in the same sweep.

The long `describe` blocks keep the repository's established targeted form: a
disable comment carrying the reason the block must stay readable as one unit.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T19:15:33.049954Z 09f0aa5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Low impact] The PR appears safe to merge; the changes are limited to targeted lint exceptions and formatting.

Summary

Adds two targeted lint exceptions and reformats two test files. No test assertions or production behavior change.

  • The default branch’s test files clear their lint and format checks.

Reviews (1) · Last reviewed commit: "fix(checks): restore the lint and format..." · Reviewed by Greptile

@alfredo1491

Copy link
Copy Markdown
Contributor

Independent local check of 09f0aa5 on Windows 11 x64, Node 22.23.1:

  • npm run lint → Lint: 2962 files, 0 errors, 1122 warnings, module boundaries pass (on main @ 20b802f the same command reports the two max-lines-per-function errors).
  • npm run format:check → only flags untracked local NuGet restore output under tests/fixtures/nativeaot/obj/; no tracked file is reported.

This also unblocks the Husky pre-push hook (check:fast), which currently rejects every push based on main.

@morluto morluto added area: build Build, CI, packaging, and publishing bug Something isn't working labels Oct 13, 2026
@kaoru0822-kitauji

Copy link
Copy Markdown
Collaborator

CI-fix track: main's Static checks pass again (CI run 38484743093 on 20e4f83, success), so the lint/format errors this PR targets look fixed on main already. The remaining failures here (Test shards 4/6 and 5/6, Portable tests) aren't in this PR's four files. If anything is still needed, rebasing onto current main should show it.

@XiaoBinGan

Copy link
Copy Markdown
Contributor Author

Withdrawing this as superseded: the default branch already carries an equivalent repair.

Verified rather than assumed — git diff --stat origin/main...fix/static-checks-lint-budget on the current head (b3c5672c) is down to 4 files / 7 insertions / 4 deletions, i.e. cosmetic differences only, and @kaoru0822-kitauji reports the Static checks run on 20e4f83 succeeding, so the two max-lines-per-function errors and the two unformatted files this PR targeted are already resolved on main. The remaining red checks here (Test shards 4/6 and 5/6, Portable tests) are outside this PR's four files.

No code of mine was lost: main reached the same clean state, and keeping a redundant PR open would only add review noise. Thanks to @kaoru0822-kitauji for the CI evidence that made the call unambiguous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build, CI, packaging, and publishing bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants