Skip to content

Fix mutation seed runner loading#213

Merged
joesobo merged 1 commit into
mainfrom
codex/fix-mutation-seed-runner
May 22, 2026
Merged

Fix mutation seed runner loading#213
joesobo merged 1 commit into
mainfrom
codex/fix-mutation-seed-runner

Conversation

@joesobo
Copy link
Copy Markdown
Owner

@joesobo joesobo commented May 22, 2026

Summary

  • wrap the mutation seed runner in an async main function so tsx does not need top-level await support
  • add a regression test that proves the script loads through tsx before validating required flags

Root cause

The merged mutation seed workflow calls pnpm exec tsx scripts/mutation/runSeedJob.ts. That script used top-level await, and tsx/esbuild transformed it as CommonJS in CI, failing before quality-tools or Stryker started. This is a CodeGraphy CI wrapper issue, not a quality-tools package integration issue.

Validation

  • pnpm --filter @codegraphy-dev/extension exec vitest run --config vitest.config.ts tests/extension/mutation/seedJobs.test.ts
  • pnpm exec tsx scripts/mutation/runSeedJob.ts
  • pnpm exec tsx scripts/mutation/runSeedJob.ts --package plugin-python --shard missing-shard
  • pnpm run typecheck
  • pnpm run lint

I did not run a real mutation shard locally because the failure happened before Stryker starts and full mutation is intentionally expensive.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 22, 2026

⚠️ No Changeset found

Latest commit: 729bbf8

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

@joesobo joesobo marked this pull request as ready for review May 22, 2026 21:30
@joesobo joesobo merged commit 37c7265 into main May 22, 2026
9 checks passed
@joesobo joesobo deleted the codex/fix-mutation-seed-runner branch May 22, 2026 21:30
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