Test files and the takeover of a mutation run
-
[E] Test files for #146 (owner, 2026-11-13, O12): what Vitest runs (
test.includeofvitest.config.ts,src/**/*.test.ts) and the test helpers it imports (src/test/**,src/server/test-helpers.ts, as in the ruletests-stay-outof.dependency-cruiser.cjs). The E2E tests (e2e/) are not: Stryker does not run them. -
[E] A pull request into
mainwhose newest head only mergedmaintakes over the mutation result of the head before instead of mutating again (owner, 2026-11-13, #167, chosen with #141 to cut the waiting time of the release loop; „mutation only onmain“ and a merge queue were not chosen). The earlier result is the check run „Mutation tests“ of the first parent of the head, read through the API; it must besuccess. The jobs needchecks: read; no cache and no artifact. If the earlier green result cannot be found (a cancelled or deleted run, a first parent that is not a commit of the pull request), the mutation jobs run as before. -
[E] Which merge of
mainblocks the takeover (owner, 2026-11-13, revised on #167 after the first build measured the earlier rule: it would have taken over 0 of 10 merges, every one changedokf/log.mdand nine brought in test files). The full mutation jobs run when the merge (first parent..head) changes a file of the mutation run (a mutated file by themutateglobs ofstryker.config.json, a test file or a file of the mutation configuration, as defined in #146) that the pull request itself changes againstmaintoo, or when its lockfile changes the test tool chain (@stryker-mutator/*,vitest,typescript, the check of #146). Other files frommain(documentation,okf/, other tests, other code) do not block. This replaces „no file the pull request changes“ and lifts „no test file“ of the first decision. The nightly complete run still tests everything (the push run ofmaindid too until #370, which runs no mutation job on a push tomain). Risk: a change frommaincan change the result of the pull request’s code without touching its files (a shared helper, another test, a mutation configuration the pull request leaves alone); the nightly complete run after the merge finds it (until #370 the push run ofmain). -
[E] The takeover happens once in a row (owner, 2026-11-13, #167): a head that took over a result has a skipped „Mutation tests“, so the next merge of
mainruns the jobs again. Checked before the build (2026-11-13, replaces the [U] of #167): theGITHUB_TOKENis an installation access token of the GitHub Actions app, limited to the repository of the workflow, and the permissionchecks: readcovers „List check runs for a Git reference“ (GET /repos/{owner}/{repo}/commits/{ref}/check-runs) for any commit of that repository (GitHub docs: „GITHUB_TOKEN“, the permission table of the workflow syntax, and the permissions required for GitHub Apps; read from the sources of github/docs, the site was not reachable). Settingpermissionson a job sets every permission not named tonone, so the jobs namecontents: readtoo. The check runs of a pull request run sit on its head commit, not on the merge commitrefs/pull/N/merge(checked on #165: „Mutation tests“ of head666a75dfrom the run of eventpull_request). The first run in a pull request proves the token. -
[E] Every push to a pull request mutates all files it changes against
main; there is no takeover of files from an earlier head beyond #167 (owner, 2026-11-26, #370, 191a). The takeover of #167 applies to the complete run only, the partial run in parts runs again on every head.