fix(test): preserve repeat counts in recovery stress runs (#148810)

This commit is contained in:
Peter Steinberger 2026-09-14 23:01:41 -07:00 • committed by GitHub
parent 5f69fc76c8
commit bc7e0f115e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

View file

@ -27,6 +27,7 @@ const VITEST_OPTIONS_WITH_VALUE = new Set([
"--project",
"--reporter",
"--reporters",
"--repeats",
"--retry",
"--root",
"-r",

View file

@ -1,3 +1,4 @@
import { randomUUID } from "node:crypto";
import { createAssistantMessageEventStream, type Message } from "openclaw/plugin-sdk/llm";
import { Type } from "typebox";
import { afterEach, beforeEach, describe, expect, it, onTestFinished, vi } from "vitest";
@ -319,7 +320,7 @@ describe("runEmbeddedAttemptExecutionPhase", () => {
model: testModel,
modelId: testModel.id,
provider: testModel.provider,
sessionId: `async-fragment-${stopReason}-${cacheRead}-${completion}`,
sessionId: randomUUID(),
});
Object.assign(runtime, {
anthropicPayloadLogger: undefined,

View file

@ -753,6 +753,10 @@ registerHooks({resolve(specifier, context, nextResolve) {
["run", "test/scripts/run-vitest.test.ts", "-t", "src"],
["test/scripts/run-vitest.test.ts", "--", "-t", "src"],
],
[
["run", "test/scripts/run-vitest.test.ts", "--repeats", "19"],
["test/scripts/run-vitest.test.ts", "--", "--repeats", "19"],
],
])("keeps option value %j out of project target classification", (argv, expected) => {
expect(resolveTestProjectsDelegationArgs(argv)).toEqual(expected);
});