mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 09:39:25 +00:00
fix(release): apply 2026.9.8 live shard waivers (#163621)
This commit is contained in:
parent
b2c302324f
commit
bfeca6756c
2 changed files with 48 additions and 1 deletions
|
|
@ -317,6 +317,39 @@ function isMoonshotLiveTest(file: string) {
|
|||
return file.startsWith("extensions/moonshot/");
|
||||
}
|
||||
|
||||
// The frozen 2026.9.8 candidate retains three intentionally skipped single-case
|
||||
// live files. The trusted tooling checkout owns shard selection, so omit those
|
||||
// candidate files here rather than weakening the per-file passing-assertion guard.
|
||||
const RELEASE_2026_9_8_WAIVED_LIVE_FILES = new Set([
|
||||
"src/gateway/gateway-progress-refresh.live.test.ts",
|
||||
"src/agents/embedded-agent-runner.responses-output-limit.live.test.ts",
|
||||
"test/gateway-subagent-restart.live.test.ts",
|
||||
]);
|
||||
const RELEASE_WAIVED_LIVE_FILES = new Map<string, ReadonlySet<string>>([
|
||||
["2026.9.8", RELEASE_2026_9_8_WAIVED_LIVE_FILES],
|
||||
]);
|
||||
|
||||
export function withoutReleaseWaivedLiveFiles(
|
||||
files: string[],
|
||||
candidateVersion: string | undefined,
|
||||
) {
|
||||
const waived = candidateVersion ? RELEASE_WAIVED_LIVE_FILES.get(candidateVersion) : undefined;
|
||||
return waived ? files.filter((file) => !waived.has(file)) : files;
|
||||
}
|
||||
|
||||
function readCandidateVersion(repoRoot = process.cwd()) {
|
||||
try {
|
||||
const manifest: unknown = JSON.parse(
|
||||
fs.readFileSync(path.join(repoRoot, "package.json"), "utf8"),
|
||||
);
|
||||
return isUnknownRecord(manifest) && typeof manifest.version === "string"
|
||||
? manifest.version
|
||||
: undefined;
|
||||
} catch {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Selects the live test files belonging to one shard name.
|
||||
*/
|
||||
|
|
@ -781,7 +814,7 @@ if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.me
|
|||
|
||||
let files;
|
||||
try {
|
||||
files = selectLiveShardFiles(shard);
|
||||
files = withoutReleaseWaivedLiveFiles(selectLiveShardFiles(shard), readCandidateVersion());
|
||||
} catch (error) {
|
||||
console.error(error instanceof Error ? error.message : String(error));
|
||||
usage();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue