Recover stable-v6 upgrade intake on current source

Carry the exact validated six-file correction from 7699c5e3 and 29ad279b onto the current assignment without importing their unrelated frontend ancestry. Let reports separate failing server, agent and platform versions from an observed working baseline; preserve unknowns, passive evidence and API-only setups. Original candidates and adverse proofs remain unchanged.

Contract-Neutral: Community intake fields, mirrored guidance and regression tests only; runtime, release, installer and label automation contracts are unchanged.
Change-source: pulse-maintainer
This commit is contained in:
pulse-triage[bot]
2026-10-06 20:27:24 +01:00
parent 49805f32e3
commit f2a52d2db6
6 changed files with 123 additions and 7 deletions

View File

@@ -553,3 +553,31 @@ test("version-label removal tolerates an absent label but propagates access fail
else await assert.rejects(run, { status: 403 });
}
});
// Different software versions can coexist in the same upgrade report. Only
// the affected server field may determine the affects-* label.
test("stable-to-preview intake keeps baseline, agent and platform versions out of labels", async () => {
for (const [running, expected] of [
["6.5.0-rc.1", "affects-6.5.0-rc.1"],
["unknown", "needs-version-info"],
]) {
const { github, calls } = createGithub({ latestVersion: "6.5.0" });
const issue = {
number: 2400,
title: "[v6 pre-release]: upgraded from 6.4.5",
body: [
"### Feedback type", "Bug / regression",
"### Pulse version", running,
"### Last known working Pulse version", "6.4.1",
"### Agent version", "6.4.5",
"### Install path", "Upgrade from a stable v6 release",
"### OS / environment", "Debian 12 / SCALE 26.0.0-BETA.3",
"### Additional actionable topics", "None",
].join("\n\n"),
labels: [],
};
await triage.syncLabels({ github, context: createContext({ issue }), core: createCore() });
assert.deepEqual(calls.addLabels.flatMap((call) => call.labels).sort(), [expected, "bug"].sort());
assert.equal(calls.createComment.length, 0);
}
});