Skip to content

Commit 7c5b66a

Browse files
authored
fix(ci): wait for Telegram credential capacity (#105535)
* fix(ci): wait for Telegram credential capacity * test(ci): align Telegram credential wait contract
1 parent ec62328 commit 7c5b66a

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2064,7 +2064,8 @@ jobs:
20642064
- name: Validate required QA credential env
20652065
id: validate_credentials
20662066
env:
2067-
CREDENTIAL_ACQUIRE_TIMEOUT_MS: "60000"
2067+
# Release trains share a bounded Telegram pool; wait through overlapping lanes.
2068+
CREDENTIAL_ACQUIRE_TIMEOUT_MS: "600000"
20682069
JOB_TIMEOUT_MINUTES: "60"
20692070
LEASE_TTL_MS: "7200000"
20702071
OPENCLAW_QA_CONVEX_SECRET_CI: ${{ secrets.OPENCLAW_QA_CONVEX_SECRET_CI }}
@@ -2086,7 +2087,8 @@ jobs:
20862087
EVIDENCE_ROOT: ${{ steps.create_sut.outputs.evidence_root }}
20872088
OPENCLAW_QA_CONVEX_SECRET_CI: ${{ secrets.OPENCLAW_QA_CONVEX_SECRET_CI }}
20882089
OPENCLAW_QA_CONVEX_SITE_URL: ${{ secrets.OPENCLAW_QA_CONVEX_SITE_URL }}
2089-
OPENCLAW_QA_CREDENTIAL_ACQUIRE_TIMEOUT_MS: "60000"
2090+
# Keep the CLI lease wait aligned with the validated workflow contract above.
2091+
OPENCLAW_QA_CREDENTIAL_ACQUIRE_TIMEOUT_MS: "600000"
20902092
OPENCLAW_QA_CREDENTIAL_LEASE_TTL_MS: "7200000"
20912093
OPENCLAW_QA_REDACT_PUBLIC_METADATA: "1"
20922094
OPENCLAW_QA_SUT_FORBIDDEN_SENTINEL: trusted-parent-${{ github.run_id }}-${{ github.run_attempt }}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,14 +521,14 @@ describe("release Telegram QA workflow", () => {
521521
(step) => step.name === "Validate required QA credential env",
522522
);
523523
expect(validateStep?.env?.RUNNER_ENVIRONMENT).toBe("${{ runner.environment }}");
524-
expect(validateStep?.env?.CREDENTIAL_ACQUIRE_TIMEOUT_MS).toBe("60000");
524+
expect(validateStep?.env?.CREDENTIAL_ACQUIRE_TIMEOUT_MS).toBe("600000");
525525
expect(validateStep?.env?.JOB_TIMEOUT_MINUTES).toBe("60");
526526
expect(validateStep?.env?.LEASE_TTL_MS).toBe("7200000");
527527
expect(validateStep?.run).toContain('[[ "$RUNNER_ENVIRONMENT" == "github-hosted" ]]');
528528
expect(validateStep?.run).toContain("JOB_TIMEOUT_MINUTES * 60 * 1000 < LEASE_TTL_MS");
529529

530530
const runStep = job?.steps?.find((step) => step.name === "Run Telegram live lane");
531-
expect(runStep?.env?.OPENCLAW_QA_CREDENTIAL_ACQUIRE_TIMEOUT_MS).toBe("60000");
531+
expect(runStep?.env?.OPENCLAW_QA_CREDENTIAL_ACQUIRE_TIMEOUT_MS).toBe("600000");
532532
expect(runStep?.env?.OPENCLAW_QA_CREDENTIAL_LEASE_TTL_MS).toBe("7200000");
533533
expect(runStep?.env?.OPENCLAW_LOG_LEVEL).toBe("trace");
534534
expect(runStep?.env?.OPENCLAW_QA_TELEGRAM_SUT_CLEANUP_TIMEOUT_MS).toBe("60000");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2532,7 +2532,7 @@ describe("package artifact reuse", () => {
25322532
it("uses bounded Convex lease waits instead of GitHub concurrency for CI Telegram consumers", () => {
25332533
const telegramJobs = [
25342534
[NPM_TELEGRAM_WORKFLOW, "run_package_telegram_e2e", "Run package Telegram E2E", "1800000"],
2535-
[RELEASE_TELEGRAM_QA_WORKFLOW, "run_telegram", "Run Telegram live lane", "60000"],
2535+
[RELEASE_TELEGRAM_QA_WORKFLOW, "run_telegram", "Run Telegram live lane", "600000"],
25362536
[QA_LIVE_TRANSPORTS_WORKFLOW, "run_live_telegram", "Run Telegram live lane", "1800000"],
25372537
[
25382538
".github/workflows/mantis-telegram-live.yml",

0 commit comments

Comments
 (0)