Skip to content

[chore]: remove comments that restate the code - #3538

Merged
miguelg719 merged 1 commit into
mainfrom
miguel/no-comments-sweep
Nov 25, 2026
Merged

miguelg719 merged 1 commit into
mainfrom
miguel/no-comments-sweep

Conversation

@miguelg719

@miguelg719 miguelg719 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

why

a large share of the comments in this repo restate the name or narrate the line below them, and a number had drifted out of date (references to files and functions that no longer exist, docs attached to the wrong symbol). code should read without them.

what changed

  • removed ~3,650 comments across 657 files in every package, including the locator chain, getByText() and getByRole() files added since the first pass. comment-only: no code tokens change.
  • kept license headers, lint and type suppressions, directives, comments that state an external fact (chrome/cdp, node, vendor api behavior), public api docs that say more than the signature, and open design TODOs.
  • regenerated the python facade _bundle.json. the bundle carries function sources, so its hash changes when comments inside them go.
  • no changeset: nothing user-facing changes.

test plan

  • compared the token stream of every changed ts/js file against main: identical apart from oxfmt re-wrapping four of them. python asts are identical apart from removed docstrings.
  • pnpm check (fmt, lint, typecheck) and turbo run test:unit pass; generate.py --check, ruff, ty and the middleware and deepagents pytest suites pass; the browser-runtime suites for the touched locator files pass.
  • remaining browser and integration suites left to ci.

@miguelg719
miguelg719 requested a review from a team as a code owner November 23, 2026 22:51
@changeset-bot

changeset-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 03ecebd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 651 files

Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread packages/evals/framework/context.ts Resolved
@miguelg719
miguelg719 force-pushed the miguel/no-comments-sweep branch from dbff5a6 to 03ecebd Compare November 25, 2026 15:48
@miguelg719
miguelg719 merged commit 780dce0 into main Nov 25, 2026
72 checks passed
@miguelg719
miguelg719 deleted the miguel/no-comments-sweep branch November 25, 2026 18:34
cursor Bot pushed a commit that referenced this pull request Nov 26, 2026
Merge origin/main into cursor/fix-remote-session-status-propagation-38a5

Conflicts resolved:
- packages/cli/src/lib/driver/remote.ts: Keep PR's extractHttpStatus/extractUpstreamMessage helpers for cause chain extraction and 402/429 handling, incorporate main's removal of redundant JSDoc comments
- packages/cli/src/lib/driver/remote.disabled.ts: Keep PR's extractHttpStatus function for consistent httpStatus extraction in disabled stub

Changes from main:
- locator.filter() feature (#3567)
- page-level error classification (#3515)
- bare hostname URL fix (#3512)
- comment removal cleanup (#3538)
- other SDK and CLI improvements

Co-authored-by: Shrey Pandya <[email protected]>
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.

2 participants