mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 19:31:35 +00:00
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.
23 lines
583 B
TypeScript
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;
|