Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 1 addition & 30 deletions e2e/perstack-cli/options.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* - --provider, --model
* - --max-retries, --timeout
* - --job-id, --env-path, --verbose
* - --filter (multi-type + invalid type validation)
*
* TOML: e2e/experts/global-runtime.toml
*/
Expand Down Expand Up @@ -161,36 +162,6 @@ describe.concurrent("CLI Options", () => {
})

describe.concurrent("CLI Options - Filter", () => {
/** Verifies --filter option with single type.
* Uses startRun (emitted before LLM calls) to avoid flakiness from LLM
* errors that produce stopRunByError instead of completeRun.
*/
it(
"should filter events to only startRun",
async () => {
const cmdResult = await runCli(
[
"run",
"--config",
GLOBAL_RUNTIME_CONFIG,
"--filter",
"startRun",
"e2e-global-runtime",
"Say hello",
],
{ timeout: LLM_TIMEOUT },
)
const result = withEventParsing(cmdResult)
expect(result.exitCode).toBe(0)

// All events should be startRun
const eventTypes = result.events.map((e) => e.type)
expect(eventTypes.every((t) => t === "startRun")).toBe(true)
expect(eventTypes.length).toBeGreaterThan(0)
},
LLM_TIMEOUT,
)

/** Verifies --filter option with multiple types */
it(
"should filter events to completeRun and initializeRuntime",
Expand Down