Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix(triage): retire version-only retest posting and timeout closure
pulse-triage[bot]590b80cfe7fe
diff --git a/.github/scripts/issue-version-triage.cjs b/.github/scripts/issue-version-triage.cjsindex 37e4d3da24..943589ebe5 100644--- a/.github/scripts/issue-version-triage.cjs+++ b/.github/scripts/issue-version-triage.cjs@@ -2,16 +2,9 @@ const VERSION_LABEL_PREFIX = "affects-";const NEEDS_VERSION_LABEL = "needs-version-info";const RETEST_LABEL = "needs-retest-on-latest";const NEEDS_DECOMPOSITION_LABEL = "needs-decomposition";-const RETEST_COMMENT_MARKER = "<!-- issue-version-triage:v1 -->";-const CLOSE_COMMENT_MARKER = "<!-- issue-timeout-close:v1 -->";-const TRIAGE_FOOTER =- "[How Pulse handles triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)";const BUG_LABEL = "bug";const DOCS_LABEL = "documentation";const ENHANCEMENT_LABEL = "enhancement";-const MAINTAINER_AUTHOR_ASSOCIATIONS = new Set(["OWNER", "MEMBER", "COLLABORATOR"]);-const RETEST_COMMENT_GRACE_MS = 5 * 60 * 1000;-const RETEST_COMMENT_LOOKBACK_MS = 24 * 60 * 60 * 1000;function escapeRegExp(value) {return String(value || "").replace(/[.*+?^${}()|[\]\\]/g, "\\$&");@@ -181,27 +174,6 @@ async function ensureLabel(github, context, name, color, description) {}}-async function getIssueComments(github, context, issueNumber) {- return github.paginate(github.rest.issues.listComments, {- owner: context.repo.owner,- repo: context.repo.repo,- issue_number: issueNumber,- per_page: 100,- });-}--function hasRetestComment(comments) {- return comments.some((comment) => (comment.body || "").includes(RETEST_COMMENT_MARKER));-}--function hasMaintainerResponse(comments) {- return comments.some((comment) =>- MAINTAINER_AUTHOR_ASSOCIATIONS.has(- String(comment.author_association || "").toUpperCase()- )- );-}-async function getLatestStableVersion(github, context, core) {try {const latest = await github.rest.repos.getLatestRelease({@@ -260,49 +232,6 @@ function keepOnlyReportedVersionLabel(nextLabels, reportedVersion) {}}-function withTriageFooter(lines) {- const body = Array.isArray(lines) ? lines.join("\n") : String(lines || "");- return `${body.trimEnd()}\n\n${TRIAGE_FOOTER}`;-}--function buildRetestCommentBody(reportedVersion, latestVersion) {- return withTriageFooter([- RETEST_COMMENT_MARKER,- "Thanks for the report.",- "",- `I can see this was reported on **v${reportedVersion}**, while the latest stable release is **v${latestVersion}**.`,- `Please retest on **v${latestVersion}** and comment with:`,- "",- "- whether the issue still reproduces",- "- updated logs/diagnostics",- "- exact running image tag or digest",- "",- "If there is no reporter follow-up after 7 days, this issue may be auto-closed until new confirmation is provided.",- "",- "If it still reproduces on the latest version, I will keep this open as an active regression.",- ]);-}--function buildTimeoutCloseCommentBody(staleDays) {- return withTriageFooter([- CLOSE_COMMENT_MARKER,- `Closing due to missing reporter retest confirmation for ${staleDays} days.`,- "",- "If this still reproduces on the latest stable release, comment with updated version details and logs and I will reopen.",- ]);-}--function canPostRetestComment(issue, action) {- // "opened" only: non-collaborator reporters cannot reopen maintainer-closed- // issues, so a "reopened" event is a deliberate maintainer decision made with- // context. Posting retest boilerplate there contradicts the maintainer and- // plants the auto-close marker on an issue they chose to keep open.- const authorAssociation = String(issue.author_association || "").toUpperCase();- return (- action === "opened" && !MAINTAINER_AUTHOR_ASSOCIATIONS.has(authorAssociation)- );-}-async function syncLabels({ github, context, core }) {const issue = context.payload.issue;const latestVersion = await getLatestStableVersion(github, context, core);@@ -310,10 +239,8 @@ async function syncLabels({ github, context, core }) {labelNames,nextLabels,reportedVersion,- v6FeedbackClass,hasAdditionalActionableTopics,isBugLike,- comparison,} = buildTriageState(issue, core, latestVersion);if (hasAdditionalActionableTopics === true) {@@ -350,23 +277,9 @@ async function syncLabels({ github, context, core }) {"0e8a16",`Bug reported against Pulse ${reportedVersion}`);- await ensureLabel(- github,- context,- RETEST_LABEL,- "d93f0b",- "Reporter should retest on current latest stable release"- );-keepOnlyReportedVersionLabel(nextLabels, reportedVersion);nextLabels.add(`${VERSION_LABEL_PREFIX}${reportedVersion}`);nextLabels.delete(NEEDS_VERSION_LABEL);-- if (comparison !== null && comparison < 0) {- nextLabels.add(RETEST_LABEL);- } else {- nextLabels.delete(RETEST_LABEL);- }} else {await ensureLabel(github,@@ -376,9 +289,10 @@ async function syncLabels({ github, context, core }) {"Issue is missing required Pulse version metadata");nextLabels.add(NEEDS_VERSION_LABEL);- nextLabels.delete(RETEST_LABEL);}+ // Retest labels are community-owned: version metadata cannot establish+ // relevant-fix availability or reconcile the live reporter conversation.await github.rest.issues.setLabels({owner: context.repo.owner,repo: context.repo.repo,@@ -387,118 +301,16 @@ async function syncLabels({ github, context, core }) {});}-async function postRetestCommentForIssue({- github,- context,- core,- issue,- latestVersion,-}) {- const { reportedVersion, isBugLike, comparison } = buildTriageState(- issue,- core,- latestVersion- );-- if (!isBugLike) {- core.info("Issue is not bug-like after classification. Skipping public retest guidance.");- return false;- }- if (!reportedVersion) {- core.info("Issue is missing Pulse version metadata. Skipping public retest guidance.");- return false;- }- if (comparison === null || comparison >= 0) {- core.info("Issue is already on the latest stable core or newer. Skipping public retest guidance.");- return false;- }- const comments = await getIssueComments(github, context, issue.number);- if (hasRetestComment(comments)) {- core.info("Retest guidance comment already exists.");- return false;- }- if (hasMaintainerResponse(comments)) {- core.info(- "A maintainer has already responded. Skipping generic retest guidance."- );- return false;- }-- await github.rest.issues.createComment({- owner: context.repo.owner,- repo: context.repo.repo,- issue_number: issue.number,- body: buildRetestCommentBody(reportedVersion, latestVersion),- });- return true;-}--async function postRetestComment({ github, context, core }) {- const issue = context.payload.issue;- const action = context.payload.action || "";- if (!canPostRetestComment(issue, action)) {- core.info("Public retest guidance is disabled for this issue event.");- return;- }-- const latestVersion = await getLatestStableVersion(github, context, core);- await postRetestCommentForIssue({- github,- context,- core,- issue,- latestVersion,- });+// Compatibility entry points for callers using the old helper API. Version+// metadata alone cannot justify a public retest request. Community owns+// whole-thread review, relevant-fix and release-inclusion verification.+async function postRetestComment({ core }) {+ core.info("Version-only retest posting is retired; Community owns follow-up.");}-async function postEligibleRetestComments({- github,- context,- core,- nowMs = Date.now(),- graceMs = RETEST_COMMENT_GRACE_MS,- lookbackMs = RETEST_COMMENT_LOOKBACK_MS,-}) {- const issues = await github.paginate(github.rest.issues.listForRepo, {- owner: context.repo.owner,- repo: context.repo.repo,- state: "open",- sort: "created",- direction: "desc",- since: new Date(nowMs - lookbackMs).toISOString(),- per_page: 100,- });- const latestVersion = await getLatestStableVersion(github, context, core);- let eligibleCount = 0;- let postedCount = 0;-- for (const issue of issues) {- if (issue.pull_request || !canPostRetestComment(issue, "opened")) continue;-- const createdMs = new Date(issue.created_at || "").getTime();- if (!Number.isFinite(createdMs)) {- core.warning(`Issue #${issue.number} has an invalid created_at value.`);- continue;- }-- const ageMs = nowMs - createdMs;- if (ageMs < graceMs || ageMs > lookbackMs) continue;- eligibleCount += 1;-- const posted = await postRetestCommentForIssue({- github,- context,- core,- issue,- latestVersion,- });- if (posted) postedCount += 1;- }-- core.info(- `Retest guidance sweep complete: eligible=${eligibleCount}, posted=${postedCount}.`- );- return { eligibleCount, postedCount };+async function postEligibleRetestComments({ core }) {+ core.info("Version-only retest sweep is retired; Community owns follow-up.");+ return { eligibleCount: 0, postedCount: 0 };}module.exports = {@@ -507,21 +319,13 @@ module.exports = {postRetestComment,internals: {BUG_LABEL,- CLOSE_COMMENT_MARKER,DOCS_LABEL,ENHANCEMENT_LABEL,NEEDS_DECOMPOSITION_LABEL,NEEDS_VERSION_LABEL,- RETEST_COMMENT_MARKER,- RETEST_COMMENT_GRACE_MS,- RETEST_COMMENT_LOOKBACK_MS,RETEST_LABEL,- TRIAGE_FOOTER,VERSION_LABEL_PREFIX,- buildRetestCommentBody,- buildTimeoutCloseCommentBody,buildTriageState,- canPostRetestComment,classifyAdditionalActionableTopics,classifyV6FeedbackType,compareCore,diff --git a/.github/scripts/issue-version-triage.test.cjs b/.github/scripts/issue-version-triage.test.cjsindex bf12393f9a..614a886ead 100644--- a/.github/scripts/issue-version-triage.test.cjs+++ b/.github/scripts/issue-version-triage.test.cjs@@ -84,7 +84,7 @@ function createCore() {};}-test("syncLabels adds affects and retest labels for older bug reports", async () => {+test("syncLabels classifies older bug reports without requesting a retest", async () => {const { github, calls } = createGithub({ latestVersion: "6.0.1" });const issue = {number: 1402,@@ -103,7 +103,6 @@ test("syncLabels adds affects and retest labels for older bug reports", async ()assert.deepEqual(calls.setLabels[0].labels, ["affects-6.0.0-rc.1","bug",- "needs-retest-on-latest",]);});@@ -231,142 +230,38 @@ test("every actionable issue form exposes the decomposition signal", () => {}});-test("postRetestComment comments once for older non-maintainer bug reports", async () => {- const { github, calls } = createGithub({ latestVersion: "6.0.1" });+test("older-version reports cannot trigger event or scheduled retest posting", async () => {const issue = {number: 1200,title: "Upgrade regression",- body: "## Feedback type\nRegression\n\n## Pulse version\n5.1.9\n",- labels: [],+ body: "## Feedback type\nRegression\n\n## Pulse version\n6.3.1\n",+ labels: [{ name: "bug" }],author_association: "NONE",+ created_at: "2026-09-08T08:55:00Z",};-- await triage.postRetestComment({- github,- context: createContext({ action: "opened", issue }),- core: createCore(),- });-- assert.equal(calls.createComment.length, 1);- assert.match(- calls.createComment[0].body,- /<!-- issue-version-triage:v1 -->/- );- assert.ok(- calls.createComment[0].body.endsWith(`\n\n${triage.internals.TRIAGE_FOOTER}`)- );- assert.equal(- calls.createComment[0].body.split(triage.internals.TRIAGE_FOOTER).length - 1,- 1- );-});--test("scheduled retest guidance waits five minutes and reads the current issue", async () => {- const nowMs = Date.parse("2026-08-26T09:06:00Z");- const issues = [- {- number: 1780,- title: "Agent token scope",- body: "## Feedback type\nBug / regression\n\n## Pulse version\n6.3.2\n",- labels: [{ name: "bug" }],- author_association: "NONE",- created_at: "2026-08-26T09:01:51Z",- },- ];- const { github, calls } = createGithub({ latestVersion: "6.3.2", issues });-- const result = await triage.postEligibleRetestComments({- github,- context: createContext({ issue: null }),- core: createCore(),- nowMs,- });-- assert.deepEqual(result, { eligibleCount: 0, postedCount: 0 });- assert.equal(calls.createComment.length, 0);-- const laterResult = await triage.postEligibleRetestComments({- github,- context: createContext({ issue: null }),- core: createCore(),- nowMs: Date.parse("2026-08-26T09:07:00Z"),- });-- assert.deepEqual(laterResult, { eligibleCount: 1, postedCount: 0 });- assert.equal(calls.createComment.length, 0);-});--test("scheduled retest guidance posts once after the grace window", async () => {- const issues = [- {- number: 1200,- title: "Upgrade regression",- body: "## Feedback type\nRegression\n\n## Pulse version\n5.1.9\n",- labels: [{ name: "bug" }],- author_association: "NONE",- created_at: "2026-08-26T08:55:00Z",- },- ];- const { github, calls } = createGithub({ latestVersion: "6.3.2", issues });-- const result = await triage.postEligibleRetestComments({- github,- context: createContext({ issue: null }),- core: createCore(),- nowMs: Date.parse("2026-08-26T09:01:00Z"),- });-- assert.deepEqual(result, { eligibleCount: 1, postedCount: 1 });- assert.equal(calls.createComment.length, 1);- assert.equal(calls.createComment[0].issue_number, 1200);- assert.ok(- calls.createComment[0].body.endsWith(`\n\n${triage.internals.TRIAGE_FOOTER}`)- );-});--test("scheduled retest guidance defers to an existing maintainer response", async () => {- const issues = [- {- number: 1790,- title: "TrueNAS SMART evidence is hidden",- body: "## Feedback type\nBug / regression\n\n## Pulse version\n6.3.1\n",- labels: [{ name: "bug" }],- author_association: "NONE",- created_at: "2026-08-28T08:01:33Z",- },- ];- const existingComments = [- {- body: "Fixed on main; wait for a release containing the fix before retesting.",- author_association: "OWNER",- },- ];- const { github, calls } = createGithub({- latestVersion: "6.3.2",- existingComments,- issues,- });-- const result = await triage.postEligibleRetestComments({- github,- context: createContext({ issue: null }),- core: createCore(),- nowMs: Date.parse("2026-08-28T08:10:00Z"),- });-- assert.deepEqual(result, { eligibleCount: 1, postedCount: 0 });- assert.equal(calls.createComment.length, 0);+ const { github, calls } = createGithub({ latestVersion: "6.4.1", issues: [issue] });+ const args = { github, context: createContext({ issue }), core: createCore() };+ await triage.postRetestComment(args);+ assert.deepEqual(await triage.postEligibleRetestComments({+ ...args, nowMs: Date.parse("2026-09-08T09:01:00Z"),+ }), { eligibleCount: 0, postedCount: 0 });+ // Retirement must not merely shift the public write to a different API.+ for (const values of Object.values(calls)) assert.equal(values.length, 0);});-test("timeout close comments use the canonical triage footer", () => {- const { buildTimeoutCloseCommentBody, CLOSE_COMMENT_MARKER, TRIAGE_FOOTER } =- triage.internals;- const body = buildTimeoutCloseCommentBody(7);-- assert.ok(body.startsWith(CLOSE_COMMENT_MARKER));- assert.ok(body.endsWith(`\n\n${TRIAGE_FOOTER}`));- assert.equal(body.split(TRIAGE_FOOTER).length - 1, 1);- assert.doesNotMatch(body, /automated maintainer|supervised by|AI\)/i);+test("label sync preserves community-owned retest state regardless of version", async () => {+ for (const version of ["6.3.1", "6.4.1", "_No response_"]) {+ const { github, calls } = createGithub({ latestVersion: "6.4.1" });+ await triage.syncLabels({+ github, core: createCore(),+ context: createContext({ issue: {+ number: 1200, title: "Bug", body: `## Pulse version\n${version}\n`,+ labels: [{ name: "bug" }, { name: "needs-retest-on-latest" }],+ } }),+ });+ assert.ok(calls.setLabels[0].labels.includes("needs-retest-on-latest"));+ assert.equal(calls.createComment.length, 0);+ }});test("postRetestComment skips reopened issues", async () => {diff --git a/.github/scripts/triage-comment-policy.test.cjs b/.github/scripts/triage-comment-policy.test.cjsindex 79e6b9fe8f..5817c9927d 100644--- a/.github/scripts/triage-comment-policy.test.cjs+++ b/.github/scripts/triage-comment-policy.test.cjs@@ -39,8 +39,18 @@ test("automated workflow issue mutations use the dedicated triage identity", ()}assert.deepEqual(publishers.sort(), [- "close-needs-retest-timeout.yml","issue-version-label-sync.yml",- "issue-version-retest-comment.yml",]);});+++test("version-only posting and timeout closure workflows are retired", () => {+ for (const name of ["issue-version-retest-comment.yml", "close-needs-retest-timeout.yml"]) {+ assert.equal(fs.existsSync(path.join(workflowDir, name)), false, name);+ }+ for (const name of fs.readdirSync(workflowDir)) {+ if (!/\.ya?ml$/.test(name)) continue;+ const source = fs.readFileSync(path.join(workflowDir, name), "utf8");+ assert.doesNotMatch(source, /post(?:Eligible)?RetestComments?|issue-version-triage:v1|buildTimeoutCloseCommentBody/, name);+ }+});diff --git a/.github/workflows/README.md b/.github/workflows/README.mdindex 05d2924915..c40134f1b2 100644--- a/.github/workflows/README.md+++ b/.github/workflows/README.md@@ -222,16 +222,11 @@ verify downloaded files offline against the candidate-builder identity.## Issue Triage Automation-**Files**:+**File**: `issue-version-label-sync.yml`-- `issue-version-label-sync.yml`-- `issue-version-retest-comment.yml`--Issue intake is split deliberately:--- `issue-version-label-sync.yml` is the silent metadata path. It runs on `opened`, `edited`, and `reopened` issue events so version labels, `needs-version-info`, `needs-retest-on-latest`, and the explicit `needs-decomposition` topic-integrity signal stay correct when maintainers tidy issue metadata.-- `issue-version-retest-comment.yml` is the scheduled public guidance path. It gives maintainers a grace window, then posts reporter-facing retest guidance only when an older-version bug report from a non-maintainer has no existing maintainer response. This prevents generic stable-version advice from contradicting a specific maintainer fix or prerelease boundary.-- Both workflows load the shared helper at `.github/scripts/issue-version-triage.cjs` so parsing and classification logic lives in one place instead of drifting across duplicated inline scripts.+- The silent metadata path runs on `opened`, `edited`, and `reopened` issue events. The shared helper at `.github/scripts/issue-version-triage.cjs` maintains version labels, `needs-version-info`, feedback classification and `needs-decomposition`.+- Version-only retest posting and marked-request timeout closure workflows are retired. An older reported version or silence is not evidence of resolution.+- Community owns public follow-up and closure after whole-thread review, relevant-fix verification and confirmed released-source inclusion. The synchronizer neither adds nor removes the community-owned `needs-retest-on-latest` label. Existing labels and comments are context, not proof that a reporter has or has not replied.- `needs-decomposition` is driven only by the structured **Additional actionable topics** form field. The [triage contract](../../docs/ISSUE_TRIAGE.md) requires human or agent judgment to create linked dispositions; the workflow does not infer or auto-create issues from free text.## Update Demo Serverdiff --git a/.github/workflows/close-needs-retest-timeout.yml b/.github/workflows/close-needs-retest-timeout.ymldeleted file mode 100644index 383b2fc91c..0000000000--- a/.github/workflows/close-needs-retest-timeout.yml+++ /dev/null@@ -1,214 +0,0 @@-name: Close Needs-Retest Timeouts--on:- schedule:- - cron: "17 13 * * *"- workflow_dispatch:- inputs:- stale_days:- description: "Days to wait after retest request before auto-close"- required: false- default: "7"- dry_run:- description: "When true, do not close issues"- required: false- default: "false"--permissions:- contents: read--jobs:- close-timeouts:- runs-on: ubuntu-24.04- timeout-minutes: 10- steps:- - name: Mint triage bot token- id: triage-token- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0- with:- app-id: 2484142- private-key: ${{ secrets.PULSE_TRIAGE_APP_PRIVATE_KEY }}-- - name: Check out triage helper- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1- with:- persist-credentials: false- sparse-checkout: |- .github/scripts/issue-version-triage.cjs- sparse-checkout-cone-mode: false-- - name: Auto-close outdated retest issues- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0- env:- STALE_DAYS: ${{ github.event.inputs.stale_days || '7' }}- DRY_RUN: ${{ github.event.inputs.dry_run || 'false' }}- with:- github-token: ${{ steps.triage-token.outputs.token }}- script: |- const triage = require(`${process.env.GITHUB_WORKSPACE}/.github/scripts/issue-version-triage.cjs`);- const {- RETEST_COMMENT_MARKER,- buildTimeoutCloseCommentBody,- } = triage.internals;- const RETEST_LABEL = "needs-retest-on-latest";- const OPT_OUT_LABEL = "no-auto-close";- const CLOSED_LABEL = "closed-needs-retest-timeout";-- const staleDaysRaw = process.env.STALE_DAYS || "7";- const staleDays = Number.parseInt(staleDaysRaw, 10);- if (!Number.isFinite(staleDays) || staleDays < 1) {- core.setFailed(`Invalid stale_days input: ${staleDaysRaw}`);- return;- }-- const dryRun = String(process.env.DRY_RUN || "false").toLowerCase() === "true";- const cutoffMs = Date.now() - staleDays * 24 * 60 * 60 * 1000;- const cutoffIso = new Date(cutoffMs).toISOString();-- core.info(`Running timeout close job with stale_days=${staleDays}, dry_run=${dryRun}`);- core.info(`Cutoff timestamp: ${cutoffIso}`);-- async function ensureLabel(name, color, description) {- try {- await github.rest.issues.getLabel({- owner: context.repo.owner,- repo: context.repo.repo,- name,- });- } catch (error) {- if (error.status !== 404) throw error;- await github.rest.issues.createLabel({- owner: context.repo.owner,- repo: context.repo.repo,- name,- color,- description,- });- }- }-- await ensureLabel(- CLOSED_LABEL,- "6e7781",- "Auto-closed after retest request timeout without reporter follow-up"- );-- const candidates = await github.paginate(github.rest.issues.listForRepo, {- owner: context.repo.owner,- repo: context.repo.repo,- state: "open",- labels: RETEST_LABEL,- per_page: 100,- });-- core.info(`Found ${candidates.length} open issues with ${RETEST_LABEL}`);-- let closedCount = 0;- let skippedCount = 0;- let dryRunCount = 0;-- for (const issue of candidates) {- if (issue.pull_request) {- skippedCount += 1;- continue;- }-- const labelSet = new Set((issue.labels || []).map((l) => l.name));- if (labelSet.has(OPT_OUT_LABEL)) {- core.info(`#${issue.number} skipped (${OPT_OUT_LABEL} present).`);- skippedCount += 1;- continue;- }-- const comments = await github.paginate(github.rest.issues.listComments, {- owner: context.repo.owner,- repo: context.repo.repo,- issue_number: issue.number,- per_page: 100,- });-- const triageComments = comments.filter((c) => (c.body || "").includes(RETEST_COMMENT_MARKER));- if (triageComments.length === 0) {- core.info(`#${issue.number} skipped (no retest-request marker comment found).`);- skippedCount += 1;- continue;- }-- const latestTriage = triageComments.sort(- (a, b) => new Date(a.created_at).getTime() - new Date(b.created_at).getTime()- )[triageComments.length - 1];-- const triageAt = new Date(latestTriage.created_at).getTime();- if (!Number.isFinite(triageAt) || triageAt > cutoffMs) {- core.info(`#${issue.number} skipped (retest request is not stale yet).`);- skippedCount += 1;- continue;- }-- const authorLogin = issue.user?.login;- const reporterReplied = comments.some((c) => {- return c.user?.login === authorLogin && new Date(c.created_at).getTime() > triageAt;- });-- if (reporterReplied) {- core.info(`#${issue.number} skipped (reporter followed up after retest request).`);- skippedCount += 1;- continue;- }-- const communityActivityAfterTriage = comments.some((c) => {- const t = new Date(c.created_at).getTime();- const isAfter = Number.isFinite(t) && t > triageAt;- if (!isAfter) return false;- const assoc = String(c.author_association || "");- const isMaintainer = ["OWNER", "MEMBER", "COLLABORATOR"].includes(assoc);- return !isMaintainer;- });-- if (communityActivityAfterTriage) {- core.info(`#${issue.number} skipped (community activity exists after retest request).`);- skippedCount += 1;- continue;- }-- const closeCommentBody = buildTimeoutCloseCommentBody(staleDays);-- if (dryRun) {- core.info(`[dry-run] Would close #${issue.number}`);- dryRunCount += 1;- continue;- }-- await github.rest.issues.createComment({- owner: context.repo.owner,- repo: context.repo.repo,- issue_number: issue.number,- body: closeCommentBody,- });-- const newLabels = new Set([...labelSet]);- newLabels.delete(RETEST_LABEL);- newLabels.add(CLOSED_LABEL);-- await github.rest.issues.setLabels({- owner: context.repo.owner,- repo: context.repo.repo,- issue_number: issue.number,- labels: [...newLabels].sort(),- });-- await github.rest.issues.update({- owner: context.repo.owner,- repo: context.repo.repo,- issue_number: issue.number,- state: "closed",- state_reason: "not_planned",- });-- core.info(`#${issue.number} closed due to retest timeout.`);- closedCount += 1;- }-- core.notice(- `Needs-retest timeout summary: closed=${closedCount}, dry_run=${dryRunCount}, skipped=${skippedCount}, total=${candidates.length}`- );diff --git a/.github/workflows/issue-version-retest-comment.yml b/.github/workflows/issue-version-retest-comment.ymldeleted file mode 100644index 7aa3a15264..0000000000--- a/.github/workflows/issue-version-retest-comment.yml+++ /dev/null@@ -1,41 +0,0 @@-name: Issue Version Retest Comment--on:- schedule:- - cron: "*/5 * * * *"- workflow_dispatch:--permissions:- contents: read--concurrency:- group: issue-version-retest-comment- cancel-in-progress: false--jobs:- comment:- runs-on: ubuntu-24.04- timeout-minutes: 10- steps:- - name: Mint triage bot token- id: triage-token- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0- with:- app-id: 2484142- private-key: ${{ secrets.PULSE_TRIAGE_APP_PRIVATE_KEY }}-- - name: Check out triage helper- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1- with:- persist-credentials: false- sparse-checkout: |- .github/scripts/issue-version-triage.cjs- sparse-checkout-cone-mode: false-- - name: Post retest guidance when needed- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0- with:- github-token: ${{ steps.triage-token.outputs.token }}- script: |- const triage = require(`${process.env.GITHUB_WORKSPACE}/.github/scripts/issue-version-triage.cjs`);- await triage.postEligibleRetestComments({ github, context, core });