Skip to content

test(cli): run sentry wizard e2e tests in toolkit - #2547

Draft
sentry-junior[bot] wants to merge 4 commits into
feat/cli-wizard-shared-ast-helpersfrom
feat/cli-wizard-e2e
Draft

sentry-junior[bot] wants to merge 4 commits into
feat/cli-wizard-shared-ast-helpersfrom
feat/cli-wizard-e2e

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Ports sentry-wizard's end-to-end suite for help output and Next.js to sentry wizard, because sentry wizard replaces @sentry/wizard. Part of #2511.

Stacked on #2520.

The upstream fixture apps are vendored. A local mock API replaces Sentry, so no secrets are needed. The new wizard-e2e.yml workflow is path-filtered and not required. A macOS job waits for the iOS/React Native port.

via @BYK.

--

View Session [Sentry]

sentry-junior Bot and others added 3 commits November 26, 2026 19:38
Move the e2e harness, the help-message test, and the Next.js 14/15/16
tests and their test apps from getsentry/sentry-wizard's e2e-tests/ into
packages/cli/test/wizard-e2e/, and run them against `sentry wizard`.

The harness spawns the npm bundle (or SENTRY_CLI_BINARY) and answers
clack prompts over stdin with a small builder shaped like the clifty API
the upstream tests used, so the remaining platform tests port with few
changes. Runs that need a project log in to a local mock Sentry API
(the existing test/mocks routes plus org auth token creation) with
--url, --org and --project, so no Sentry account or secret is needed.
The help test snapshots the new help and checks that the removed
sign-up flags fail.

`pnpm run test:wizard-e2e` runs them. They install packages and build
real apps, so they stay out of test:unit and test:e2e, and
wizard-e2e.yml runs one job per test file on pull requests that touch
the wizard or these tests, and on manual dispatch.

Refs #2511
…eat/cli-wizard-e2e

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
`sentry wizard` now takes `[<org>/<project>] [<integration>]` and only
`-f/--force`, reads the instance from `SENTRY_URL`, and turns on
Spotlight with `SENTRY_SPOTLIGHT`. The tests used the old flags.

- Runs that need a project use `sentry wizard test-org/test-project
  nextjs`, with the mock API in `SENTRY_URL` and its token in
  `SENTRY_AUTH_TOKEN`.
- The Spotlight run sets `SENTRY_SPOTLIGHT=1` through a new `env` option
  of `withEnv()`.
- The help test snapshots the new help and checks that the sign-up
  flags and the other dropped `@sentry/wizard` flags fail. `--org` and
  `--project` still work as the CLI-wide hidden flags.
- The tsconfig policy test lists the test apps as unchecked: they build
  with their own dependencies.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Nov 27, 2026 12:07am UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Nov 27, 2026 12:07am UTC

Request Review

@socket-security

socket-security Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Warning

Socket is a tool Sentry Security team deployed to defend against supply chain attack. Please provide any feedback you have in #discuss-security slack channel ❤️

Priority Alert  (click "▶" to expand/collapse) Action
Critical priority
Critical CVE: Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used

CVE: GHSA-2xp9-vwfh-vxw4 Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used (CRITICAL)

Affected versions: >= 10.0.0 < 15.5.24; >= 16.0.0 < 16.3.3

Patched version: 15.5.24

From: packages/cli/test/wizard-e2e/test-applications/nextjs-14-test-app/package.json → npm/next@14.2.35

ℹ Read more on: This package | This alert | What is a critical CVE?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/next@14.2.35. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Critical priority
Critical CVE: Next.js: Unauthenticated Remote Code Execution on windows-hosted servers

CVE: GHSA-p293-qw3h-jr36 Next.js: Unauthenticated Remote Code Execution on windows-hosted servers (CRITICAL)

Affected versions: >= 13.4.0 < 15.5.24; >= 16.0.0 < 16.3.3

Patched version: 15.5.24

From: packages/cli/test/wizard-e2e/test-applications/nextjs-14-test-app/package.json → npm/next@14.2.35

ℹ Read more on: This package | This alert | What is a critical CVE?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/next@14.2.35. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn
Critical priority
Critical CVE: Next.js: Unauthenticated Remote Code Execution in Image Optimization API when SVG files are used

CVE: GHSA-2464-fhr4-w9xw Next.js: Unauthenticated Remote Code Execution in Image Optimization API when SVG files are used (CRITICAL)

Affected versions: >= 10.0.0 < 15.5.28; >= 16.0.0 < 16.4.1

Patched version: 15.5.28

From: packages/cli/test/wizard-e2e/test-applications/nextjs-14-test-app/package.json → npm/next@14.2.35

ℹ Read more on: This package | This alert | What is a critical CVE?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/next@14.2.35. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn

View full report

…-wizard-e2e

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cli — 3259a4b7 Deployed Nov 27, 2026 by vercel[bot]
Preview – sentry-local — 3259a4b7 Deployed Nov 27, 2026 by vercel[bot]
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