Skip to content

Commit 280a0b7

Browse files
authored
fix(qa): reserve Matrix no-reply cleanup budget (#127280)
* fix(qa): reserve Matrix no-reply cleanup budget * fix(qa): reserve Matrix no-reply deadline headroom * fix(qa): use canonical scenario deadline grace * test(qa): derive flow deadline ownership structurally * test(qa): require one Matrix deadline owner * fix(qa): keep Matrix flow deadlines explicit * fix(qa): restore provider-owned Matrix timeouts * test(qa): pin Matrix provider-owned deadlines * fix(qa): keep Matrix deadline assertion typed * fix(qa): satisfy Matrix catalog lint
1 parent a234d67 commit 280a0b7

4 files changed

Lines changed: 18 additions & 4 deletions

File tree

‎extensions/qa-lab/src/live-transports/matrix/matrix-scenario-flows.test.ts‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ describe("Matrix QA Lab scenario flows", () => {
9393
}
9494
expect(scenario.execution.channel, scenario.id).toBe("matrix");
9595
expect(scenario.execution.retryCount, scenario.id).toBe(0);
96-
expect(scenario.execution.timeoutMs, scenario.id).toBeGreaterThan(0);
9796
expect(scenario.execution.flow?.steps.at(-1)?.detailsExpr, scenario.id).toBe(
9897
"result.details ?? (result.artifacts ? JSON.stringify(result.artifacts, null, 2) : undefined)",
9998
);
@@ -118,6 +117,24 @@ describe("Matrix QA Lab scenario flows", () => {
118117
}
119118
});
120119

120+
it("leaves whole-flow deadlines unset for provider-budgeted scenarios", () => {
121+
const providerBudgetedScenarioIds = new Set([
122+
"matrix-e2ee-thread-follow-up",
123+
"matrix-inbound-edit-no-duplicate-trigger",
124+
"matrix-thread-nested-reply-shape",
125+
]);
126+
const providerBudgetedScenarios = scenarios.filter((scenario) =>
127+
providerBudgetedScenarioIds.has(scenario.id),
128+
);
129+
130+
expect(providerBudgetedScenarios.map((scenario) => scenario.id).toSorted()).toEqual(
131+
[...providerBudgetedScenarioIds].toSorted(),
132+
);
133+
for (const scenario of providerBudgetedScenarios) {
134+
expect(scenario.execution, scenario.id).not.toHaveProperty("timeoutMs");
135+
}
136+
});
137+
121138
it("applies the portable thread override through Matrix flow preparation", () => {
122139
expect(readQaScenarioById("thread-reply-override").execution).toMatchObject({
123140
kind: "flow",

‎qa/scenarios/channels/matrix-e2ee-thread-follow-up.yaml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ scenario:
88
execution:
99
kind: flow
1010
channel: matrix
11-
timeoutMs: 75000
1211
retryCount: 0
1312
config:
1413
matrixConfigOverrides:

‎qa/scenarios/channels/matrix-inbound-edit-no-duplicate-trigger.yaml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ scenario:
88
execution:
99
kind: flow
1010
channel: matrix
11-
timeoutMs: 45000
1211
retryCount: 0
1312

1413
flow:

‎qa/scenarios/channels/matrix-thread-nested-reply-shape.yaml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ scenario:
88
execution:
99
kind: flow
1010
channel: matrix
11-
timeoutMs: 60000
1211
retryCount: 0
1312

1413
flow:

0 commit comments

Comments
 (0)