Skip to content

Commit b1fcd7c

Browse files
authored
fix(ci): keep LTS Telegram QA model compatible (#105348)
* fix(ci): keep LTS Telegram QA model compatible * fix(ci): probe Telegram QA model contract * style(ci): format Telegram QA contract test * docs(agents): note review checkout order * docs(agents): clarify rg option order
1 parent e357203 commit b1fcd7c

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

‎.github/workflows/openclaw-release-telegram-qa.yml‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ jobs:
7272
CALLER_WORKFLOW_SHA: ${{ github.workflow_sha }}
7373
EXPECTED_TRUSTED_WORKFLOW_SHA: ${{ inputs.expected_trusted_workflow_sha }}
7474
JOB_CONTEXT: ${{ toJSON(job) }}
75-
TARGET_REF: ${{ inputs.target_ref }}
7675
TARGET_SHA: ${{ inputs.target_sha }}
7776
WORKFLOW_REF: ${{ github.workflow_ref }}
7877
WORKFLOW_SHA: ${{ github.workflow_sha }}
@@ -2035,6 +2034,7 @@ jobs:
20352034
OPENCLAW_QA_TELEGRAM_SUT_UID: ${{ steps.create_sut.outputs.uid }}
20362035
SUT_RUNTIME_ROOT: ${{ steps.create_sut.outputs.runtime_root }}
20372036
SUT_UID: ${{ steps.create_sut.outputs.uid }}
2037+
TARGET_REF: ${{ inputs.target_ref }}
20382038
TARGET_SHA: ${{ inputs.target_sha }}
20392039
shell: bash
20402040
run: |
@@ -2054,6 +2054,15 @@ jobs:
20542054
trap terminate_sut_uid_on_exit EXIT
20552055
trap 'exit 130' INT
20562056
trap 'exit 143' TERM
2057+
qa_model="mock-openai/gpt-5.6-luna"
2058+
qa_alt_model="mock-openai/gpt-5.6-luna-alt"
2059+
candidate_telegram_qa="$CANDIDATE_ROOT/extensions/qa-lab/src/live-transports/telegram/telegram-live.runtime.ts"
2060+
if [[ -f "$candidate_telegram_qa" ]] &&
2061+
grep -Fq '"openai/gpt-5.5": {' "$candidate_telegram_qa" &&
2062+
! grep -Fq '"openai/gpt-5.6-luna": {' "$candidate_telegram_qa"; then
2063+
qa_model="mock-openai/gpt-5.5"
2064+
qa_alt_model="mock-openai/gpt-5.5-alt"
2065+
fi
20572066
{
20582067
printf 'trusted_harness_sha=%s\n' "${{ needs.trusted_identity.outputs.workflow_sha }}"
20592068
printf 'candidate_runtime_plugin_sha=%s\n' "$TARGET_SHA"
@@ -2075,8 +2084,8 @@ jobs:
20752084
--repo-root "$CANDIDATE_ROOT" \
20762085
--output-dir "${EVIDENCE_RELATIVE}/${output_name}" \
20772086
--provider-mode mock-openai \
2078-
--model mock-openai/gpt-5.6-luna \
2079-
--alt-model mock-openai/gpt-5.6-luna-alt \
2087+
--model "$qa_model" \
2088+
--alt-model "$qa_alt_model" \
20802089
--fast \
20812090
--credential-source convex \
20822091
--credential-role ci \

‎AGENTS.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ Skills own workflows; root owns hard policy and routing.
168168
- zsh: quote command globs; unmatched patterns abort before the tool runs.
169169
- `scripts/pr` artifacts: preserve template enum values; validate before prepare.
170170
- `scripts/pr` subcommands require a PR number; no subcommand `--help` placeholder.
171+
- `scripts/pr` review: checkout main baseline, then PR, before artifact validation.
172+
- `rg`: options before `--`; use `--` before patterns starting with `-`.
171173
- Bare issue/PR URL/number: inspect live and take the efficient maintainer path; switch branches/refs when useful.
172174
- No unsolicited PR labels/retitles/rebases/fixups/landing. Comments/reviews ok only for reviewable findings, pre-merge proof, or close/duplicate reason after explicit close/sweep/landing request.
173175
- Maintainer decision closes the cluster: if deciding reported behavior/proposed fix is not planned, comment+close all directly associated open issues/PRs unless explicitly told to keep one open. Associated means linked PRs/issues, duplicates, companion workaround PRs, and the canonical issue for the rejected behavior.

‎test/scripts/openclaw-release-telegram-qa-workflow.test.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,11 @@ describe("release Telegram QA workflow", () => {
529529
expect(runStep?.run).toContain("trap terminate_sut_uid_on_exit EXIT");
530530
expect(runStep?.run).toContain('"$OPENCLAW_QA_TELEGRAM_SUT_OPENCLAW_COMMAND" --terminate-uid');
531531
expect(runStep?.run).toContain("run_qa_attempt preflight --scenario channel-canary");
532+
expect(runStep?.run).toContain('candidate_telegram_qa="$CANDIDATE_ROOT/extensions/qa-lab');
533+
expect(runStep?.run).toContain("grep -Fq '\"openai/gpt-5.5\": {'");
534+
expect(runStep?.run).toContain("! grep -Fq '\"openai/gpt-5.6-luna\": {'");
535+
expect(runStep?.run).toContain('qa_model="mock-openai/gpt-5.5"');
536+
expect(runStep?.run).toContain('--model "$qa_model"');
532537
expect(runStep?.run).toContain(
533538
"Telegram channel canary failed; skipping the remaining scenarios.",
534539
);

0 commit comments

Comments
 (0)