Skip to content

test: focus validation on behavior and release assumptions - #6611

Merged
Astro-Han merged 3 commits into
rust-previewfrom
chore/test-assumptions
Nov 3, 2026
Merged

Astro-Han merged 3 commits into
rust-previewfrom
chore/test-assumptions

Conversation

@Astro-Han

@Astro-Han Astro-Han commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

I’m narrowing validation to product and logic assumptions, plus build and release integrity. Checks that freeze private implementation choices make refactoring harder without establishing those assumptions.

  • Remove the Clippy and Biome lint gates and the unused Clippy toolchain component. Keep formatting, compilation, generated contracts, packaging, release and license checks.
  • Check SDK sources once through the strict acceptance consumers. Their TypeScript input set includes every SDK source previously checked separately.
  • Remove private cache/pointer-identity checks, codec reference-oracle tests, cosmetic layout and copy assertions, duplicate Bot transcript cases, and tests of formatting hooks, effort labels and benchmark fixtures. Delete the unused visual fixture and obsolete test commands too.
  • Keep recovery, cancellation, authority, original-content preservation and accessible interaction assertions. The HTTP retry test now checks preserved JSON values without requiring a particular object-field order.

Runtime behavior is unchanged. This deliberately gives up direct regression checks for the removed helper algorithms and cosmetics. Vendored upstream test sources are unchanged.

Verification

  • node scripts/ci.mjs check tooling-tests: 169 passed, including the remaining 82 workbench tests and build/release tooling tests.
  • npm --prefix website run test:dist: build passed; 8 artifact tests passed.
  • Focused nextest runs passed for the affected Rust libraries, queued follow-up execution, provider configuration, resource containment, HTTP retry, database cleanup, cursor ownership, browser dialogs and real terminal components. The CLI integration target also compiled with desktop-tests enabled.
  • SDK acceptance typecheck, cargo fmt --all -- --check, changed-file Biome formatting and git diff --check passed.

I did not run the full workspace suite or the desktop renderer suite locally. After those checks I rebased onto 5349df7d2b; the only conflict was an added field in the deleted, unused activity-layout fixture. The new upstream Tab and screenshot behavior coverage is retained. Validation of the updated baseline and cross-platform checks remain with CI.

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: Codex inspected checks and tests, made the removals, ran validation and drafted this PR. All commits include Generated-by: Codex.

Checklist

  • Tests cover the change and fail without it — this change removes checks; it does not introduce runtime behavior.
  • Format, typecheck and the affected suites pass locally — the focused checks above passed; full suites remain with CI.

Does this PR entail a change in behavior?

  • Yes — CI no longer requires generic lint or duplicate SDK typechecking; runtime behavior is unchanged.
  • No

@Astro-Han
Astro-Han force-pushed the chore/test-assumptions branch from f132b59 to b536e4f Compare November 3, 2026 14:01
@Astro-Han
Astro-Han marked this pull request as ready for review November 3, 2026 14:53
@Astro-Han
Astro-Han merged commit 88eb006 into rust-preview Nov 3, 2026
44 checks passed
@Astro-Han
Astro-Han deleted the chore/test-assumptions branch November 3, 2026 14:53

@Astro-Han Astro-Han left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review notice: This comment was posted by an automated review agent. It is not an independent human review and does not replace one.

I reviewed all 47 changed files at b536e4f64de21c35eeae13cb627ffb9a57c62081, including the removed test bodies and the remaining validation paths. This PR is already merged as 88eb006d. I found no confirmed P0–P2 issue introduced by the change, with the following coverage tradeoffs.

  • CI policy: scripts/ci/run.mjs:130 retains formatting, tooling tests and license checks; the contracts and packaging paths remain. Clippy is removed from the suite/worker definitions. biome.jsonc:75 also disables three previously enabled correctness rules: unsafe optional chaining, duplicate object keys and non-null assertions on optional chains. This is a deliberate reduction in automatic defect detection, not merely removal of style checks. The contributor instructions and local just check recipe are updated consistently.
  • SDK checking: packages/plugin-sdk/package.json:24 removes the standalone source check. Using the pinned TypeScript 7.0.2, I checked the actual compiler input lists: both the acceptance project and the retained product bundle project include all 10 SDK source files previously included by the SDK source project. Both projects passed locally. A temporary ordinary type error in an SDK source file was rejected by acceptance checking. Acceptance relaxes useUnknownInCatchVariables, but the retained bundle project inherits the strict setting and rejected the corresponding temporary catch-variable error. I therefore did not treat that standalone configuration difference as lost current CI coverage.
  • Rust and UI tests: pointer-sharing assertions are removed while nearby value, authority, cleanup and resource-containment assertions remain. The HTTP integration case still requires byte-identical redirect replay; usage negotiation now compares parsed JSON after removing stream_options. Other removals genuinely reduce direct coverage: numeric/codec boundary oracles, schema-cache tests, duration formatting, patch presentation and desktop pixel alignment. The activity-icon alignment test and its fixture are both deleted. These are not all equivalent or duplicate assertions, and this review does not establish equivalent future regression detection. No application runtime implementation, database migration or wire format changes in this diff.

Local checks used Node 24.18.1: 25 retained workbench tests and 11 CI planning/aggregation tests passed, in addition to the SDK and bundle typechecks above. Temporary faults were confined to source copies and restored afterwards. I did not run Rust, native desktop rendering, the complete tooling suite or the website build locally.

The exact-commit CI run succeeded. Its tooling log reports 168 passed and 1 skipped, rather than 169 executed passes; the skip is the macOS Host bundle-signature test on Linux. I also checked the hosted contracts and packaging jobs. The author's focused Rust and website results remain author-provided evidence. These results do not diagnose or clear separate failures on later target-branch commits.


Automated review notice: This comment was posted by an automated review agent operated by Astro-Han. It is not an independent human review and does not replace one.

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