Files
openclaw/scripts/lib/ci-changed-node-test-plan.d.mts
Peter Steinberger f3a2f9f8a7 perf(ci): gate prompt-snapshot regeneration on the generator's blast radius (#109083)
check-prompt-snapshots costs 200-310s per PR regenerating real prompt
stacks, but snapshots only change when the generator's import graph or
its fixtures do. The manifest now computes that reach (same pattern as
QA smoke gating: always-run surface regex incl. the codex extension
whose test API loads via a dynamic module id, plus import-graph walk
from the snapshot helper; deletions and null diffs fail safe to
running). Unaffected PR diffs skip the lane with an explicit log line;
pushes and dispatches always run.
2026-07-16 08:06:06 -07:00

23 lines
583 B
TypeScript

export type ChangedNodeTestShard = {
checkName: string;
configs: string[];
requiresDist: boolean;
runner: string;
shardName: string;
targets?: string[];
};
export function createChangedNodeTestShards(
changedPaths: string[],
options?: { cwd?: string },
): ChangedNodeTestShard[] | null;
export function hasBuildArtifactAffectingChange(changedPaths: string[]): boolean;
export function hasPromptSnapshotAffectingChange(
changedPaths: string[],
options?: { cwd?: string },
): boolean;
export function hasQaSmokeAffectingChange(changedPaths: string[]): boolean;