@overkill-dev/stryker-runner 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -27,17 +27,21 @@
27
27
  "license": "MIT",
28
28
  "name": "@overkill-dev/stryker-runner",
29
29
  "peerDependencies": {
30
- "@overkill-dev/run": "0.0.68"
30
+ "@overkill-dev/run": "0.0.70"
31
31
  },
32
32
  "repository": {
33
33
  "type": "git",
34
34
  "url": "git+https://github.com/enormora/overkill.git"
35
35
  },
36
36
  "sideEffects": [
37
+ "./packages/stryker-runner/mutation-policy-process.entry-point.js",
38
+ "./packages/stryker-runner/mutation-policy-protocol.js",
39
+ "./packages/stryker-runner/mutation-policy-resolver.js",
40
+ "./packages/stryker-runner/mutation-sandbox.js",
37
41
  "./packages/stryker-runner/overkill-test-runner.js",
38
42
  "./packages/stryker-runner/runner-options.js",
39
43
  "./packages/stryker-runner/stryker-runner.entry-point.js"
40
44
  ],
41
45
  "type": "module",
42
- "version": "0.0.3"
46
+ "version": "0.0.5"
43
47
  }
@@ -0,0 +1,19 @@
1
+ import { INSTRUMENTER_CONSTANTS } from '@stryker-mutator/api/core';
2
+ export const mutationPolicyProcessUrl = import.meta.url;
3
+ export const mutationPolicyProcessArgument = '--overkill-mutation-policy-resolver';
4
+ const resolverExcludedVariables = new Set([
5
+ 'NODE_OPTIONS',
6
+ 'NODE_CONFIG',
7
+ 'NODE_CHANNEL_FD',
8
+ 'NODE_UNIQUE_ID',
9
+ INSTRUMENTER_CONSTANTS.ACTIVE_MUTANT_ENV_VARIABLE
10
+ ]);
11
+ export function readMutationPolicyEnvironment() {
12
+ return Object.fromEntries(Object.entries(process.env).filter(function resolverVariable([name]) {
13
+ return !resolverExcludedVariables.has(name);
14
+ }));
15
+ }
16
+ if (process.argv.includes(mutationPolicyProcessArgument)) {
17
+ await import("./mutation-policy-resolver.js");
18
+ }
19
+ //# sourceMappingURL=mutation-policy-process.entry-point.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutation-policy-process.entry-point.js","sourceRoot":"","sources":["../../../../../source/packages/stryker-runner/mutation-policy-process.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACxD,MAAM,CAAC,MAAM,6BAA6B,GAAG,qCAAqC,CAAC;AAEnF,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAC;IACtC,cAAc;IACd,aAAa;IACb,iBAAiB;IACjB,gBAAgB;IAChB,sBAAsB,CAAC,0BAA0B;CACpD,CAAC,CAAC;AAEH,MAAM,UAAU,6BAA6B;IACzC,OAAO,MAAM,CAAC,WAAW,CACrB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,SAAS,gBAAgB,CAAC,CAAE,IAAI,CAAE;QACjE,OAAO,CAAC,yBAAyB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC,CAAC,CACL,CAAC;AACN,CAAC;AAED,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,6BAA6B,CAAC,EAAE,CAAC;IACvD,MAAM,MAAM,CAAC,+BAA+B,CAAC,CAAC;AAClD,CAAC"}
@@ -0,0 +1,64 @@
1
+ import { fork } from 'node:child_process';
2
+ import { fileURLToPath } from 'node:url';
3
+ import { ConfigError } from "@overkill-dev/run";
4
+ import { RunResolutionError } from "@overkill-dev/run";
5
+ import { mutationPolicyProcessArgument, mutationPolicyProcessUrl, readMutationPolicyEnvironment } from "./mutation-policy-process.entry-point.js";
6
+ import { mutationPolicyResponseSchema } from "./mutation-policy-protocol.js";
7
+ function readPolicyResponse(message) {
8
+ const response = mutationPolicyResponseSchema.parse(message);
9
+ if (response.kind === 'policy') {
10
+ return response.policy;
11
+ }
12
+ if (response.kind === 'config-error') {
13
+ throw new ConfigError(response.message, {
14
+ cause: response.cause === null ? undefined : new Error(response.cause)
15
+ });
16
+ }
17
+ if (response.kind === 'resolution-error') {
18
+ throw new RunResolutionError(response.message, undefined, response.code);
19
+ }
20
+ throw new Error(response.message);
21
+ }
22
+ export async function initializeMutationPolicy(input) {
23
+ const child = fork(fileURLToPath(mutationPolicyProcessUrl), [mutationPolicyProcessArgument], {
24
+ cwd: input.cwd,
25
+ env: readMutationPolicyEnvironment(),
26
+ execArgv: [],
27
+ killSignal: 'SIGKILL',
28
+ signal: input.signal,
29
+ stdio: ['ignore', 'inherit', 'inherit', 'ipc']
30
+ });
31
+ const closed = new Promise(function observeResolverClose(resolve) {
32
+ child.once('close', function resolverClosed() {
33
+ resolve();
34
+ });
35
+ });
36
+ try {
37
+ return await new Promise(function receivePolicy(resolve, reject) {
38
+ child.once('error', reject);
39
+ child.once('exit', function resolverExited(code, signal) {
40
+ reject(new Error(`Mutation policy resolver exited without a result (${String(code)}, ${String(signal)}).`));
41
+ });
42
+ child.once('message', function decodePolicy(message) {
43
+ try {
44
+ resolve(readPolicyResponse(message));
45
+ }
46
+ catch (error) {
47
+ reject(error instanceof Error
48
+ ? error
49
+ : new Error('Invalid mutation policy response.', { cause: error }));
50
+ }
51
+ });
52
+ child.send({ kind: 'resolve-policy', cwd: input.cwd, sandbox: input.sandbox, settings: input.settings }, function policyRequestSent(error) {
53
+ if (error !== null) {
54
+ reject(error);
55
+ }
56
+ });
57
+ });
58
+ }
59
+ finally {
60
+ child.kill('SIGKILL');
61
+ await closed;
62
+ }
63
+ }
64
+ //# sourceMappingURL=mutation-policy-process.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutation-policy-process.js","sourceRoot":"","sources":["../../../../../source/packages/stryker-runner/mutation-policy-process.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAA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,EAAE,EAC5F,SAAS,iBAAiB,CAAC,KAAK;gBAC5B,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;oBACjB,MAAM,CAAC,KAAK,CAAC,CAAC;gBAClB,CAAC;YACL,CAAC,CACJ,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC;YAAS,CAAC;QACP,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtB,MAAM,MAAM,CAAC;IACjB,CAAC;AACL,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod/v4';
2
+ import { parseFrozenMicrotestPolicy } from "@overkill-dev/run";
3
+ import { mutationSandboxSchema } from "./mutation-sandbox.js";
4
+ export const mutationPolicyRequestSchema = z.strictObject({
5
+ kind: z.literal('resolve-policy'),
6
+ cwd: z.string(),
7
+ sandbox: mutationSandboxSchema.nullable(),
8
+ settings: z.unknown()
9
+ });
10
+ export const mutationPolicyResponseSchema = z.discriminatedUnion('kind', [
11
+ z.strictObject({ kind: z.literal('policy'), policy: z.unknown().transform(parseFrozenMicrotestPolicy) }).readonly(),
12
+ z.strictObject({ kind: z.literal('config-error'), message: z.string(), cause: z.string().nullable() }).readonly(),
13
+ z
14
+ .strictObject({
15
+ kind: z.literal('resolution-error'),
16
+ message: z.string(),
17
+ code: z.enum(['invalid-request', 'no-tests-collected', 'unsupported-request'])
18
+ })
19
+ .readonly(),
20
+ z.strictObject({ kind: z.literal('error'), message: z.string() }).readonly()
21
+ ]);
22
+ //# sourceMappingURL=mutation-policy-protocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutation-policy-protocol.js","sourceRoot":"","sources":["../../../../../source/packages/stryker-runner/mutation-policy-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAA2B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM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2
+ import { orchestrator, RunResolutionError, withFileModuleBoundary } from "@overkill-dev/run";
3
+ import { selectMicrotestProfile } from "./microtest-profile.js";
4
+ import { createMutationRunCommand } from "./mutation-execution-policy.js";
5
+ import { mutationPolicyRequestSchema } from "./mutation-policy-protocol.js";
6
+ import { parseRunnerOptions } from "./runner-options.js";
7
+ import { assertExcludedMutationFiles, sandboxModuleBoundary, sandboxRunnerOptions } from "./mutation-sandbox.js";
8
+ async function readPolicyRequest() {
9
+ return new Promise(function receivePolicyRequest(resolve, reject) {
10
+ process.once('message', function decodePolicyRequest(message) {
11
+ try {
12
+ resolve(mutationPolicyRequestSchema.parse(message));
13
+ }
14
+ catch (error) {
15
+ reject(error instanceof Error ? error : new Error('Invalid mutation policy request.', { cause: error }));
16
+ }
17
+ });
18
+ });
19
+ }
20
+ async function createPolicy() {
21
+ const input = await readPolicyRequest();
22
+ const parsedSettings = parseRunnerOptions(input.settings);
23
+ const { sandbox } = input;
24
+ if (sandbox !== null && sandbox.root !== input.cwd) {
25
+ throw new ConfigError('Mutation sandbox conflicts with resolver cwd.');
26
+ }
27
+ const settings = sandbox === null ? parsedSettings : sandboxRunnerOptions(sandbox, parsedSettings);
28
+ const moduleBoundary = sandbox === null ? null : sandboxModuleBoundary(sandbox);
29
+ return await withFileModuleBoundary(moduleBoundary, async function freezeSandboxPolicy() {
30
+ const request = { configPath: settings.configPath, cwd: input.cwd };
31
+ const config = await loadConfig(request);
32
+ if (sandbox !== null && config.configPath !== null) {
33
+ await assertExcludedMutationFiles(sandbox, [config.configPath], 'configuration');
34
+ }
35
+ const selected = selectMicrotestProfile(config, settings.profile);
36
+ const command = createMutationRunCommand({ config, cwd: input.cwd, profile: selected.name });
37
+ const policy = await orchestrator.freezePolicy({
38
+ moduleBoundary,
39
+ command: { ...command, request: { ...command.request, paths: settings.paths } },
40
+ source: { kind: 'config-file', request, resolvedPath: config.configPath }
41
+ });
42
+ if (sandbox !== null) {
43
+ await assertExcludedMutationFiles(sandbox, policy.files.map(function testModule(file) {
44
+ return file.path;
45
+ }), 'test definitions');
46
+ }
47
+ return { kind: 'policy', policy };
48
+ });
49
+ }
50
+ function failureResponse(error) {
51
+ if (error instanceof ConfigError) {
52
+ return {
53
+ kind: 'config-error',
54
+ message: error.message,
55
+ cause: error.cause instanceof Error ? error.cause.message : null
56
+ };
57
+ }
58
+ if (error instanceof RunResolutionError) {
59
+ return { kind: 'resolution-error', message: error.message, code: error.code() };
60
+ }
61
+ return { kind: 'error', message: error instanceof Error ? error.message : String(error) };
62
+ }
63
+ async function policyResponse() {
64
+ try {
65
+ return await createPolicy();
66
+ }
67
+ catch (error) {
68
+ return failureResponse(error);
69
+ }
70
+ }
71
+ async function resolveMutationPolicy() {
72
+ const response = await policyResponse();
73
+ await new Promise(function deliverPolicy(resolve, reject) {
74
+ if (process.send === undefined) {
75
+ reject(new Error('Mutation policy resolver requires IPC.'));
76
+ return;
77
+ }
78
+ process.send(response, function policyDelivered(error) {
79
+ if (error === null) {
80
+ resolve();
81
+ }
82
+ else {
83
+ reject(error);
84
+ }
85
+ });
86
+ });
87
+ process.disconnect?.();
88
+ }
89
+ await resolveMutationPolicy();
90
+ //# sourceMappingURL=mutation-policy-resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutation-policy-resolver.js","sourceRoot":"","sources":["../../../../../source/packages/stryker-runner/mutation-policy-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAA8B,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,mBAA2B,CAAC;AACrG,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,2BAA2B,EAA+B,MAAM,+BAA+B,CAAC;AACzG,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OA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BACjB,OAAO,EAAE,CAAC;YACd,CAAC;iBAAM,CAAC;gBACJ,MAAM,CAAC,KAAK,CAAC,CAAC;YAClB,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;AAC3B,CAAC;AAED,MAAM,qBAAqB,EAAE,CAAC"}
@@ -0,0 +1,141 @@
1
+ import { realpath } from 'node:fs/promises';
2
+ import { createRequire } from 'node:module';
3
+ import { dirname, isAbsolute, relative, resolve, sep } from 'node:path';
4
+ import { fileURLToPath, pathToFileURL } from 'node:url';
5
+ import { z } from 'zod/v4';
6
+ import { ConfigError } from "@overkill-dev/run";
7
+ export const mutationSandboxSchema = z
8
+ .strictObject({
9
+ originalRoot: z.string().min(1),
10
+ root: z.string().min(1),
11
+ sharedRoots: z.array(z.string()).readonly(),
12
+ files: z.array(z.strictObject({ file: z.string().min(1), mutationTarget: z.boolean() }).readonly()).readonly()
13
+ })
14
+ .readonly();
15
+ function projectRelativePath(root, path) {
16
+ const file = relative(root, path);
17
+ return file === '..' || file.startsWith(`..${sep}`) || isAbsolute(file) ? null : file;
18
+ }
19
+ function originalFiles(root, descriptions) {
20
+ const seen = new Set();
21
+ return Object.entries(descriptions).map(function describeOriginalFile([path, description]) {
22
+ const file = projectRelativePath(root, path);
23
+ if (!isAbsolute(path) || file === null || file === '' || seen.has(file)) {
24
+ throw new ConfigError(`Invalid Stryker project file origin: ${path}`);
25
+ }
26
+ seen.add(file);
27
+ return { file: file.replaceAll('\\', '/'), mutationTarget: description.mutate !== false };
28
+ });
29
+ }
30
+ async function existingModulePath(path) {
31
+ try {
32
+ return await realpath(path);
33
+ }
34
+ catch (error) {
35
+ if (error instanceof Error && Reflect.get(error, 'code') === 'ENOENT') {
36
+ return null;
37
+ }
38
+ throw error;
39
+ }
40
+ }
41
+ async function sharedModuleRoots(root, originalRoot, files) {
42
+ const bootstrapRoot = dirname(dirname(import.meta.dirname));
43
+ const roots = [root, bootstrapRoot].flatMap(function moduleSearchRoots(directory) {
44
+ return createRequire(pathToFileURL(resolve(directory, 'package.json'))).resolve.paths('overkill') ?? [];
45
+ });
46
+ const existingRoots = await Promise.all([bootstrapRoot, ...roots].map(existingModulePath));
47
+ const sharedRoots = Array.from(new Set(existingRoots
48
+ .filter(function existingRoot(path) {
49
+ return path !== null;
50
+ })
51
+ .filter(function externalModuleRoot(path) {
52
+ return projectRelativePath(root, path) === null;
53
+ })));
54
+ for (const sharedRoot of sharedRoots) {
55
+ if (projectRelativePath(sharedRoot, originalRoot) !== null) {
56
+ throw new ConfigError(`Shared module root contains the original project: ${sharedRoot}`);
57
+ }
58
+ if (files.some(function sharedProjectFile(file) {
59
+ return projectRelativePath(sharedRoot, resolve(originalRoot, file.file)) !== null;
60
+ })) {
61
+ throw new ConfigError(`Shared module root overlaps Stryker project files: ${sharedRoot}`);
62
+ }
63
+ }
64
+ return sharedRoots;
65
+ }
66
+ export async function createMutationSandbox(input) {
67
+ const root = await realpath(input.cwd);
68
+ const files = originalFiles(input.originalRoot, input.fileDescriptions);
69
+ const sharedRoots = await sharedModuleRoots(root, input.originalRoot, files);
70
+ return mutationSandboxSchema.parse({
71
+ originalRoot: input.originalRoot,
72
+ root,
73
+ sharedRoots,
74
+ files
75
+ });
76
+ }
77
+ export function sandboxModuleBoundary(sandbox) {
78
+ return { projectRoot: sandbox.root, sharedRoots: sandbox.sharedRoots };
79
+ }
80
+ function sandboxPath(sandbox, input) {
81
+ const path = input.startsWith('file:') ? fileURLToPath(input) : input;
82
+ const originalFile = isAbsolute(path) && projectRelativePath(sandbox.root, path) === null
83
+ ? projectRelativePath(sandbox.originalRoot, path)
84
+ : null;
85
+ const candidate = resolve(sandbox.root, originalFile ?? path);
86
+ if (projectRelativePath(sandbox.root, candidate) === null) {
87
+ throw new ConfigError(`Overkill path escapes the Stryker sandbox: ${input}`);
88
+ }
89
+ return candidate;
90
+ }
91
+ export function sandboxRunnerOptions(sandbox, settings) {
92
+ return {
93
+ ...settings,
94
+ configPath: settings.configPath === null ? null : sandboxPath(sandbox, settings.configPath),
95
+ paths: settings.paths.map(function sandboxRunPath(path) {
96
+ return sandboxPath(sandbox, path);
97
+ })
98
+ };
99
+ }
100
+ async function sandboxFileOrigin(sandbox, path) {
101
+ const canonicalPath = await existingModulePath(path) ?? path;
102
+ const file = projectRelativePath(sandbox.root, canonicalPath);
103
+ if (file === null) {
104
+ throw new ConfigError(`Mutation target escapes the Stryker sandbox: ${path}`);
105
+ }
106
+ return file.replaceAll('\\', '/');
107
+ }
108
+ export async function assertExcludedMutationFiles(sandbox, paths, role) {
109
+ const targets = sandbox.files.filter(function mutationTarget(file) {
110
+ return file.mutationTarget;
111
+ });
112
+ const selected = new Set(await Promise.all(targets.map(async function targetOrigin(file) {
113
+ return sandboxFileOrigin(sandbox, resolve(sandbox.root, file.file));
114
+ })));
115
+ const origins = await Promise.all(paths.map(async function protectedOrigin(path) {
116
+ return sandboxFileOrigin(sandbox, path);
117
+ }));
118
+ const conflicts = origins.filter(function selectedFile(file) {
119
+ return selected.has(file);
120
+ });
121
+ if (conflicts.length > 0) {
122
+ throw new ConfigError(`Exclude ${role} from Stryker mutate: ${conflicts.join(', ')}`);
123
+ }
124
+ }
125
+ export async function assertExcludedAdapter(sandbox) {
126
+ const directory = projectRelativePath(sandbox.originalRoot, import.meta.dirname);
127
+ if (directory === null) {
128
+ return;
129
+ }
130
+ const paths = sandbox
131
+ .files
132
+ .filter(function adapterFile(file) {
133
+ const path = resolve(sandbox.originalRoot, file.file);
134
+ return projectRelativePath(import.meta.dirname, path) !== null;
135
+ })
136
+ .map(function sandboxAdapterFile(file) {
137
+ return resolve(sandbox.root, file.file);
138
+ });
139
+ await assertExcludedMutationFiles(sandbox, paths, 'adapter code');
140
+ }
141
+ //# sourceMappingURL=mutation-sandbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutation-sandbox.js","sourceRoot":"","sources":["../../../../../source/packages/stryker-runner/mutation-sandbox.ts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AC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IACP,MAAM,2BAA2B,CAAC,OAAO,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC;AACtE,CAAC"}
@@ -1,23 +1,27 @@
1
1
  import { commonTokens, tokens } from '@stryker-mutator/api/plugin';
2
- import { loadConfig } from "@overkill-dev/run";
3
- import { selectMicrotestProfile } from "./microtest-profile.js";
4
- import { createMutationRunCommand } from "./mutation-execution-policy.js";
2
+ import { ConfigError } from "@overkill-dev/run";
3
+ import { initializeMutationPolicy } from "./mutation-policy-process.js";
5
4
  import { parseRunnerOptions } from "./runner-options.js";
6
- export function createOverkillTestRunner(options) {
5
+ import { assertExcludedAdapter, createMutationSandbox } from "./mutation-sandbox.js";
6
+ const originalRoot = process.cwd();
7
+ export function createOverkillTestRunner(options, fileDescriptions) {
7
8
  let initialization = null;
8
- async function initializeRunCommand() {
9
+ const controller = new AbortController();
10
+ async function initializePolicy() {
9
11
  const settings = parseRunnerOptions(options.overkill);
10
- const cwd = process.cwd();
11
- const config = await loadConfig({ configPath: settings.configPath, cwd });
12
- const selected = selectMicrotestProfile(config, settings.profile);
13
- return createMutationRunCommand({ config, cwd, profile: selected.name });
12
+ const sandbox = await createMutationSandbox({ originalRoot, cwd: process.cwd(), fileDescriptions });
13
+ await assertExcludedAdapter(sandbox);
14
+ return await initializeMutationPolicy({ cwd: sandbox.root, sandbox, settings, signal: controller.signal });
14
15
  }
15
16
  return {
16
17
  capabilities() {
17
18
  throw new Error('@overkill-dev/stryker-runner: capabilities() is not implemented.');
18
19
  },
19
20
  async init() {
20
- initialization = initialization ?? initializeRunCommand();
21
+ if (controller.signal.aborted) {
22
+ throw new ConfigError('Stryker runner has been disposed.');
23
+ }
24
+ initialization = initialization ?? initializePolicy();
21
25
  await initialization;
22
26
  },
23
27
  async dryRun() {
@@ -27,9 +31,14 @@ export function createOverkillTestRunner(options) {
27
31
  throw new Error('@overkill-dev/stryker-runner: mutantRun() is not implemented.');
28
32
  },
29
33
  async dispose() {
30
- await Promise.resolve();
34
+ controller.abort();
35
+ try {
36
+ await initialization;
37
+ }
38
+ catch {
39
+ }
31
40
  }
32
41
  };
33
42
  }
34
- createOverkillTestRunner.inject = tokens(commonTokens.options);
43
+ createOverkillTestRunner.inject = tokens(commonTokens.options, commonTokens.fileDescriptions);
35
44
  //# sourceMappingURL=overkill-test-runner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"overkill-test-runner.js","sourceRoot":"","sources":["../../../../../source/packages/stryker-runner/overkill-test-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAOnE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAA8B,CAAC;AAE1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,UAAU,wBAAwB,CAAC,OAA0C;IAC/E,IAAI,cAAc,GAA+B,IAAI,CAAC;IAEtD,KAAK,UAAU,oBAAoB;QAC/B,MAAM,QAAQ,GAAG,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACtD,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;QAC1B,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;QAE1E,MAAM,QAAQ,GAAG,sBAAsB,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QAElE,OAAO,wBAAwB,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,OAAO;QACH,YAAY;YACR,MAAM,IAAI,KAAK,CAAC,kEAAkE,CAAC,CAAC;QACxF,CAAC;QACD,KAAK,CAAC,IAAI;YACN,cAAc,GAAG,cAAc,IAAI,oBAAoB,EAAE,CAAC;YAC1D,MAAM,cAAc,CAAC;QACzB,CAAC;QACD,KAAK,CAAC,MAAM;YACR,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;QAClF,CAAC;QACD,KAAK,CAAC,SAAS;YACX,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;QACrF,CAAC;QACD,KAAK,CAAC,OAAO;YACT,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;QAC5B,CAAC;KACJ,CAAC;AACN,CAAC;AAED,wBAAwB,CAAC,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"overkill-test-runner.js","sourceRoot":"","sources":["../../../../../source/packages/stryker-runner/overkill-test-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAQnE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAA8B,CAAC;AAE3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAErF,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;AAEnC,MAAM,UAAU,wBAAwB,CACpC,OAA0C,EAC1C,gBAAkC;IAElC,IAAI,cAAc,GAA0C,IAAI,CAAC;IACjE,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;IAEzC,KAAK,UAAU,gBAAgB;QAC3B,MAAM,QAAQ,GAAG,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACtD,MAAM,OAAO,GAAG,MAAM,qBAAqB,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC;QACpG,MAAM,qBAAqB,CAAC,OAAO,CAAC,CAAC;QACrC,OAAO,MAAM,wBAAwB,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;IAC/G,CAAC;IAED,OAAO;QACH,YAAY;YACR,MAAM,IAAI,KAAK,CAAC,kEAAkE,CAAC,CAAC;QACxF,CAAC;QACD,KAAK,CAAC,IAAI;YACN,IAAI,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;gBAC5B,MAAM,IAAI,WAAW,CAAC,mCAAmC,CAAC,CAAC;YAC/D,CAAC;YACD,cAAc,GAAG,cAAc,IAAI,gBAAgB,EAAE,CAAC;YACtD,MAAM,cAAc,CAAC;QACzB,CAAC;QACD,KAAK,CAAC,MAAM;YACR,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;QAClF,CAAC;QACD,KAAK,CAAC,SAAS;YACX,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;QACrF,CAAC;QACD,KAAK,CAAC,OAAO;YACT,UAAU,CAAC,KAAK,EAAE,CAAC;YACnB,IAAI,CAAC;gBACD,MAAM,cAAc,CAAC;YACzB,CAAC;YAAC,MAAM,CAAC;YACT,CAAC;QACL,CAAC;KACJ,CAAC;AACN,CAAC;AAED,wBAAwB,CAAC,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC"}
@@ -4,6 +4,7 @@ export declare const strykerValidationSchema: {
4
4
  properties: {
5
5
  overkill: z.core.ZodStandardJSONSchemaPayload<z.ZodDefault<z.ZodReadonly<z.ZodObject<{
6
6
  configPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
7
+ paths: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
7
8
  profile: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8
9
  }, z.core.$strict>>>>;
9
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"runner-options.d.ts","sourceRoot":"","sources":["../../../../../source/packages/stryker-runner/runner-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;MAYrB,SAEC,MAAM,uBAAuB;;;;;;;;CAKnC,CAAC;AAEF"}
1
+ {"version":3,"file":"runner-options.d.ts","sourceRoot":"","sources":["../../../../../source/packages/stryker-runner/runner-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;MAarB,SAEC,MAAM,uBAAuB;;;;;;;;;CAKnC,CAAC;AAEF"}
@@ -4,10 +4,11 @@ import { ConfigError } from "@overkill-dev/run";
4
4
  const runnerOptionsSchema = z
5
5
  .strictObject({
6
6
  configPath: z.string().regex(/\S/u, 'must not be blank').nullable().default(null),
7
+ paths: z.array(z.string().regex(/\S/u, 'must not be blank')).readonly().default([]),
7
8
  profile: z.string().nullable().default(null)
8
9
  })
9
10
  .readonly()
10
- .default({ configPath: null, profile: null });
11
+ .default({ configPath: null, paths: [], profile: null });
11
12
  export const strykerValidationSchema = {
12
13
  type: 'object',
13
14
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"runner-options.js","sourceRoot":"","sources":["../../../../../source/packages/stryker-runner/runner-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAA8B,CAAC;AAE3D,MAAM,mBAAmB,GAAG,CAAC;KACxB,YAAY,CAAC;IACV,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAA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,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IACnF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;CAC/C,CAAC;KACD,QAAQ,EAAE;KACV,OAAO,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;AAI7D,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACR,QAAQ,EAAE,CAAC,CAAC,YAAY,CAAC,mBAAmB,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;KACpF;CACJ,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC7C,IAAI,CAAC;QACD,OAAO,KAAK,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC;IAC7C,CAAC;IAAC,OAAO,KAAc,EAAE,CAAC;QACtB,MAAM,IAAI,WAAW,CAAC,sCAAsC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IACnG,CAAC;AACL,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { PluginKind } from '@stryker-mutator/api/plugin';
2
2
  export { strykerValidationSchema } from './runner-options.ts';
3
- export declare const strykerPlugins: import("@stryker-mutator/api/plugin").FactoryPlugin<PluginKind.TestRunner, ["options"]>[];
3
+ export declare const strykerPlugins: import("@stryker-mutator/api/plugin").FactoryPlugin<PluginKind.TestRunner, ["options", "fileDescriptions"]>[];
4
4
  //# sourceMappingURL=stryker-runner.entry-point.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stryker-runner.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/stryker-runner/stryker-runner.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAG/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,eAAO,MAAM,cAAc,2FAE1B,CAAC"}
1
+ {"version":3,"file":"stryker-runner.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/stryker-runner/stryker-runner.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAG/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,eAAO,MAAM,cAAc,+GAE1B,CAAC"}
package/readme.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # `@overkill-dev/stryker-runner`
2
2
 
3
3
  Optional first-party Stryker `TestRunner` plugin for Node microtest profiles.
4
- Profile initialization prepares the mutation execution policy. Dry runs, mutant
4
+ Profile initialization freezes the mutation execution policy. Dry runs, mutant
5
5
  execution, and capability reporting are not implemented yet.
6
6
 
7
7
  ```js
@@ -10,7 +10,8 @@ export default {
10
10
  plugins: [ '@overkill-dev/stryker-runner' ],
11
11
  overkill: {
12
12
  configPath: 'overkill.config.ts',
13
- profile: 'unit-fast'
13
+ profile: 'unit-fast',
14
+ paths: []
14
15
  }
15
16
  };
16
17
  ```
@@ -21,19 +22,61 @@ microtest profile in the normalized registry. The built-in `microtest` fallback
21
22
  counts: adding a custom microtest profile normally requires an explicit name.
22
23
  An explicitly configured `microtest` profile replaces that fallback.
23
24
 
25
+ `paths` supplies explicit files or directory filters using ordinary runner
26
+ discovery rules. It defaults to `[]`. Initialization requires discovered files;
27
+ without a config discovery policy, provide explicit files through `paths`.
28
+
24
29
  Unknown names, non-microtest profiles, absent eligible profiles, ambiguous
25
30
  inference, and malformed settings fail before discovery or test imports.
26
31
  Browser-oriented integration profiles and multi-profile selections are rejected.
27
32
  Other profile families may coexist in the project registry. Profile names do not
28
33
  determine eligibility. Incompatible test nodes are checked during collection.
29
34
 
30
- Initialization prepares a public runner command with explicit serial scheduling,
35
+ Initialization freezes a public runner policy with explicit serial scheduling,
31
36
  ordinary V8 coverage disabled, and baseline updates disabled. Microtest profiles
32
37
  have no Overkill retry policy. Discovery, loaders, capability restrictions,
33
38
  resource policies, timeouts, and the configured process model are preserved.
34
39
  The original profile remains unchanged; the command records the override as
35
40
  `request.execution: { mode: 'serial' }`.
36
41
 
37
- Initialization imports no test modules. Repeated initialization shares one
38
- result, including failures. Campaign policy freezing and invocation execution
39
- are not implemented yet.
42
+ Each plugin worker resolves policy once in a fresh, unmutated process. That
43
+ process imports user configuration and its dependencies, discovers files, and
44
+ returns immutable policy data. It imports no tests or custom engines and is
45
+ terminated and reaped after success, failure, or disposal. User configuration
46
+ does not enter the plugin worker's execution graph during initialization.
47
+ Repeated initialization shares one result, including failures. Replacement
48
+ workers resolve independently; this is not shared campaign coordination.
49
+
50
+ Stryker owns mutation selection. Exclude configuration, test definitions,
51
+ definition helpers such as macros and suite fragments, and adapter code through
52
+ `mutate`, while keeping those files available in the sandbox. Use mutation
53
+ exclusions rather than `ignorePatterns`, which removes files from the sandbox.
54
+ Prefer a production-only include, with exclusions where production and test
55
+ definitions share directories.
56
+
57
+ Initialization rejects targets overlapping the loaded config entry, discovered
58
+ test modules, or the executing adapter directory. Boolean targets and mutation
59
+ ranges are both checked. Imported definition helpers require project-owned
60
+ exclusions; initialization does not import tests or build an import graph to
61
+ classify them. Installed adapter code is normally outside Stryker's targets.
62
+
63
+ The plugin captures the launch cwd during loading, before Stryker changes the
64
+ worker cwd. Original absolute `configPath` and `paths` inputs are rebased to
65
+ sandbox copies; relative and already-sandboxed paths remain sandbox-local.
66
+ Missing copies fail without loading originals. File identities remain canonical
67
+ project-relative paths across sandbox names and replacement workers.
68
+
69
+ Mutation policy carries an additional native module boundary. Configuration
70
+ dependencies and test imports must resolve inside the sandbox or trusted
71
+ installed dependency and bootstrap roots. Absolute project imports and symlinks
72
+ escaping those roots fail before evaluation. Shared roots overlapping original
73
+ project files are rejected; load the adapter from a separate installed package.
74
+ The same boundary applies during config revalidation and both runner process
75
+ models without widening capability permissions or resetting module caches.
76
+
77
+ Execution hosts revalidate file-backed configuration before collecting tests.
78
+ Changes to authoritative discovery, loader declarations, selection, permissions,
79
+ execution, or resources fail even when test identities would remain unchanged.
80
+ Reporters, valid unrelated profiles, disabled coverage settings, and overridden
81
+ scheduling do not affect the comparison. Invocation execution is not implemented
82
+ in this adapter yet.
package/sbom.cdx.json CHANGED
@@ -9,31 +9,31 @@
9
9
  {
10
10
  "type": "application",
11
11
  "name": "packtory",
12
- "version": "0.0.119"
12
+ "version": "0.0.120"
13
13
  }
14
14
  ]
15
15
  },
16
16
  "component": {
17
17
  "type": "library",
18
18
  "name": "@overkill-dev/stryker-runner",
19
- "version": "0.0.3",
20
- "bom-ref": "pkg:npm/@overkill-dev/stryker-runner@0.0.3",
21
- "purl": "pkg:npm/@overkill-dev/stryker-runner@0.0.3"
19
+ "version": "0.0.5",
20
+ "bom-ref": "pkg:npm/@overkill-dev/stryker-runner@0.0.5",
21
+ "purl": "pkg:npm/@overkill-dev/stryker-runner@0.0.5"
22
22
  }
23
23
  },
24
24
  "components": [
25
25
  {
26
26
  "type": "library",
27
27
  "name": "@overkill-dev/run",
28
- "version": "0.0.68",
29
- "bom-ref": "pkg:npm/@overkill-dev/run@0.0.68",
28
+ "version": "0.0.70",
29
+ "bom-ref": "pkg:npm/@overkill-dev/run@0.0.70",
30
30
  "scope": "optional",
31
31
  "licenses": [
32
32
  {
33
33
  "expression": "MIT"
34
34
  }
35
35
  ],
36
- "purl": "pkg:npm/@overkill-dev/run@0.0.68"
36
+ "purl": "pkg:npm/@overkill-dev/run@0.0.70"
37
37
  },
38
38
  {
39
39
  "type": "library",
@@ -77,12 +77,12 @@
77
77
  ],
78
78
  "dependencies": [
79
79
  {
80
- "ref": "pkg:npm/@overkill-dev/run@0.0.68"
80
+ "ref": "pkg:npm/@overkill-dev/run@0.0.70"
81
81
  },
82
82
  {
83
- "ref": "pkg:npm/@overkill-dev/stryker-runner@0.0.3",
83
+ "ref": "pkg:npm/@overkill-dev/stryker-runner@0.0.5",
84
84
  "dependsOn": [
85
- "pkg:npm/@overkill-dev/run@0.0.68",
85
+ "pkg:npm/@overkill-dev/run@0.0.70",
86
86
  "pkg:npm/@schema-hub/zod-error-formatter@0.0.19",
87
87
  "pkg:npm/@stryker-mutator/api@10.0.0",
88
88
  "pkg:npm/zod@4.6.5"