hotfix: sync Docker release publishing fix to dev

Refs #1400
This commit is contained in:
Kai (Tam Nhu) Tran
2026-05-29 10:33:55 -04:00
committed by GitHub
parent b37255ec35
commit 6ed9e097e7
5 changed files with 92 additions and 15 deletions
@@ -45,14 +45,18 @@ describe('docker dashboard sunset guard', () => {
});
});
test('fails loudly if the baseline tag is missing after the baseline', () => {
expect(() =>
evaluateDashboardSunset({
targetTag: 'v7.81.2',
baselineVersion: '7.81.0',
releaseWindow: 2,
stableTags: ['v7.80.0'],
}),
).toThrow('baseline tag v7.81.0 is missing');
test('skips deprecated publish if the baseline tag is missing after the baseline', () => {
const result = evaluateDashboardSunset({
targetTag: 'v7.81.2',
baselineVersion: '7.81.0',
releaseWindow: 2,
stableTags: ['v7.80.0'],
});
expect(result).toMatchObject({
elapsed: 2,
publish: false,
});
expect(result.reason).toContain('baseline v7.81.0 is missing');
});
});