@diffci.com/diffci 0.3.54 → 0.3.55
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/dist-client/src/client/agent-selection.d.ts +9 -2
- package/dist-client/src/client/agent-selection.js +20 -8
- package/dist-client/src/client/agent-setup.js +1 -1
- package/dist-client/src/client/cli.js +15 -4
- package/dist-client/src/client/command-batches.js +3 -2
- package/dist-client/src/client/context.js +32 -2
- package/dist-client/src/client/coverage-map.js +6 -1
- package/dist-client/src/client/full-command.js +19 -14
- package/dist-client/src/client/hook.d.ts +17 -0
- package/dist-client/src/client/hook.js +53 -1
- package/dist-client/src/client/install.d.ts +6 -0
- package/dist-client/src/client/install.js +29 -1
- package/dist-client/src/client/mcp.js +4 -0
- package/dist-client/src/client/observe.js +3 -2
- package/dist-client/src/client/report.d.ts +1 -1
- package/dist-client/src/client/shared-graph-cache.js +4 -2
- package/dist-client/src/client/telemetry.js +2 -1
- package/dist-client/src/client/usage-signal.d.ts +1 -1
- package/dist-client/src/client/verify-savings.d.ts +6 -0
- package/dist-client/src/client/verify-savings.js +15 -3
- package/dist-client/src/client/verify.js +124 -22
- package/node_modules/@diffci.com/core/README.md +17 -10
- package/node_modules/@diffci.com/core/dist/ci-inference/expression.d.ts +5 -0
- package/node_modules/@diffci.com/core/dist/ci-inference/expression.js +38 -5
- package/node_modules/@diffci.com/core/dist/ci-inference/expression.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/ci-inference/infer.js +26 -6
- package/node_modules/@diffci.com/core/dist/ci-inference/infer.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/ci-inference/jobs.d.ts +2 -1
- package/node_modules/@diffci.com/core/dist/ci-inference/jobs.js +7 -2
- package/node_modules/@diffci.com/core/dist/ci-inference/jobs.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/ci-inference/matrix.js +15 -8
- package/node_modules/@diffci.com/core/dist/ci-inference/matrix.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/ci-inference/purpose.js +6 -2
- package/node_modules/@diffci.com/core/dist/ci-inference/purpose.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/ci-inference/resolve.js +19 -4
- package/node_modules/@diffci.com/core/dist/ci-inference/resolve.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/git/ci-config-paths.js +13 -1
- package/node_modules/@diffci.com/core/dist/git/ci-config-paths.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/git/git-diff.d.ts +5 -0
- package/node_modules/@diffci.com/core/dist/git/git-diff.js +22 -20
- package/node_modules/@diffci.com/core/dist/git/git-diff.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/planner/check-narrowing.js +22 -1
- package/node_modules/@diffci.com/core/dist/planner/check-narrowing.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/planner/pipeline-steps.d.ts +6 -0
- package/node_modules/@diffci.com/core/dist/planner/pipeline-steps.js +14 -2
- package/node_modules/@diffci.com/core/dist/planner/pipeline-steps.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/planner/planner.js +65 -14
- package/node_modules/@diffci.com/core/dist/planner/planner.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/planner/rust-command.js +43 -1
- package/node_modules/@diffci.com/core/dist/planner/rust-command.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/planner/script-reads.js +5 -2
- package/node_modules/@diffci.com/core/dist/planner/script-reads.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/planner/test-command.js +17 -2
- package/node_modules/@diffci.com/core/dist/planner/test-command.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/planner/type-program.js +27 -1
- package/node_modules/@diffci.com/core/dist/planner/type-program.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/adapters/go.js +5 -1
- package/node_modules/@diffci.com/core/dist/repo/adapters/go.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/adapters/maven.js +21 -2
- package/node_modules/@diffci.com/core/dist/repo/adapters/maven.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/adapters/python.d.ts +9 -1
- package/node_modules/@diffci.com/core/dist/repo/adapters/python.js +158 -14
- package/node_modules/@diffci.com/core/dist/repo/adapters/python.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/adapters/rust.d.ts +1 -0
- package/node_modules/@diffci.com/core/dist/repo/adapters/rust.js +180 -15
- package/node_modules/@diffci.com/core/dist/repo/adapters/rust.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/adapters/types.d.ts +7 -0
- package/node_modules/@diffci.com/core/dist/repo/adapters/types.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/file-references.d.ts +16 -0
- package/node_modules/@diffci.com/core/dist/repo/file-references.js +76 -5
- package/node_modules/@diffci.com/core/dist/repo/file-references.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/graph.js +100 -29
- package/node_modules/@diffci.com/core/dist/repo/graph.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/impact.d.ts +7 -0
- package/node_modules/@diffci.com/core/dist/repo/impact.js +55 -8
- package/node_modules/@diffci.com/core/dist/repo/impact.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/layout.js +4 -1
- package/node_modules/@diffci.com/core/dist/repo/layout.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/runner-universe.js +10 -1
- package/node_modules/@diffci.com/core/dist/repo/runner-universe.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/script-universe.js +1 -1
- package/node_modules/@diffci.com/core/dist/repo/script-universe.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/test-discovery.js +5 -1
- package/node_modules/@diffci.com/core/dist/repo/test-discovery.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/types.d.ts +3 -0
- package/node_modules/@diffci.com/core/dist/repo/workflow-test-steps.js +3 -3
- package/node_modules/@diffci.com/core/dist/repo/workflow-test-steps.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/research/baseline/matcher.js +65 -13
- package/node_modules/@diffci.com/core/dist/research/baseline/matcher.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/research/baseline/workflow-parser.js +47 -2
- package/node_modules/@diffci.com/core/dist/research/baseline/workflow-parser.js.map +1 -1
- package/node_modules/@diffci.com/core/package.json +1 -0
- package/node_modules/@diffci.com/core/src/ci-inference/expression.ts +38 -5
- package/node_modules/@diffci.com/core/src/ci-inference/infer.ts +21 -6
- package/node_modules/@diffci.com/core/src/ci-inference/jobs.ts +7 -2
- package/node_modules/@diffci.com/core/src/ci-inference/matrix.ts +15 -8
- package/node_modules/@diffci.com/core/src/ci-inference/purpose.ts +6 -2
- package/node_modules/@diffci.com/core/src/ci-inference/resolve.ts +18 -4
- package/node_modules/@diffci.com/core/src/git/ci-config-paths.ts +8 -1
- package/node_modules/@diffci.com/core/src/git/git-diff.ts +20 -21
- package/node_modules/@diffci.com/core/src/planner/check-narrowing.ts +22 -1
- package/node_modules/@diffci.com/core/src/planner/pipeline-steps.ts +13 -2
- package/node_modules/@diffci.com/core/src/planner/planner.ts +42 -14
- package/node_modules/@diffci.com/core/src/planner/rust-command.ts +37 -1
- package/node_modules/@diffci.com/core/src/planner/script-reads.ts +5 -1
- package/node_modules/@diffci.com/core/src/planner/test-command.ts +17 -2
- package/node_modules/@diffci.com/core/src/planner/type-program.ts +25 -1
- package/node_modules/@diffci.com/core/src/repo/adapters/go.ts +5 -1
- package/node_modules/@diffci.com/core/src/repo/adapters/maven.ts +20 -2
- package/node_modules/@diffci.com/core/src/repo/adapters/python.ts +133 -14
- package/node_modules/@diffci.com/core/src/repo/adapters/rust.ts +136 -16
- package/node_modules/@diffci.com/core/src/repo/adapters/types.ts +7 -1
- package/node_modules/@diffci.com/core/src/repo/file-references.ts +70 -5
- package/node_modules/@diffci.com/core/src/repo/graph.ts +81 -20
- package/node_modules/@diffci.com/core/src/repo/impact.ts +56 -7
- package/node_modules/@diffci.com/core/src/repo/layout.ts +5 -1
- package/node_modules/@diffci.com/core/src/repo/runner-universe.ts +11 -1
- package/node_modules/@diffci.com/core/src/repo/script-universe.ts +1 -1
- package/node_modules/@diffci.com/core/src/repo/test-discovery.ts +4 -1
- package/node_modules/@diffci.com/core/src/repo/types.ts +3 -1
- package/node_modules/@diffci.com/core/src/repo/workflow-test-steps.ts +3 -3
- package/node_modules/@diffci.com/core/src/research/baseline/matcher.ts +43 -13
- package/node_modules/@diffci.com/core/src/research/baseline/workflow-parser.ts +44 -2
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
+
import { commandSpecToString, nodeTestGlobForPath } from "@diffci.com/core/planner/test-command";
|
|
2
3
|
import { mkdtempSync, rmSync } from "node:fs";
|
|
3
4
|
import { tmpdir } from "node:os";
|
|
4
5
|
import { join, resolve } from "node:path";
|
|
@@ -8,7 +9,7 @@ import { checkAtBaseline, compareWithBaseline } from "./failure-baseline.js";
|
|
|
8
9
|
import { collectEnforcementContext, evaluateEnforcement } from "./enforce-policy.js";
|
|
9
10
|
import { inferFullCommand, inferPlannedCommands, inferSelectedCommand, inferSelectedCommands } from "./full-command.js";
|
|
10
11
|
import { plannedChecks, runChecks } from "./gate-checks.js";
|
|
11
|
-
import { makeGitRunner, observe } from "./observe.js";
|
|
12
|
+
import { makeGitRunner, observe, separateProjectReason } from "./observe.js";
|
|
12
13
|
import { redactPath } from "./report.js";
|
|
13
14
|
import { createIsolatedWorktree } from "./isolated-worktree.js";
|
|
14
15
|
import { selectedNodeTests, traceNodeTestFiles, unmatchedNodeTests, unstartedNodeTests } from "./selected-coverage.js";
|
|
@@ -61,10 +62,13 @@ function unknownSnapshot() {
|
|
|
61
62
|
return { baseSha: "unknown", treeSha: "unknown", commitSha: "unknown", changed: true };
|
|
62
63
|
}
|
|
63
64
|
async function executeObservation(options, scope, before, observation) {
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
// The analysis sees real paths, but under --redact-paths enforce keeps treating the paths as redacted.
|
|
66
|
+
const context = options.policy === "enforce" ? collectEnforcementContext(makeGitRunner(options.repoPath), options.env, observation) : undefined;
|
|
67
|
+
const enforcement = context
|
|
68
|
+
? evaluateEnforcement(options.redactPaths ? { ...context, pathsRedacted: true } : context, observation)
|
|
66
69
|
: undefined;
|
|
67
|
-
const
|
|
70
|
+
const executed = await executeWithPolicy(options, scope, before, observation, enforcement);
|
|
71
|
+
const report = options.redactPaths ? redactReceipt(executed, observation.result, options.repoPath) : executed;
|
|
68
72
|
if (!enforcement)
|
|
69
73
|
return report;
|
|
70
74
|
return { ...report, enforcement: { ...enforcement, applied: enforcement.fired_fallback === null && report.selection === "selected" } };
|
|
@@ -224,11 +228,22 @@ async function executeWithPolicy(options, scope, before, observation, enforcemen
|
|
|
224
228
|
};
|
|
225
229
|
}
|
|
226
230
|
const checkBaseline = options.baselineOnFailure && checkBase && checkHead
|
|
227
|
-
|
|
231
|
+
// With no time left the base rerun would get a 0ms limit, which means none: report it as unknown instead.
|
|
232
|
+
? (check, remainingMs) => remainingMs <= 0
|
|
233
|
+
? { status: "unknown", base_sha: checkBase, reason: "the time limit ran out before the base run" }
|
|
234
|
+
: checkAtBaseline({ repoPath: options.repoPath, baseSha: checkBase, headSha: checkHead, command: check.command, timeoutMs: remainingMs })
|
|
228
235
|
: undefined;
|
|
229
236
|
const checkRun = options.skipChecks ? undefined : runChecks(planned, { cwd: options.repoPath, timeoutMs: options.timeoutMs, tailBytes: options.tailBytes, baseline: checkBaseline });
|
|
230
237
|
const checks = checkRun?.results.length ? checkRun.results : undefined;
|
|
231
238
|
const failedCheck = checkRun?.failure?.check;
|
|
239
|
+
// Checks the time limit left no room for were never run, so the tests must not run (with no limit) either.
|
|
240
|
+
const unrunChecks = checkRun?.outOfTime ? checkRun.results.filter((check) => check.status === "not_run") : [];
|
|
241
|
+
// Every check can run and still use the whole budget (a slow last check, or a base rerun after a
|
|
242
|
+
// failure that also fails at the base). The tests would then get a 0ms limit, which means none.
|
|
243
|
+
const testBudgetMs = options.timeoutMs - (checkRun?.wallMs ?? 0);
|
|
244
|
+
const budgetUsedByChecks = Boolean(checkRun && !checkRun.failure && !unrunChecks.length && testBudgetMs <= 0
|
|
245
|
+
&& checkRun.results.some((check) => check.status !== "skipped" && check.status !== "not_run"));
|
|
246
|
+
const testsOutOfTime = unrunChecks.length > 0 || budgetUsedByChecks;
|
|
232
247
|
// Checks that also fail at the base: still a failed verdict (required CI fails either way), but they
|
|
233
248
|
// no longer stop the run before the change's own failures.
|
|
234
249
|
const preexistingChecks = checkRun?.preexisting ?? [];
|
|
@@ -238,13 +253,15 @@ async function executeWithPolicy(options, scope, before, observation, enforcemen
|
|
|
238
253
|
// Every test run goes under a probe that records which `node --test` files started (selected ones must)
|
|
239
254
|
// and each one's duration and result for the outcome log (2026-11-06). Outside node:test it does nothing.
|
|
240
255
|
const expectedNodeTests = selection === "selected" && result ? selectedNodeTests(command, result.selectedTests) : [];
|
|
241
|
-
const trace = !checkRun?.failure ? traceNodeTestFiles(options.repoPath) : undefined;
|
|
256
|
+
const trace = !checkRun?.failure && !testsOutOfTime ? traceNodeTestFiles(options.repoPath) : undefined;
|
|
242
257
|
let startedNodeTests;
|
|
243
258
|
let execution;
|
|
244
259
|
try {
|
|
245
260
|
execution = checkRun?.failure
|
|
246
261
|
? checkRun.failure.measurement
|
|
247
|
-
:
|
|
262
|
+
: testsOutOfTime
|
|
263
|
+
? checksOutOfTime(command, checkRun?.wallMs ?? 0)
|
|
264
|
+
: measureCommands(runCommands, { cwd: options.repoPath, timeoutMs: testBudgetMs, tailBytes: options.tailBytes, env: trace?.env, stopOnFailure: options.failFast, stopOnFailureWithin: firstPass?.parts.length });
|
|
248
265
|
startedNodeTests = trace?.read();
|
|
249
266
|
const nodeResults = trace?.results() ?? [];
|
|
250
267
|
if (nodeResults.length)
|
|
@@ -310,15 +327,19 @@ async function executeWithPolicy(options, scope, before, observation, enforcemen
|
|
|
310
327
|
? `the runner reported ${String(execution.runnerTestCount)} test(s) for ${selectedCount} selected test file(s), so some selected tests did not run; run the full test command instead`
|
|
311
328
|
: succeeded
|
|
312
329
|
? checks ? `${reason}; ${checkSummary(checks)}` : reason
|
|
313
|
-
:
|
|
314
|
-
? `gate check ${
|
|
315
|
-
:
|
|
316
|
-
? `
|
|
317
|
-
:
|
|
318
|
-
?
|
|
319
|
-
:
|
|
330
|
+
: unrunChecks.length
|
|
331
|
+
? `gate check(s) ${unrunChecks.map((check) => check.id).join(", ")} did not run within the ${options.timeoutMs}ms time limit; tests were not run`
|
|
332
|
+
: budgetUsedByChecks
|
|
333
|
+
? `gate checks used the whole ${options.timeoutMs}ms time limit (${String(checkRun?.wallMs ?? 0)}ms); tests were not run`
|
|
334
|
+
: failedCheck
|
|
335
|
+
? `gate check ${failedCheck.id} ${failedCheck.status === "timed_out" ? "timed out" : `failed with exit code ${String(failedCheck.exit_code)}`}; tests were not run (${failedCheck.command})`
|
|
336
|
+
: execution.timedOut
|
|
337
|
+
? `verification timed out after ${options.timeoutMs}ms${preexistingNote}`
|
|
338
|
+
: testsPassed
|
|
339
|
+
? `${preexistingChecks.length} gate check(s) failed that also fail at the base commit; nothing this change introduced failed (${preexistingChecks.map((check) => check.id).join(", ")})`
|
|
340
|
+
: `verification command failed with exit code ${String(execution.exitCode)}${preexistingNote}`;
|
|
320
341
|
const baselineSha = scope === "commit-range" ? range?.baseSha : before.baseSha;
|
|
321
|
-
const failureBaseline = verification === "failed" && !failedCheck && !execution.timedOut && options.baselineOnFailure && baselineSha
|
|
342
|
+
const failureBaseline = verification === "failed" && !failedCheck && !testsOutOfTime && !execution.timedOut && options.baselineOnFailure && baselineSha
|
|
322
343
|
// The base reruns only the parts that ran here: a first-pass failure is compared without the full suite.
|
|
323
344
|
? compareWithBaseline({ repoPath: options.repoPath, baseSha: baselineSha, headSha: scope === "commit-range" ? before.baseSha : before.commitSha, commands: stoppedInFirstPass ? firstPass.parts : commands, headFailures: execution.failingTests ?? [], timeoutMs: options.timeoutMs })
|
|
324
345
|
: undefined;
|
|
@@ -357,13 +378,13 @@ async function executeWithPolicy(options, scope, before, observation, enforcemen
|
|
|
357
378
|
...coverageField,
|
|
358
379
|
};
|
|
359
380
|
}
|
|
360
|
-
function stamped(report, version) {
|
|
381
|
+
function stamped(report, version, redactPaths) {
|
|
361
382
|
const { schema, schema_version, produced_at, ...rest } = report;
|
|
362
|
-
return { schema, schema_version, produced_at, diffci_version: version, ...rest };
|
|
383
|
+
return { schema, schema_version, produced_at, diffci_version: version, ...rest, ...(redactPaths ? { snapshot: redactSnapshot(report.snapshot) } : {}) };
|
|
363
384
|
}
|
|
364
385
|
/** Verify exactly the staged, unstaged, and non-ignored untracked content currently on disk. */
|
|
365
386
|
export async function verifyChanged(options) {
|
|
366
|
-
return stamped(await verifyChangedSnapshot(options), options.version);
|
|
387
|
+
return stamped(await verifyChangedSnapshot(options), options.version, options.redactPaths);
|
|
367
388
|
}
|
|
368
389
|
async function verifyChangedSnapshot(options) {
|
|
369
390
|
const repoPath = resolve(options.repoPath);
|
|
@@ -404,7 +425,7 @@ async function verifyChangedSnapshot(options) {
|
|
|
404
425
|
engineSha: options.engineSha,
|
|
405
426
|
baseOverride: before.baseSha,
|
|
406
427
|
headOverride: before.commitSha,
|
|
407
|
-
|
|
428
|
+
// Planned with real paths so the selected tests can run; only the receipt is redacted (redactReceipt).
|
|
408
429
|
reportPath: join(temporaryDirectory, "observation.json"),
|
|
409
430
|
selectTestPhases: true,
|
|
410
431
|
...(options.onGraph ? { onGraph: options.onGraph } : {}),
|
|
@@ -435,7 +456,7 @@ export function scopedChanges(repoPath, scope) {
|
|
|
435
456
|
};
|
|
436
457
|
}
|
|
437
458
|
export async function verifyScoped(options) {
|
|
438
|
-
return stamped(await verifyScopedTree(options), options.version);
|
|
459
|
+
return stamped(await verifyScopedTree(options), options.version, options.redactPaths);
|
|
439
460
|
}
|
|
440
461
|
async function verifyScopedTree(options) {
|
|
441
462
|
const repoPath = resolve(options.repoPath);
|
|
@@ -524,7 +545,7 @@ async function verifyScopedTree(options) {
|
|
|
524
545
|
}
|
|
525
546
|
/** Verify a real commit range and bind the receipt to the clean commit that was actually executed. */
|
|
526
547
|
export async function verifyRange(options) {
|
|
527
|
-
return stamped(await verifyCommitRange(options), options.version);
|
|
548
|
+
return stamped(await verifyCommitRange(options), options.version, options.redactPaths);
|
|
528
549
|
}
|
|
529
550
|
async function verifyCommitRange(options) {
|
|
530
551
|
const repoPath = resolve(options.repoPath);
|
|
@@ -549,7 +570,7 @@ async function verifyCommitRange(options) {
|
|
|
549
570
|
engineSha: options.engineSha,
|
|
550
571
|
baseOverride: options.baseOverride,
|
|
551
572
|
headOverride: options.headOverride,
|
|
552
|
-
|
|
573
|
+
// Planned with real paths so the selected tests can run; only the receipt is redacted (redactReceipt).
|
|
553
574
|
reportPath: join(temporaryDirectory, "observation.json"),
|
|
554
575
|
selectTestPhases: true,
|
|
555
576
|
});
|
|
@@ -559,12 +580,93 @@ async function verifyCommitRange(options) {
|
|
|
559
580
|
rmSync(temporaryDirectory, { recursive: true, force: true });
|
|
560
581
|
}
|
|
561
582
|
}
|
|
583
|
+
/**
|
|
584
|
+
* Under --redact-paths the analysis plans with real paths, so the selected tests can run, and the receipt
|
|
585
|
+
* carries digests instead (the same sha256-12 as the observation report): the selected tests and their
|
|
586
|
+
* reasons, and those paths wherever the command and reason text name them. The text also names the files
|
|
587
|
+
* the snapshot lists (a file the run changed); `stamped` digests the lists themselves (redactSnapshot).
|
|
588
|
+
*/
|
|
589
|
+
function redactReceipt(report, result, repoPath) {
|
|
590
|
+
const digest = (path) => redactPath(path, (input) => createHash("sha256").update(input).digest("hex"));
|
|
591
|
+
const snapshot = report.snapshot;
|
|
592
|
+
const known = [...new Set([
|
|
593
|
+
...(result?.selectedTests ?? []), ...(result?.testsOutsideFullSuite ?? []), ...(result?.changedFiles ?? []),
|
|
594
|
+
...(snapshot.written_during_verification ?? []), ...(snapshot.changed_during_verification ?? []).map((change) => change.path),
|
|
595
|
+
...(snapshot.line_ending_only_changes ?? []),
|
|
596
|
+
])].filter((path) => path.length > 0);
|
|
597
|
+
// A command names a path as written, or as the `node --test` glob that matches only it, either one
|
|
598
|
+
// shell-escaped when it holds glob characters: `d[1].test.js` runs as "d@([[])1@([]]).test.js".
|
|
599
|
+
const shellForm = (text) => commandSpecToString({ executable: "", args: [text] }).slice(1);
|
|
600
|
+
const forms = known.flatMap((path) => {
|
|
601
|
+
const glob = nodeTestGlobForPath(path);
|
|
602
|
+
return [...new Set([path, shellForm(path), ...(glob ? [glob, shellForm(glob)] : [])])].map((form) => [form, digest(path)]);
|
|
603
|
+
});
|
|
604
|
+
// The outside-suite reason names the separate project's directory, which is no file the run knows.
|
|
605
|
+
const outside = result?.testsOutsideFullSuite ?? [];
|
|
606
|
+
const projectReason = outside.length ? separateProjectReason(repoPath, outside) : undefined;
|
|
607
|
+
if (projectReason)
|
|
608
|
+
forms.push([projectReason, separateProjectReason(repoPath, outside, digest)]);
|
|
609
|
+
forms.sort((left, right) => right[0].length - left[0].length);
|
|
610
|
+
const scrub = (text) => forms.reduce((current, [form, hidden]) => current.split(form).join(hidden), text);
|
|
611
|
+
return {
|
|
612
|
+
...report,
|
|
613
|
+
reason: scrub(report.reason),
|
|
614
|
+
required_actions: report.required_actions.map(scrub),
|
|
615
|
+
...(report.selected_tests ? { selected_tests: report.selected_tests.map(digest) } : {}),
|
|
616
|
+
...(report.selection_reasons ? {
|
|
617
|
+
selection_reasons: Object.fromEntries(Object.entries(report.selection_reasons).map(([test, why]) => [digest(test), { ...why, changed_file: digest(why.changed_file) }])),
|
|
618
|
+
} : {}),
|
|
619
|
+
...(report.command !== undefined ? { command: scrub(report.command) } : {}),
|
|
620
|
+
...(report.commands ? { commands: report.commands.map(scrub) } : {}),
|
|
621
|
+
...(report.first_pass ? { first_pass: { ...report.first_pass, commands: report.first_pass.commands.map(scrub) } } : {}),
|
|
622
|
+
...(report.execution ? { execution: redactMeasurement(report.execution, scrub) } : {}),
|
|
623
|
+
// Gate checks name the changed files in their reasons, and a NARROWED check's command lists them.
|
|
624
|
+
...(report.checks ? { checks: report.checks.map((check) => ({ ...check, command: scrub(check.command), reason: scrub(check.reason) })) } : {}),
|
|
625
|
+
...(report.failure_baseline ? {
|
|
626
|
+
failure_baseline: {
|
|
627
|
+
...report.failure_baseline,
|
|
628
|
+
reason: scrub(report.failure_baseline.reason),
|
|
629
|
+
preexisting: report.failure_baseline.preexisting.map(scrub),
|
|
630
|
+
introduced: report.failure_baseline.introduced.map(scrub),
|
|
631
|
+
},
|
|
632
|
+
} : {}),
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* The snapshot's file lists under --redact-paths: the files the run wrote or changed, and the files that
|
|
637
|
+
* differ only by line endings. Applied to every receipt, including the ones that return before the run.
|
|
638
|
+
*/
|
|
639
|
+
function redactSnapshot(snapshot) {
|
|
640
|
+
const digest = (path) => redactPath(path, (input) => createHash("sha256").update(input).digest("hex"));
|
|
641
|
+
return {
|
|
642
|
+
...snapshot,
|
|
643
|
+
...(snapshot.written_during_verification ? { written_during_verification: snapshot.written_during_verification.map(digest) } : {}),
|
|
644
|
+
...(snapshot.changed_during_verification ? { changed_during_verification: snapshot.changed_during_verification.map((change) => ({ ...change, path: digest(change.path) })) } : {}),
|
|
645
|
+
...(snapshot.line_ending_only_changes ? { line_ending_only_changes: snapshot.line_ending_only_changes.map(digest) } : {}),
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
/** The run's command, output tails, failing test names and per-file results, with the known paths as digests. */
|
|
649
|
+
function redactMeasurement(execution, scrub) {
|
|
650
|
+
return {
|
|
651
|
+
...execution,
|
|
652
|
+
command: scrub(execution.command),
|
|
653
|
+
stdoutTail: scrub(execution.stdoutTail),
|
|
654
|
+
stderrTail: scrub(execution.stderrTail),
|
|
655
|
+
...(execution.failingTests ? { failingTests: execution.failingTests.map(scrub) } : {}),
|
|
656
|
+
...(execution.testResults ? { testResults: execution.testResults.map((result) => ({ ...result, file: scrub(result.file) })) } : {}),
|
|
657
|
+
};
|
|
658
|
+
}
|
|
562
659
|
function checkSummary(checks) {
|
|
563
660
|
const ran = checks.filter((check) => check.status === "passed").length;
|
|
564
661
|
const narrowed = checks.filter((check) => check.status === "passed" && check.decision === "NARROWED").length;
|
|
565
662
|
const skipped = checks.length - ran;
|
|
566
663
|
return `ran ${ran} gate check(s) first${narrowed ? ` (${narrowed} narrowed to changed files)` : ""}${skipped ? `, skipped ${skipped} the change does not affect` : ""}`;
|
|
567
664
|
}
|
|
665
|
+
/** The measurement recorded when the time limit ran out during the gate checks, before the tests started. */
|
|
666
|
+
function checksOutOfTime(command, wallMs) {
|
|
667
|
+
const now = new Date().toISOString();
|
|
668
|
+
return { command, exitCode: null, signal: null, timedOut: true, startedAt: now, finishedAt: now, wallMs: 0, stdoutTail: "", stderrTail: `gate checks used the time limit (${wallMs}ms); tests were not run` };
|
|
669
|
+
}
|
|
568
670
|
export function verificationExitCode(report) {
|
|
569
671
|
if (report.verification === "passed")
|
|
570
672
|
return 0;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
# DiffCI Core
|
|
2
2
|
|
|
3
|
+
[](https://github.com/DiffCI/core/actions/workflows/ci.yml)
|
|
4
|
+
[](https://scorecard.dev/viewer/?uri=github.com/DiffCI/core)
|
|
5
|
+
[](https://www.bestpractices.dev/projects/16835)
|
|
6
|
+
[](https://www.npmjs.com/package/@diffci.com/diffci#provenance)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
|
|
3
9
|
[](https://www.npmjs.com/package/@diffci.com/diffci)
|
|
4
10
|
[](https://github.com/marketplace/actions/diffci-change-impact)
|
|
5
|
-
[](https://gitlab.com/explore/catalog/diffci/diffci)
|
|
12
|
+
[](https://github.com/sponsors/DiffCI)
|
|
7
13
|
|
|
8
|
-
**Verification for AI coding agents.** DiffCI tells Claude Code, Codex, Cursor (or you) which tests and checks a change affects, runs them before the push instead of letting them fail at the full CI gate afterwards, and leaves a receipt of what ran and what was skipped. MIT licensed, runs locally,
|
|
14
|
+
**Verification for AI coding agents.** DiffCI tells Claude Code, Codex, Cursor (or you) which tests and checks a change affects, runs them before the push instead of letting them fail at the full CI gate afterwards, and leaves a receipt of what ran and what was skipped. MIT licensed, runs locally, never uploads your code or reports unless you configure it (it does count runs by default: [usage counting](docs/telemetry.md)), and falls back to the full suite whenever the evidence is incomplete.
|
|
9
15
|
|
|
10
16
|
```sh
|
|
11
17
|
npx "@diffci.com/diffci@latest" check
|
|
@@ -21,7 +27,7 @@ If DiffCI saves you CI time, a ⭐ helps others find it.
|
|
|
21
27
|
|
|
22
28
|
```yaml
|
|
23
29
|
- uses: actions/checkout@v7
|
|
24
|
-
- uses: DiffCI/core@v0.3.
|
|
30
|
+
- uses: DiffCI/core@v0.3.54
|
|
25
31
|
```
|
|
26
32
|
|
|
27
33
|
Add `with: comment: "true"` (and `pull-requests: write` on the job) and the same answer appears on the pull request itself, updated in place on each push:
|
|
@@ -56,7 +62,8 @@ This repository contains DiffCI's MCP server. It is implemented in
|
|
|
56
62
|
and published as the `diffci-mcp` binary of `@diffci.com/diffci`: a local
|
|
57
63
|
stdio server speaking JSON-RPC 2.0 (`initialize`, `tools/list`, `tools/call`)
|
|
58
64
|
that runs against the checkout it is pointed at. It needs no account and sends
|
|
59
|
-
|
|
65
|
+
no code or reports; like the CLI, it counts runs by default
|
|
66
|
+
([usage counting](docs/telemetry.md)).
|
|
60
67
|
|
|
61
68
|
```sh
|
|
62
69
|
npx -y -p @diffci.com/diffci@latest diffci-mcp
|
|
@@ -142,7 +149,7 @@ The [v0.3.10 corresponding source](https://github.com/DiffCI/core/tree/4c76be14c
|
|
|
142
149
|
remains publicly available at tagged Core commit `4c76be14` (`cli-v0.3.10-source`)
|
|
143
150
|
while distribution migrates to the Core-native CLI package.
|
|
144
151
|
|
|
145
|
-
`diffci check` compares full and selected runtime when safe to measure, writes reports outside the checkout, and
|
|
152
|
+
`diffci check` compares full and selected runtime when safe to measure, writes reports outside the checkout, and uploads no report by default; it does send a usage count ([usage counting](docs/telemetry.md)). Test commands can generate files; keep required CI authoritative.
|
|
146
153
|
|
|
147
154
|
**Measured example:** one controlled Cal.com sandbox replay measured **44.2% net reduction** in install + pretest + test runtime including analysis overhead. This is a job-equivalent comparison, not production savings or a forecast for your repository. [Method and limitations](https://diffci.com/case-studies/calcom).
|
|
148
155
|
|
|
@@ -275,15 +282,15 @@ Most open work is teaching DiffCI to narrow changes it currently treats as "run
|
|
|
275
282
|
|
|
276
283
|
Thank you to everyone who has improved DiffCI:
|
|
277
284
|
|
|
278
|
-
- <a href="https://github.com/KingEmma7"><img src="https://github.com/KingEmma7.png?size=80" width="40" height="40" alt="@KingEmma7"></a> **[Emmanuel Mawulolo Tagbor](https://github.com/KingEmma7)**: [`diffci check-plan`](docs/using-diffci.md#compare-a-plan-with-a-full-suite-junit-report) for comparing a saved plan with full-suite JUnit results ([#74](https://github.com/DiffCI/core/pull/74)), Yarn Classic lockfile narrowing ([#63](https://github.com/DiffCI/core/pull/63)), and follow-ups ([#67](https://github.com/DiffCI/core/pull/67), [#70](https://github.com/DiffCI/core/pull/70)).
|
|
279
|
-
- <a href="https://github.com/FredApps"><img src="https://github.com/FredApps.png?size=80" width="40" height="40" alt="@FredApps"></a> **[@FredApps](https://github.com/FredApps)**, **[Area maintainer: Rust](CONTRIBUTING.md#contributor-tiers)**: the [Rust (Cargo) adapter](https://github.com/DiffCI/core/issues/62), from Cargo package and test-target mapping ([#91](https://github.com/DiffCI/core/pull/91)) through crate-dependency selection ([#92](https://github.com/DiffCI/core/pull/92)), conservative `cargo test` commands ([#93](https://github.com/DiffCI/core/pull/93)), registration inside the release boundary ([#94](https://github.com/DiffCI/core/pull/94)) and a pinned public replay on hosted CI ([#95](https://github.com/DiffCI/core/pull/95)), and five safety fixes for runtime module dependencies, Maven module resources, runner suites, deleted assets and Go runtime inputs ([#32](https://github.com/DiffCI/core/pull/32)–[#36](https://github.com/DiffCI/core/pull/36)).
|
|
285
|
+
- <a href="https://github.com/KingEmma7"><img src="https://github.com/KingEmma7.png?size=80" width="40" height="40" alt="@KingEmma7"></a> **[Emmanuel Mawulolo Tagbor](https://github.com/KingEmma7)**, **[Regular contributor](CONTRIBUTING.md#contributor-tiers)**: [`diffci check-plan`](docs/using-diffci.md#compare-a-plan-with-a-full-suite-junit-report) for comparing a saved plan with full-suite JUnit results ([#74](https://github.com/DiffCI/core/pull/74)), Yarn Classic lockfile narrowing ([#63](https://github.com/DiffCI/core/pull/63)), and follow-ups ([#67](https://github.com/DiffCI/core/pull/67), [#70](https://github.com/DiffCI/core/pull/70)).
|
|
286
|
+
- <a href="https://github.com/FredApps"><img src="https://github.com/FredApps.png?size=80" width="40" height="40" alt="@FredApps"></a> **[@FredApps](https://github.com/FredApps)**, **[Area maintainer: Rust](CONTRIBUTING.md#contributor-tiers)**: the [Rust (Cargo) adapter](https://github.com/DiffCI/core/issues/62), from Cargo package and test-target mapping ([#91](https://github.com/DiffCI/core/pull/91)) through crate-dependency selection ([#92](https://github.com/DiffCI/core/pull/92)), conservative `cargo test` commands ([#93](https://github.com/DiffCI/core/pull/93)), registration inside the release boundary ([#94](https://github.com/DiffCI/core/pull/94)) and a pinned public replay on hosted CI ([#95](https://github.com/DiffCI/core/pull/95)), and five safety fixes for runtime module dependencies, Maven module resources, runner suites, deleted assets and Go runtime inputs ([#32](https://github.com/DiffCI/core/pull/32)–[#36](https://github.com/DiffCI/core/pull/36)); match the verify usage line that lists --staged and --paths ([#203](https://github.com/DiffCI/core/pull/203)); list npm run agent:check with the local checks in CONTRIBUTING ([#289](https://github.com/DiffCI/core/pull/289)); say Rust is supported experimentally in the roadmap ([#291](https://github.com/DiffCI/core/pull/291)); retry removing Cargo-built fixtures on Windows ([#235](https://github.com/DiffCI/core/pull/235)); assert the interpreter the analysis recorded, not a second probe ([#310](https://github.com/DiffCI/core/pull/310)); build dist-client once instead of in every test file ([#202](https://github.com/DiffCI/core/pull/202)); find the npm-cli.js npm runs, not one under its global prefix ([#240](https://github.com/DiffCI/core/pull/240)); drop the dead --share-usage flag from the help ([#312](https://github.com/DiffCI/core/pull/312)); expand matrix include the way GitHub does ([#165](https://github.com/DiffCI/core/pull/165)); compare if: strings ignoring case, as GitHub does ([#170](https://github.com/DiffCI/core/pull/170)); an empty or comment-only workflow file no longer crashes diffci plan ([#171](https://github.com/DiffCI/core/pull/171)); parse numstat -z renames so renamed files keep isBinary ([#176](https://github.com/DiffCI/core/pull/176)); compile globs character by character so regex metacharacters stay literal ([#179](https://github.com/DiffCI/core/pull/179)); split run lines into argv the way sh would ([#181](https://github.com/DiffCI/core/pull/181)); read GitHub Actions path filters from the workflow's on: triggers ([#182](https://github.com/DiffCI/core/pull/182)); plan a purpose from a job that runs its step ([#185](https://github.com/DiffCI/core/pull/185)); treat Azure Pipelines and other CI providers' pipeline files as CI config ([#186](https://github.com/DiffCI/core/pull/186)); only an ancestor script makes a cycle ([#188](https://github.com/DiffCI/core/pull/188)); match task input patterns as path globs ([#174](https://github.com/DiffCI/core/pull/174)); read template text after a substitution in script checks ([#219](https://github.com/DiffCI/core/pull/219)); treat a change to an extended tsconfig base as global ([#237](https://github.com/DiffCI/core/pull/237)); lint changed files of types the ESLint config adds ([#242](https://github.com/DiffCI/core/pull/242)); check double-quoted expansion in linear time ([#302](https://github.com/DiffCI/core/pull/302)); resolve imports against a test package's basedir ([#205](https://github.com/DiffCI/core/pull/205)); follow pytest plugins that addopts loads with -p ([#207](https://github.com/DiffCI/core/pull/207)); expand wildcards in pytest testpaths ([#209](https://github.com/DiffCI/core/pull/209)); recognise Failsafe's IT* and *ITCase test names ([#211](https://github.com/DiffCI/core/pull/211)); ignore XML comments when reading a POM ([#213](https://github.com/DiffCI/core/pull/213)); ignore go.mod fixtures under testdata, _ and . directories ([#215](https://github.com/DiffCI/core/pull/215)); keep +, $ and ^ literal in globs, and match everything with ** ([#249](https://github.com/DiffCI/core/pull/249)); resolve a leading <rootDir> in testPathIgnorePatterns ([#253](https://github.com/DiffCI/core/pull/253)); install with --mode=skip-build on Yarn 2 and later ([#200](https://github.com/DiffCI/core/pull/200)); coverage map records files a test reads by relative path ([#201](https://github.com/DiffCI/core/pull/201)); turn the shared graph cache off when its secret is too short ([#264](https://github.com/DiffCI/core/pull/264)); answer ping with an empty result ([#295](https://github.com/DiffCI/core/pull/295)); list both paths of a renamed file in changed_files ([#299](https://github.com/DiffCI/core/pull/299)); replace a local action-v tag left by a rejected push on rerun ([#280](https://github.com/DiffCI/core/pull/280)); do not persist write-scoped checkout tokens in publish and merge-gate ([#282](https://github.com/DiffCI/core/pull/282)); count observe runs as the GitHub Action surface ([#285](https://github.com/DiffCI/core/pull/285)); say usage counting is on where the docs said DiffCI sends nothing ([#287](https://github.com/DiffCI/core/pull/287)); count Azure DevOps task runs as surface azure-devops-task ([#307](https://github.com/DiffCI/core/pull/307)); resolve Vue paths aliases against the declaring tsconfig without baseUrl ([#268](https://github.com/DiffCI/core/pull/268)); link the implementation next to a resolved declaration file ([#270](https://github.com/DiffCI/core/pull/270)); name the adapter runner when a repository has no test files ([#217](https://github.com/DiffCI/core/pull/217)); fall back when an npm lockfile bump meets undeclared imports ([#246](https://github.com/DiffCI/core/pull/246)); translate wildcards inside import.meta.glob brace alternatives ([#274](https://github.com/DiffCI/core/pull/274)); treat modelled Python files as code when resolving readers ([#257](https://github.com/DiffCI/core/pull/257)); let declared inputs and alwaysRunTests select pytest and Maven tests ([#272](https://github.com/DiffCI/core/pull/272)); cover a program the test script runs directly ([#306](https://github.com/DiffCI/core/pull/306)); keep a GitLab subgroup project's full path in the report ([#266](https://github.com/DiffCI/core/pull/266)); name a member NAME@VERSION when a dependency shares its name ([#232](https://github.com/DiffCI/core/pull/232)); keep required-feature targets' packages whole instead of blocking the repository ([#248](https://github.com/DiffCI/core/pull/248)); confine helper scripts and native sources to the crate that owns them ([#250](https://github.com/DiffCI/core/pull/250)); add covering crates instead of refusing when features would differ ([#254](https://github.com/DiffCI/core/pull/254)); pinned anstyle replay narrows real revisions with the same failures ([#258](https://github.com/DiffCI/core/pull/258)); read byte and C raw strings as raw in the input scan ([#228](https://github.com/DiffCI/core/pull/228)); treat quoted keys and inline tables in Cargo config as build settings ([#229](https://github.com/DiffCI/core/pull/229)); scan doctest code in doc comments for inputs ([#230](https://github.com/DiffCI/core/pull/230)); resolve literal paths from the workspace root too ([#231](https://github.com/DiffCI/core/pull/231)); list the Rust planner's no-command reasons and check them ([#233](https://github.com/DiffCI/core/pull/233)); restore the non-Windows branch of the .mcp.json MCP launcher ([#167](https://github.com/DiffCI/core/pull/167)).
|
|
280
287
|
- <a href="https://github.com/shounakjoshi88-a11y"><img src="https://github.com/shounakjoshi88-a11y.png?size=80" width="40" height="40" alt="@shounakjoshi88-a11y"></a> **[Shounak Joshi](https://github.com/shounakjoshi88-a11y)**: Go package-owned `testdata` selection, so a golden-file edit runs the owning package's tests instead of the full suite ([#85](https://github.com/DiffCI/core/pull/85)).
|
|
281
288
|
- <a href="https://github.com/bfs2021"><img src="https://github.com/bfs2021.png?size=80" width="40" height="40" alt="@bfs2021"></a> **[@bfs2021](https://github.com/bfs2021)**: `bun.lock` and `npm-shrinkwrap.json` recognition in the lockfile signal ([#64](https://github.com/DiffCI/core/pull/64)).
|
|
282
|
-
- <a href="https://github.com/sarankumar1325"><img src="https://github.com/sarankumar1325.png?size=80" width="40" height="40" alt="@sarankumar1325"></a> **[@sarankumar1325](https://github.com/sarankumar1325)**: lockfile and config-file signals. One shared lockfile list replaced every hand-written copy in `src/` ([#97](https://github.com/DiffCI/core/issues/97)): reference resolution, impact analysis and the lockfile-free dependency check ([#118](https://github.com/DiffCI/core/pull/118)–[#120](https://github.com/DiffCI/core/pull/120)), config-file discovery and impact classification, where `npm-shrinkwrap.json` is now a config change like every other lockfile ([#151](https://github.com/DiffCI/core/pull/151), [#152](https://github.com/DiffCI/core/pull/152)), the Vue analysis cache ([#107](https://github.com/DiffCI/core/pull/107)), CI inference ([#105](https://github.com/DiffCI/core/pull/105), [#146](https://github.com/DiffCI/core/pull/146)) and both path baselines, which now also fall back on `npm-shrinkwrap.json` ([#147](https://github.com/DiffCI/core/pull/147), [#148](https://github.com/DiffCI/core/pull/148)). A full run when only `babel.config.*` or `.babelrc*` changes ([#108](https://github.com/DiffCI/core/pull/108)) or a package's Jest, Vitest or Babel config changes ([#121](https://github.com/DiffCI/core/pull/121)), where these files used to select no tests. Regression tests for `vite.config`-only changes in Vitest projects ([#109](https://github.com/DiffCI/core/pull/109)) and for a root Vitest config that turns isolation off ([#149](https://github.com/DiffCI/core/pull/149)), and removal of dead config-file patterns with a test for every entry ([#106](https://github.com/DiffCI/core/pull/106)). Go `replace` targets inside the repository modelled under root-module scope instead of forcing the full suite ([#110](https://github.com/DiffCI/core/pull/110)). The [no-runnable-command reasons](docs/using-diffci.md#no-runnable-command), documented with a test that keeps the table complete ([#150](https://github.com/DiffCI/core/pull/150)), and `"\0"` escapes in place of raw NUL bytes, so git and ripgrep can search those source files again ([#145](https://github.com/DiffCI/core/pull/145)); document verify-workflow, pilot-packet, validate-specs and telemetry ([#153](https://github.com/DiffCI/core/pull/153)).
|
|
289
|
+
- <a href="https://github.com/sarankumar1325"><img src="https://github.com/sarankumar1325.png?size=80" width="40" height="40" alt="@sarankumar1325"></a> **[@sarankumar1325](https://github.com/sarankumar1325)**: lockfile and config-file signals. One shared lockfile list replaced every hand-written copy in `src/` ([#97](https://github.com/DiffCI/core/issues/97)): reference resolution, impact analysis and the lockfile-free dependency check ([#118](https://github.com/DiffCI/core/pull/118)–[#120](https://github.com/DiffCI/core/pull/120)), config-file discovery and impact classification, where `npm-shrinkwrap.json` is now a config change like every other lockfile ([#151](https://github.com/DiffCI/core/pull/151), [#152](https://github.com/DiffCI/core/pull/152)), the Vue analysis cache ([#107](https://github.com/DiffCI/core/pull/107)), CI inference ([#105](https://github.com/DiffCI/core/pull/105), [#146](https://github.com/DiffCI/core/pull/146)) and both path baselines, which now also fall back on `npm-shrinkwrap.json` ([#147](https://github.com/DiffCI/core/pull/147), [#148](https://github.com/DiffCI/core/pull/148)). A full run when only `babel.config.*` or `.babelrc*` changes ([#108](https://github.com/DiffCI/core/pull/108)) or a package's Jest, Vitest or Babel config changes ([#121](https://github.com/DiffCI/core/pull/121)), where these files used to select no tests. Regression tests for `vite.config`-only changes in Vitest projects ([#109](https://github.com/DiffCI/core/pull/109)) and for a root Vitest config that turns isolation off ([#149](https://github.com/DiffCI/core/pull/149)), and removal of dead config-file patterns with a test for every entry ([#106](https://github.com/DiffCI/core/pull/106)). Go `replace` targets inside the repository modelled under root-module scope instead of forcing the full suite ([#110](https://github.com/DiffCI/core/pull/110)). The [no-runnable-command reasons](docs/using-diffci.md#no-runnable-command), documented with a test that keeps the table complete ([#150](https://github.com/DiffCI/core/pull/150)), and `"\0"` escapes in place of raw NUL bytes, so git and ripgrep can search those source files again ([#145](https://github.com/DiffCI/core/pull/145)); document verify-workflow, pilot-packet, validate-specs and telemetry ([#153](https://github.com/DiffCI/core/pull/153)); pytest.ini wins even when empty, and read .pytest.ini ([#314](https://github.com/DiffCI/core/pull/314)).
|
|
283
290
|
- <a href="https://github.com/robertwmccarty-caelum"><img src="https://github.com/robertwmccarty-caelum.png?size=80" width="40" height="40" alt="@robertwmccarty-caelum"></a> **[@robertwmccarty-caelum](https://github.com/robertwmccarty-caelum)**: the Vitest reporter/timeout config fixture and its narrowing conditions ([#53](https://github.com/DiffCI/core/issues/53#issuecomment-6514436312), landed in [#65](https://github.com/DiffCI/core/pull/65)).
|
|
284
291
|
- <a href="https://github.com/varshith84"><img src="https://github.com/varshith84.png?size=80" width="40" height="40" alt="@varshith84"></a> **[Varshith Sai Pasupuleti](https://github.com/varshith84)**: tests for transitive Vue selection and full fallback ([#16](https://github.com/DiffCI/core/pull/16)).
|
|
285
292
|
- <a href="https://github.com/aniKet0753"><img src="https://github.com/aniKet0753.png?size=80" width="40" height="40" alt="@aniKet0753"></a> **[@aniKet0753](https://github.com/aniKet0753)**: a `diffci help` command list and `USAGE` text that match the commands the CLI runs, with a test that fails when a command is missing ([#130](https://github.com/DiffCI/core/pull/130)).
|
|
286
|
-
- <a href="https://github.com/tyza66"><img src="https://github.com/tyza66.png?size=80" width="40" height="40" alt="@tyza66"></a> **[@tyza66](https://github.com/tyza66)**: name the tool configuration behind a fallback instead of "Unknown changed file" ([#144](https://github.com/DiffCI/core/pull/144)); name a tsconfig variant as TypeScript configuration instead of unknown ([#155](https://github.com/DiffCI/core/pull/155)).
|
|
293
|
+
- <a href="https://github.com/tyza66"><img src="https://github.com/tyza66.png?size=80" width="40" height="40" alt="@tyza66"></a> **[@tyza66](https://github.com/tyza66)**: name the tool configuration behind a fallback instead of "Unknown changed file" ([#144](https://github.com/DiffCI/core/pull/144)); name a tsconfig variant as TypeScript configuration instead of unknown ([#155](https://github.com/DiffCI/core/pull/155)); fall back for Mocha configuration, and say so ([#156](https://github.com/DiffCI/core/pull/156)).
|
|
287
294
|
|
|
288
295
|
Every merged contribution is credited in the release notes, here, on [diffci.com/contributors](https://diffci.com/contributors), and next to the feature in the docs. The README and website entries are added automatically when a pull request merges. A [contributor tier](CONTRIBUTING.md#contributor-tiers) above Contributor is written after the name, as in **[Area maintainer: Rust](CONTRIBUTING.md#contributor-tiers)**, and diffci.com copies it from here.
|
|
289
296
|
|
|
@@ -42,6 +42,11 @@ export interface ExpressionContext {
|
|
|
42
42
|
}
|
|
43
43
|
/** Resolves one `${{ ... }}` body against the context, structurally. */
|
|
44
44
|
export declare function resolveExpression(expression: string, context: ExpressionContext): Resolution;
|
|
45
|
+
/**
|
|
46
|
+
* Replaces each `${{ body }}` whose body has no `}`, as `/\$\{\{([^}]*)\}\}/g` would, in linear time: the
|
|
47
|
+
* regex rescans to the next `}` from every `${{`, which is quadratic on a line of repeated `${{` (CodeQL alert 12).
|
|
48
|
+
*/
|
|
49
|
+
export declare function replaceExpressions(line: string, replace: (body: string) => string): string;
|
|
45
50
|
export interface RenderedCommand {
|
|
46
51
|
/** The line with every expression substituted as GitHub would substitute it. */
|
|
47
52
|
rendered: string;
|
|
@@ -32,11 +32,33 @@ export function resolveExpression(expression, context) {
|
|
|
32
32
|
const value = context.matrix[property];
|
|
33
33
|
return { expression: trimmed, kind: value === "" ? "DEFINED_EMPTY" : "DEFINED", value };
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Replaces each `${{ body }}` whose body has no `}`, as `/\$\{\{([^}]*)\}\}/g` would, in linear time: the
|
|
37
|
+
* regex rescans to the next `}` from every `${{`, which is quadratic on a line of repeated `${{` (CodeQL alert 12).
|
|
38
|
+
*/
|
|
39
|
+
export function replaceExpressions(line, replace) {
|
|
40
|
+
let out = "";
|
|
41
|
+
let from = 0;
|
|
42
|
+
for (let start = line.indexOf("${{"); start !== -1; start = line.indexOf("${{", from)) {
|
|
43
|
+
const close = line.indexOf("}", start + 3);
|
|
44
|
+
if (close === -1)
|
|
45
|
+
break;
|
|
46
|
+
if (line[close + 1] === "}") {
|
|
47
|
+
out += line.slice(from, start) + replace(line.slice(start + 3, close));
|
|
48
|
+
from = close + 2;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
// Every `${{` before this `}` stops at the same `}`, so none of them can match either.
|
|
52
|
+
out += line.slice(from, close + 1);
|
|
53
|
+
from = close + 1;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return out + line.slice(from);
|
|
57
|
+
}
|
|
36
58
|
/** Substitutes every expression in a line, applying GitHub's coercion at the boundary. */
|
|
37
59
|
export function renderCommand(line, context) {
|
|
38
60
|
const resolutions = [];
|
|
39
|
-
const rendered = line
|
|
61
|
+
const rendered = replaceExpressions(line, (body) => {
|
|
40
62
|
const resolution = resolveExpression(body, context);
|
|
41
63
|
resolutions.push(resolution);
|
|
42
64
|
return resolution.value;
|
|
@@ -45,14 +67,20 @@ export function renderCommand(line, context) {
|
|
|
45
67
|
}
|
|
46
68
|
/** `a == b` / `a != b` where each side is a context lookup or a quoted literal. */
|
|
47
69
|
const COMPARISON = /^(.+?)\s*(==|!=)\s*(.+)$/;
|
|
70
|
+
const MAX_CONDITION_LENGTH = 1000;
|
|
48
71
|
function operandValue(token, context) {
|
|
49
|
-
const trimmed = token.trim()
|
|
72
|
+
const trimmed = unwrapExpression(token.trim()).trim();
|
|
50
73
|
const quoted = /^'([^']*)'$/.exec(trimmed) ?? /^"([^"]*)"$/.exec(trimmed);
|
|
51
74
|
if (quoted)
|
|
52
75
|
return { value: quoted[1] };
|
|
53
76
|
const resolution = resolveExpression(trimmed, context);
|
|
54
77
|
return { value: resolution.value, resolution };
|
|
55
78
|
}
|
|
79
|
+
/** `text` without a leading `${{` and a trailing `}}`; a regex with `\s*` before `}}$` is quadratic on long runs of spaces (CodeQL alert 13). */
|
|
80
|
+
function unwrapExpression(text) {
|
|
81
|
+
const opened = text.startsWith("${{") ? text.slice(3) : text;
|
|
82
|
+
return opened.trimEnd().endsWith("}}") ? opened.trimEnd().slice(0, -2) : opened;
|
|
83
|
+
}
|
|
56
84
|
/**
|
|
57
85
|
* Evaluates a step's `if:` for one matrix instance.
|
|
58
86
|
*
|
|
@@ -62,8 +90,12 @@ function operandValue(token, context) {
|
|
|
62
90
|
* does not run" are different claims and only one of them is safe to act on.
|
|
63
91
|
*/
|
|
64
92
|
export function evaluateCondition(expression, context, evidence) {
|
|
65
|
-
const raw = expression.trim()
|
|
93
|
+
const raw = unwrapExpression(expression.trim()).trim();
|
|
66
94
|
const base = { expression: raw, ...(evidence ? { evidence } : {}) };
|
|
95
|
+
// Real `if:` conditions are short; the comparison regex below is quadratic on long whitespace runs.
|
|
96
|
+
if (raw.length > MAX_CONDITION_LENGTH) {
|
|
97
|
+
return { ...base, result: "UNRESOLVED", reason: `the condition is longer than ${MAX_CONDITION_LENGTH} characters, so it is not modelled`, resolutions: [] };
|
|
98
|
+
}
|
|
67
99
|
if (/^true$/i.test(raw))
|
|
68
100
|
return { ...base, result: "TRUE", resolutions: [] };
|
|
69
101
|
if (/^false$/i.test(raw))
|
|
@@ -89,7 +121,8 @@ export function evaluateCondition(expression, context, evidence) {
|
|
|
89
121
|
resolutions,
|
|
90
122
|
};
|
|
91
123
|
}
|
|
92
|
-
|
|
124
|
+
// GitHub ignores case when comparing strings, so `matrix.os == 'Ubuntu-Latest'` is true for `ubuntu-latest`.
|
|
125
|
+
const equal = left.value.toUpperCase() === right.value.toUpperCase();
|
|
93
126
|
return { ...base, result: (operator === "==" ? equal : !equal) ? "TRUE" : "FALSE", resolutions };
|
|
94
127
|
}
|
|
95
128
|
//# sourceMappingURL=expression.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expression.js","sourceRoot":"","sources":["../../src/ci-inference/expression.ts"],"names":[],"mappings":"AA2CA,mGAAmG;AACnG,MAAM,cAAc,GAAG,wDAAwD,CAAC;AAMhF,wEAAwE;AACxE,MAAM,UAAU,iBAAiB,CAAC,UAAkB,EAAE,OAA0B;IAC9E,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,EAAE,CAAC;IAClC,MAAM,MAAM,GAAG,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO;YACL,UAAU,EAAE,OAAO;YACnB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,wGAAwG;SACjH,CAAC;IACJ,CAAC;IACD,MAAM,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,GAAG,MAAM,CAAC;IACzC,IAAI,WAAW,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO;YACL,UAAU,EAAE,OAAO;YACnB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,SAAS,WAAW,2CAA2C;SACxE,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,CAAC,QAAS,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QACnC,OAAO;YACL,UAAU,EAAE,OAAO;YACnB,IAAI,EAAE,mBAAmB;YACzB,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,+CAA+C,QAAQ,6CAA6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AE,YAAY;YACpB,MAAM,EAAE,qIAAqI;YAC7I,WAAW,EAAE,EAAE;SAChB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAC,GAAG,UAAU,CAAC;IACvD,MAAM,IAAI,GAAG,YAAY,CAAC,SAAU,EAAE,OAAO,CAAC,CAAC;IAC/C,MAAM,KAAK,GAAG,YAAY,CAAC,UAAW,EAAE,OAAO,CAAC,CAAC;IACjD,MAAM,WAAW,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAmB,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;IAExG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAwB,CAAC,EAAE,CAAC;QACjE,OAAO;YACL,GAAG,IAAI;YACP,MAAM,EAAE,YAAY;YACpB,MAAM,EAAE,+BAA+B,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAwB,CAAE,CAAC,MAAM,EAAE;YAC7G,WAAW;SACZ,CAAC;IACJ,CAAC;IAED,6GAA6G;IAC7G,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;IACrE,OAAO,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC;AACnG,CAAC"}
|
|
@@ -85,15 +85,35 @@ function actionName(uses) {
|
|
|
85
85
|
// Purpose now comes from `purpose.ts`, derived from the executable position or from a script body the
|
|
86
86
|
// repository declares. These are REMOVED rather than left unused: dead code that still encodes the old
|
|
87
87
|
// authority is one careless call away from reinstating it, and a test asserts the pattern is absent.
|
|
88
|
-
/**
|
|
88
|
+
/**
|
|
89
|
+
* Split a CI run line into argv the way `sh` would, without a shell. Refuses anything with shell control
|
|
90
|
+
* characters, and any word whose meaning `sh` would change that this splitter does not reproduce: a
|
|
91
|
+
* backslash (an escape, or a line continuation that joins the next `run:` line), an unbalanced quote, a
|
|
92
|
+
* comment, an unquoted glob or `~` that `sh` would expand, or a leading `NAME=value` environment
|
|
93
|
+
* assignment. Plain single and double quotes are removed, as `sh` removes them.
|
|
94
|
+
*/
|
|
89
95
|
function argvOf(line) {
|
|
96
|
+
const refuse = (why) => ({ argv: [], unresolved: { what: line, why } });
|
|
90
97
|
if (/[|&;<>$`(){}]/.test(line)) {
|
|
91
|
-
return
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
98
|
+
return refuse("contains shell control characters; running it would need a shell, which this engine does not model");
|
|
99
|
+
}
|
|
100
|
+
if (line.includes("\\"))
|
|
101
|
+
return refuse("contains a backslash escape or line continuation, which this engine does not model");
|
|
102
|
+
const argv = [];
|
|
103
|
+
for (const match of line.matchAll(/(?:[^\s"']+|"[^"]*"|'[^']*')+|["']/g)) {
|
|
104
|
+
const word = match[0];
|
|
105
|
+
if (word === '"' || word === "'")
|
|
106
|
+
return refuse("contains an unbalanced quote");
|
|
107
|
+
const unquoted = word.replace(/"[^"]*"|'[^']*'/g, "");
|
|
108
|
+
if (unquoted.startsWith("#"))
|
|
109
|
+
return refuse("contains a shell comment, which this engine does not model");
|
|
110
|
+
if (/[*?[]/.test(unquoted) || unquoted.startsWith("~"))
|
|
111
|
+
return refuse("contains an unquoted glob or `~` that the shell would expand, which this engine does not model");
|
|
112
|
+
if (argv.length === 0 && /^[A-Za-z_][A-Za-z0-9_]*=/.test(word))
|
|
113
|
+
return refuse("starts with an environment assignment, which this engine does not model as argv");
|
|
114
|
+
argv.push(word.replace(/"([^"]*)"|'([^']*)'/g, (_all, double, single) => double ?? single));
|
|
95
115
|
}
|
|
96
|
-
return { argv
|
|
116
|
+
return { argv };
|
|
97
117
|
}
|
|
98
118
|
/**
|
|
99
119
|
* Builds the execution graph for one repository — every job, not one.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infer.js","sourceRoot":"","sources":["../../src/ci-inference/infer.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAoB,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAmB,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAE,YAAY,EAAyB,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAsB,MAAM,sBAAsB,CAAC;AAC3G,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AACzK,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAIzF,+EAA+E;AAC/E,MAAM,eAAe,GAAG,qGAAqG,CAAC;AAE9H;;;;;;GAMG;AACH;;;;;;;GAOG;AACH,MAAM,eAAe,GACnB,yJAAyJ,CAAC;AAE5J,MAAM,cAAc,GAAG,mEAAmE,CAAC;AAE3F;;;;;;;;;;;;GAYG;AACH,MAAM,sBAAsB,GAA2B;IACrD,mBAAmB,EAAE,SAAS;CAC/B,CAAC;AAEF;uCACuC;AACvC,SAAS,UAAU,CAAC,IAAY;IAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC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