Skip to content

test(web): keep source-location acceptance setup within lint limits - #9023

Closed
1052326311 wants to merge 1 commit into
morluto:mainfrom
1052326311:fix/web-source-location-lint
Closed

1052326311 wants to merge 1 commit into
morluto:mainfrom
1052326311:fix/web-source-location-lint

Conversation

@1052326311

@1052326311 1052326311 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Restore the static CI gate for the source-location acceptance test without removing assertions or raising lint limits. No separate issue: this is a reproduced main CI failure, also visible in #8999's static job.

Problem and expected behavior

On main@fe677f6cf9853fb12490dfb8ef23ccae3a551049, oxlint tests/acceptance/webSourceLocationCli.test.ts fails because the first async test is 175 lines against a hard limit of 150. The scenario should remain executable and meet the existing lint policy.

Change and scope

Extract fixture preparation and stdio MCP connection setup into two file-local helpers. Preserve the symlink-ancestor manifest path, environment, client identity, cleanup try/finally, timeouts and every assertion. No production code, lint configuration or test-discovery changes.

Contract and boundary impact

  • Semantic owner and earliest changed stage: setup inside tests/acceptance/webSourceLocationCli.test.ts; the existing CLI/MCP scenario remains the consumer.
  • Contribution scope fit and linked maintainer decision: focused main-CI repair; new-capability scope decision not applicable.
  • CLI and MCP/tool-catalog contract: unchanged.
  • Provider, bridge, target-format, or platform compatibility: unchanged; exercised on macOS arm64.
  • Evidence, artifact, provenance, or reconstruction contract: unchanged.
  • Target selection, authority, upstream behavior, and cleanup details: existing temporary fixtures and local CLI/MCP subprocesses; cleanup retained.
  • Generated metadata, package, or installation impact: none.

Expected effects below describe the existing test execution:

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration. (Temporary fixture files.)
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

Evidence and regression coverage

  • Tests updated: existing four acceptance tests; no assertion removed or added for this structural extraction.
  • Executed base reproduction: focused Oxlint fails at the 175-line async function.
  • Executed candidate: focused Oxlint and Oxfmt pass; all four acceptance tests pass through actual CLI and stdio MCP, including invalid coordinates, nested indexed versions, section-offset rejection and empty sourceRoot resolution.
  • User-visible CLI/MCP output: no change intended; existing parity assertions pass.
  • Remaining proof gaps: no Linux/Windows execution, live browser or full deterministic suite. This repair does not address the separate source/shard failures on fix(desktop): preserve nullable SQLite row identity #8999.

Validation performed

  • npm run test:focused -- tests/acceptance/webSourceLocationCli.test.ts — 4 passed; runtime/artifact build succeeded.
  • oxlint tests/acceptance/webSourceLocationCli.test.ts — passed.
  • oxfmt --check tests/acceptance/webSourceLocationCli.test.ts — passed.
  • npm run check — passed: typecheck, lint, format, Knip, metadata, architecture guards, production reachability and typed lint; existing advisory warnings remain.
  • git diff --check — passed.
  • Hosted static checks — passed (6,430 linted files, 0 errors); package build passed. Complete CI remains failed: the source lane reports processCapture.comparison.test.ts checkpoint-consistency failure (externally owned repair test(process): align symlink fixture with filesystem checkpoints #8998); shard seven reports Frida CLI missing evidence and analysis-view MCP error-code mismatch. Those three signatures also occur in fix(desktop): preserve nullable SQLite row identity #8999's earlier CI, outside the sole source-map test changed here. Some other shards were cancelled; they are not passing results. Linux root-cause attribution of the latter two failures remains unverified.

Final verification used the declared Node 24.22.1 and npm 11.16.0 on macOS arm64, with all tracked top-level directories present. Both the complete npm run check (including typed lint across 6,430 files) and all four acceptance tests passed again with that toolchain. Earlier successful runs used npm 11.19.1. An initial sparse-checkout run failed before test behavior because the Swift process-ownership helper source was absent; adding bridge/ restored that prerequisite. The first full static-check attempt reported lint-staged unused because .husky/ was omitted; the checkout was corrected before the final check. Neither setup failure is counted as a candidate pass.

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Compatibility and meaningful limitations: no production/provider changes; native-platform coverage limited as above.
  • Release/package impact: none; generated outputs excluded.

Author readiness

Human owner: @1052326311

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed. (No contract/metadata changes.)
  • User-visible CLI/MCP changes include representative output. (No output changes.)
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

@greptile-apps

greptile-apps Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This setup-only refactor appears safe to merge.

Summary

Extracts fixture preparation and stdio MCP setup into two file-local helpers.

  • The source-location acceptance test keeps its checks while setup moves into helpers.

Reviews (1) · Last reviewed commit: "test(web): keep source-location acceptan..." · Reviewed by Greptile

@1052326311

Copy link
Copy Markdown
Contributor Author

Closing this draft as superseded by the independent main repair in ec34109 (fix(ci): align tests with current evidence contracts). It extracts assertions in the same acceptance test and resolves the original function-length error, so an additional setup-extraction refactor is unnecessary.

I checked the exact current-main copy of tests/acceptance/webSourceLocationCli.test.ts in #8999's main-integration tree: focused Oxlint reports no error (one existing max-params warning), all four actual CLI/stdio-MCP acceptance tests pass, and the complete npm run check passes. The full focused run passes 148 tests across ten files under Node24.22.1/npm11.16.0 on macOS arm64; no hosted or other-platform pass is inferred.

The original branch and commit f901389 are preserved. This is a superseded, unmerged PR.

@1052326311 1052326311 closed this Nov 5, 2026
@morluto morluto added the area: tests Test suite and verification label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suite and verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants