Skip to content

Commit 37b1a71

Browse files
authored
fix(release): unblock beta validation workflows (#116708)
* fix(release): repair beta validation workflow state * fix(qa): dispatch yielded fanout runs without task tracking * fix(test): honor GPT-Live shard opt-in
1 parent 640b4ac commit 37b1a71

8 files changed

Lines changed: 83 additions & 4 deletions

File tree

‎.github/workflows/npm-telegram-beta-e2e.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ jobs:
352352
}
353353
attempt_started_at="$(jq -er '.run_started_at | fromdateiso8601' <<< "$attempt_json")"
354354
if [[ "$ARTIFACT_RUN_ID" == "$GITHUB_RUN_ID" ]]; then
355-
jq -e '(.status == "queued" or .status == "in_progress") and .conclusion == null' \
355+
jq -e '(.status == "pending" or .status == "queued" or .status == "in_progress") and .conclusion == null' \
356356
<<< "$attempt_json" >/dev/null || {
357357
echo "Current-run Package Telegram artifact is not from the active workflow attempt." >&2
358358
exit 1

‎.github/workflows/openclaw-release-checks.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,6 +1665,10 @@ jobs:
16651665
expected_sha: ${{ needs.resolve_target.outputs.revision }}
16661666
run_matrix: true
16671667
fail_fast: ${{ fromJSON(needs.resolve_target.outputs.fail_fast) }}
1668+
secrets:
1669+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
1670+
OPENCLAW_QA_CONVEX_SITE_URL: ${{ secrets.OPENCLAW_QA_CONVEX_SITE_URL }}
1671+
OPENCLAW_QA_CONVEX_SECRET_CI: ${{ secrets.OPENCLAW_QA_CONVEX_SECRET_CI }}
16681672

16691673
qa_live_buzz_release_checks:
16701674
name: Run QA Lab live Buzz lane
@@ -1679,6 +1683,10 @@ jobs:
16791683
expected_sha: ${{ needs.resolve_target.outputs.revision }}
16801684
run_buzz: true
16811685
buzz_scenario: channel-canary,channel-mention-gating
1686+
secrets:
1687+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
1688+
OPENCLAW_QA_CONVEX_SITE_URL: ${{ secrets.OPENCLAW_QA_CONVEX_SITE_URL }}
1689+
OPENCLAW_QA_CONVEX_SECRET_CI: ${{ secrets.OPENCLAW_QA_CONVEX_SECRET_CI }}
16821690

16831691
# The dispatched child owns Telegram evidence/status artifacts; this blocking job
16841692
# carries its exact conclusion into the parent summary without copying secrets or artifacts.

‎.github/workflows/qa-live-transports-convex.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ on:
5858
required: false
5959
default: false
6060
type: boolean
61+
secrets:
62+
OPENAI_API_KEY:
63+
description: OpenAI API key used by live QA scenarios
64+
required: false
65+
OPENCLAW_QA_CONVEX_SITE_URL:
66+
description: Convex credential broker URL
67+
required: false
68+
OPENCLAW_QA_CONVEX_SECRET_CI:
69+
description: Convex CI credential
70+
required: false
6171
workflow_dispatch:
6272
inputs:
6373
ref:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ describe("qa scenario catalog channel contracts", () => {
7979

8080
expect(flow).toContain('"call":"startAgentRun"');
8181
expect(flow).not.toContain('"call":"runAgentPrompt"');
82+
expect(flow).toContain('"taskTracking":false');
8283
expect(flow).toContain('"saveAs":"parentOutbound"');
8384
expect(flow).toContain("messages.slice(parentOutboundStartIndex)");
8485
expect(flow).not.toContain("waitForAgentHistoryReply");

‎qa/scenarios/agents/subagent-fanout-synthesis.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ flow:
105105
ref: sessionKey
106106
message:
107107
ref: prompt
108+
taskTracking: false
108109
timeoutMs:
109110
expr: liveTurnTimeoutMs(env, 30000)
110111
- call: waitForCondition

‎scripts/test-live-shard.mjs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ const OPTIONAL_LIVE_SHARD_FILE_ENVS = new Map([
2929
["src/agents/subagent-announce.live.test.ts", ["OPENCLAW_LIVE_SUBAGENT_E2E"]],
3030
["src/agents/tools/image-tool.ollama.live.test.ts", ["OPENCLAW_LIVE_OLLAMA_IMAGE"]],
3131
["src/agents/tools/image-tool.providers.live.test.ts", ["OPENCLAW_LIVE_IMAGE_TOOL_TEST"]],
32+
[
33+
"extensions/openai/realtime-quicksilver-gateway-bridge.live.test.ts",
34+
["OPENCLAW_LIVE_GPT_LIVE"],
35+
],
36+
["extensions/openai/realtime-quicksilver.live.test.ts", ["OPENCLAW_LIVE_GPT_LIVE"]],
3237
["src/skills/workshop/experience-review.live.test.ts", ["OPENCLAW_LIVE_SKILL_EXPERIENCE_REVIEW"]],
3338
["src/system-agent/rescue-channel.live.test.ts", ["OPENCLAW_LIVE_SYSTEM_AGENT_RESCUE_CHANNEL"]],
3439
["src/gateway/android-node.capabilities.live.test.ts", ["OPENCLAW_LIVE_ANDROID_NODE"]],

‎test/scripts/package-acceptance-workflow.test.ts‎

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ function runNpmTelegramInputValidation(overrides: Record<string, string>) {
245245
function runNpmTelegramArtifactValidation(params: {
246246
currentRunId: string;
247247
producerRunId: string;
248-
producerStatus: "completed" | "in_progress" | "queued";
248+
producerStatus: "completed" | "in_progress" | "pending" | "queued";
249249
producerConclusion: "success" | null;
250250
}) {
251251
const job = workflowJob(NPM_TELEGRAM_WORKFLOW, "run_package_telegram_e2e");
@@ -2583,7 +2583,11 @@ describe("package artifact reuse", () => {
25832583
const releaseJob = workflowJob(RELEASE_CHECKS_WORKFLOW, "qa_live_release_checks");
25842584

25852585
expect(releaseJob.uses).toBe("./.github/workflows/qa-live-transports-convex.yml");
2586-
expect(releaseJob.secrets).toBeUndefined();
2586+
expect(releaseJob.secrets).toEqual({
2587+
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}",
2588+
OPENCLAW_QA_CONVEX_SECRET_CI: "${{ secrets.OPENCLAW_QA_CONVEX_SECRET_CI }}",
2589+
OPENCLAW_QA_CONVEX_SITE_URL: "${{ secrets.OPENCLAW_QA_CONVEX_SITE_URL }}",
2590+
});
25872591
expect(releaseJob.permissions).toEqual({ contents: "read", "pull-requests": "read" });
25882592
expect(releaseJob.if).toContain('contains(fromJSON(\'["all","qa","qa-live"]\')');
25892593
expect(releaseJob.with).toMatchObject({
@@ -2650,7 +2654,11 @@ describe("package artifact reuse", () => {
26502654
const releaseJob = workflowJob(RELEASE_CHECKS_WORKFLOW, "qa_live_buzz_release_checks");
26512655

26522656
expect(releaseJob.uses).toBe("./.github/workflows/qa-live-transports-convex.yml");
2653-
expect(releaseJob.secrets).toBeUndefined();
2657+
expect(releaseJob.secrets).toEqual({
2658+
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}",
2659+
OPENCLAW_QA_CONVEX_SECRET_CI: "${{ secrets.OPENCLAW_QA_CONVEX_SECRET_CI }}",
2660+
OPENCLAW_QA_CONVEX_SITE_URL: "${{ secrets.OPENCLAW_QA_CONVEX_SITE_URL }}",
2661+
});
26542662
expect(releaseJob.permissions).toEqual({ contents: "read", "pull-requests": "read" });
26552663
expect(releaseJob.if).toContain('contains(fromJSON(\'["all","qa","qa-live"]\')');
26562664
expect(releaseJob.if).toContain("needs.resolve_target.outputs.qa_live_buzz_enabled == 'true'");
@@ -3212,6 +3220,7 @@ describe("package artifact reuse", () => {
32123220
'--arg digest "sha256:${ARTIFACT_DIGEST}"',
32133221
"actions/runs/${ARTIFACT_RUN_ID}/attempts/${ARTIFACT_RUN_ATTEMPT}",
32143222
'if [[ "$ARTIFACT_RUN_ID" == "$GITHUB_RUN_ID" ]]',
3223+
'.status == "pending"',
32153224
'.status == "queued" or .status == "in_progress"',
32163225
".conclusion == null",
32173226
"Package Telegram artifact predates the active producer run attempt.",
@@ -3269,6 +3278,17 @@ describe("package artifact reuse", () => {
32693278
expect(result.status, result.stderr).toBe(0);
32703279
});
32713280

3281+
it("accepts active artifacts while GitHub reports the workflow as pending", () => {
3282+
const result = runNpmTelegramArtifactValidation({
3283+
currentRunId: "123",
3284+
producerConclusion: null,
3285+
producerRunId: "123",
3286+
producerStatus: "pending",
3287+
});
3288+
3289+
expect(result.status, result.stderr).toBe(0);
3290+
});
3291+
32723292
it("rejects queued artifacts after GitHub assigns a conclusion", () => {
32733293
const result = runNpmTelegramArtifactValidation({
32743294
currentRunId: "123",

‎test/scripts/test-live-shard.test.ts‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,40 @@ describe("scripts/test-live-shard", () => {
420420
});
421421
});
422422

423+
it("allows GPT-Live files to be skipped until their shared opt-in is enabled", () => {
424+
const quicksilverFiles = [
425+
"extensions/openai/realtime-quicksilver-gateway-bridge.live.test.ts",
426+
"extensions/openai/realtime-quicksilver.live.test.ts",
427+
];
428+
const payload = {
429+
numPassedTests: 1,
430+
numTotalTests: 3,
431+
testResults: [
432+
{
433+
name: path.join(process.cwd(), "extensions/openai/openai.live.test.ts"),
434+
assertionResults: [{ status: "passed" }],
435+
},
436+
...quicksilverFiles.map((file) => ({
437+
name: path.join(process.cwd(), file),
438+
assertionResults: [{ status: "skipped" }],
439+
})),
440+
],
441+
};
442+
const expectedFiles = ["extensions/openai/openai.live.test.ts", ...quicksilverFiles];
443+
444+
expect(validateLiveShardReportPayload(payload, expectedFiles, process.cwd(), {})).toEqual({
445+
ok: true,
446+
});
447+
expect(
448+
validateLiveShardReportPayload(payload, expectedFiles, process.cwd(), {
449+
OPENCLAW_LIVE_GPT_LIVE: "1",
450+
}),
451+
).toEqual({
452+
ok: false,
453+
reason: `Vitest report selected live test files had no passing assertions: ${quicksilverFiles.join(", ")}`,
454+
});
455+
});
456+
423457
it("does not count disabled opt-in sentinel assertions as live shard proof", () => {
424458
const payload = {
425459
numPassedTests: 1,

0 commit comments

Comments
 (0)