Skip to content

Commit cd50767

Browse files
authored
fix(qa): restore Buzz canary selection (#124200)
* oc-2f4: fix Buzz QA scenario selection * oc-2f4: align canary catalog contract
1 parent 96a7b25 commit cd50767

3 files changed

Lines changed: 22 additions & 3 deletions

File tree

‎extensions/qa-lab/src/live-transports/shared/scenario-selection.test.ts‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,23 @@ describe("live transport QA scenario selection", () => {
156156
},
157157
);
158158

159+
it.each([
160+
{
161+
channelId: "buzz",
162+
scenarioIds: ["channel-canary", "channel-mention-gating"],
163+
},
164+
{ channelId: "msteams", scenarioIds: ["channel-canary"] },
165+
])("keeps the $channelId plugin defaults eligible", ({ channelId, scenarioIds }) => {
166+
expect(
167+
resolveCatalogLiveTransportQaScenarioIds({
168+
...MOCK_LANE,
169+
channelId,
170+
channelDriver: "live",
171+
scenarioIds,
172+
}),
173+
).toEqual(scenarioIds);
174+
});
175+
159176
it("rejects the shared channel canary on unsupported Discord drivers", () => {
160177
expect(() =>
161178
resolveCatalogLiveTransportQaScenarioIds({
@@ -165,7 +182,7 @@ describe("live transport QA scenario selection", () => {
165182
scenarioIds: ["channel-canary"],
166183
}),
167184
).toThrow(
168-
"selected QA scenario(s) do not match the current QA lane: channel-canary (channel=qa-channel|telegram)",
185+
"selected QA scenario(s) do not match the current QA lane: channel-canary (channel=qa-channel|telegram|buzz|msteams)",
169186
);
170187
});
171188
});

‎extensions/qa-lab/src/scenario-catalog-channels.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ describe("qa scenario catalog channel contracts", () => {
230230
expect(scenario.gatewayConfigPatch).not.toHaveProperty("channels.telegram.groups");
231231
});
232232

233-
it("keeps the shared channel canary eligible for QA Channel and Telegram", () => {
233+
it("keeps the shared channel canary eligible for its supported channels", () => {
234234
const scenario = requireFlowScenario(readQaScenarioById("channel-canary"));
235235

236-
expect(scenario.execution.channels).toEqual(["qa-channel", "telegram"]);
236+
expect(scenario.execution.channels).toEqual(["qa-channel", "telegram", "buzz", "msteams"]);
237237
});
238238

239239
it("keeps transcript-role delivery on the Crabline driver", () => {

‎qa/scenarios/channels/channel-canary.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ scenario:
2424
channels:
2525
- qa-channel
2626
- telegram
27+
- buzz
28+
- msteams
2729
summary: Run the shared channel canary through QA Channel, Crabline, or a live adapter.
2830
transportPolicy:
2931
requireGroupMention: true

0 commit comments

Comments
 (0)