Skip to content

fix(test): Add feature_id to autofix response fixtures - #134

Merged
BYK merged 1 commit into
mainfrom
fix/feature-id-build
Nov 6, 2026
Merged

BYK merged 1 commit into
mainfrom
fix/feature-id-build

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

main has failed Build and Build (Node LTS) since a47f626.

What broke: the a47f626 regen of openapi-derefed.json added feature_id to the autofix POST response and made it required. That matches Sentry: GroupAutofixEndpoint (src/sentry/seer/endpoints/group_ai_autofix.py) always returns {run_id, sentry_run_id, feature_id}, and the API docs example includes "feature_id": "autofix". The schema is correct. The test fixtures still built the old two-field response, which caused:

  • pnpm typecheck: test/typecheck.ts(33,7): error TS2741: Property 'feature_id' is missing
  • pnpm test: the two "runtime validator entry points" smoke tests (Valibot and Zod) rejected the fixture.

Fix: add feature_id: "autofix" to both fixtures. No test or check is skipped or loosened; the negative run_id: "42" cases are unchanged.

Verification: I ran the Build workflow steps locally on Node 22.23 from a clean checkout of main plus this change. Node LTS wasn't available locally, so CI covers that job.

  • pnpm install --frozen-lockfile: pass
  • pnpm build: pass
  • pnpm typecheck: pass. Without the change it reports 1 TS error.
  • pnpm test: 51 files and 635 tests pass. Without the change, smoke.test.ts has 2 failures.
  • npm pack --dry-run: pass

Unblocks CI on #133.

via @BYK.

--

View Session [Sentry]

The a47f626 schema regen picked up `feature_id` as a required field on
the autofix POST response, matching what the Sentry endpoint now
returns. The typecheck and smoke test fixtures still built the old
two-field response, so `pnpm typecheck` failed with TS2741 and both
validator smoke tests rejected the fixture.

Co-Authored-By: Burak Yigit Kaya <[email protected]>
@BYK
BYK enabled auto-merge (squash) November 6, 2026 23:31
@BYK
BYK merged commit 5a6c8e4 into main Nov 6, 2026
11 checks passed
@BYK
BYK deleted the fix/feature-id-build branch November 6, 2026 23:31
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