Skip to content

Commit cd03380

Browse files
committed
fix(dashboard): keep legacy Telegram proof visible
1 parent 3701f00 commit cd03380

3 files changed

Lines changed: 58 additions & 2 deletions

File tree

‎.github/workflows/repair-cluster-worker.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ jobs:
663663
GH_TOKEN: ${{ steps.target_write_token.outputs.token }}
664664
CLAWSWEEPER_ALLOWED_OWNER: ${{ steps.target.outputs.target_owner }}
665665
CLAWSWEEPER_AUTOMERGE_SESSION_ID: ${{ inputs.automerge_session_id }}
666+
# OpenClaw agents intentionally use the CI-only Test Server lease capability directly.
667+
# Keep free-form repository skill access; do not replace it with a fixed proof runner.
666668
OPENCLAW_QA_CONVEX_SITE_URL: ${{ steps.target.outputs.target_slug == 'openclaw-openclaw' && secrets.OPENCLAW_QA_CONVEX_SITE_URL || '' }}
667669
OPENCLAW_QA_CONVEX_SECRET_CI: ${{ steps.target.outputs.target_slug == 'openclaw-openclaw' && secrets.OPENCLAW_QA_CONVEX_SECRET_CI || '' }}
668670
run: pnpm run repair:execute-fix -- "$CLUSTER_JOB_PATH" --latest --defer-publication

‎dashboard/worker.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ const PR_PROOF_LABEL_NAMES = [
493493
"triage: mock-only-proof",
494494
"proof: sufficient",
495495
"proof: override",
496+
"mantis: telegram-visible-proof",
496497
"proof: telegram-e2e",
497498
];
498499
const TRIAGE_VIEWS = [
@@ -587,7 +588,7 @@ const PR_PROOF_VIEWS = [
587588
id: "telegram-proof",
588589
title: "Telegram proof",
589590
description: "PRs that need Telegram Test Server proof with the repository E2E skill.",
590-
allLabels: ["proof: telegram-e2e"],
591+
anyLabels: ["mantis: telegram-visible-proof", "proof: telegram-e2e"],
591592
itemLimit: 100,
592593
},
593594
{
@@ -7434,7 +7435,9 @@ function proofStateFromLabels(labels) {
74347435
if (has("proof: sufficient")) return "Sufficient";
74357436
if (has("triage: mock-only-proof")) return "Mock-only proof";
74367437
if (has("triage: needs-real-behavior-proof")) return "Needs proof";
7437-
if (has("proof: telegram-e2e")) return "Telegram proof";
7438+
if (has("mantis: telegram-visible-proof") || has("proof: telegram-e2e")) {
7439+
return "Telegram proof";
7440+
}
74387441
return "";
74397442
}
74407443

‎test/dashboard-worker-dashboard-status.test.ts‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5376,6 +5376,57 @@ test("triage writes and reprojects aggregate-only fresh cache bodies", async ()
53765376
}
53775377
});
53785378

5379+
test("PR proof triage keeps legacy Telegram labels visible during migration", async () => {
5380+
const originalFetch = globalThis.fetch;
5381+
const originalCaches = globalThis.caches;
5382+
const queries: string[] = [];
5383+
Object.defineProperty(globalThis, "caches", {
5384+
configurable: true,
5385+
value: { default: new MemoryCache() },
5386+
});
5387+
globalThis.fetch = async (input) => {
5388+
const url = new URL(String(input));
5389+
if (url.pathname.endsWith("/labels")) {
5390+
return jsonResponse([
5391+
{ name: "mantis: telegram-visible-proof", color: "57606A" },
5392+
{ name: "proof: telegram-e2e", color: "57606A" },
5393+
]);
5394+
}
5395+
if (url.pathname === "/search/issues") {
5396+
const query = url.searchParams.get("q") ?? "";
5397+
queries.push(query);
5398+
return jsonResponse({
5399+
total_count:
5400+
query.includes("mantis: telegram-visible-proof") && query.includes("proof: telegram-e2e")
5401+
? 1
5402+
: 0,
5403+
items: [],
5404+
});
5405+
}
5406+
throw new Error(`unexpected synthetic request: ${url.pathname}`);
5407+
};
5408+
5409+
try {
5410+
const response = await worker.fetch(
5411+
new Request("https://clawsweeper.openclaw.ai/api/pr-proof-triage"),
5412+
{ TARGET_REPOS: "synthetic/target", TRIAGE_CACHE_TTL_SECONDS: "0" },
5413+
{ waitUntil: () => undefined },
5414+
);
5415+
const snapshot = await response.json();
5416+
assert.equal(response.status, 200);
5417+
assert.equal(snapshot.counts["telegram-proof"], 1);
5418+
assert.ok(
5419+
queries.some(
5420+
(query) =>
5421+
query.includes("mantis: telegram-visible-proof") && query.includes("proof: telegram-e2e"),
5422+
),
5423+
);
5424+
} finally {
5425+
globalThis.fetch = originalFetch;
5426+
Object.defineProperty(globalThis, "caches", { configurable: true, value: originalCaches });
5427+
}
5428+
});
5429+
53795430
test("triage routes reproject raw legacy fresh caches", async () => {
53805431
const originalFetch = globalThis.fetch;
53815432
const originalCaches = globalThis.caches;

0 commit comments

Comments
 (0)