fix(data): automatic update of static data (#23263)

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
This commit is contained in:
github-actions[bot] 2023-07-10 09:35:52 +02:00 committed by GitHub
parent 8db31e9716
commit 3fced200db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 61 additions and 46 deletions

View file

@ -123,11 +123,18 @@
"v12": { "v12": {
"codename": "Bookworm", "codename": "Bookworm",
"series": "bookworm", "series": "bookworm",
"created": "2021-08-14" "created": "2021-08-14",
"release": "2023-06-10",
"eol": "2026-06-10"
}, },
"v13": { "v13": {
"codename": "Trixie", "codename": "Trixie",
"series": "trixie", "series": "trixie",
"created": "2023-08-01" "created": "2023-06-10"
},
"v14": {
"codename": "Forky",
"series": "forky",
"created": "2025-08-01"
} }
} }

View file

@ -202,8 +202,8 @@
"series": "bionic", "series": "bionic",
"created": "2017-10-19", "created": "2017-10-19",
"release": "2018-04-26", "release": "2018-04-26",
"eol": "2023-04-26", "eol": "2023-05-31",
"eol_server": "2023-04-26", "eol_server": "2023-05-31",
"eol_esm": "2028-04-26" "eol_esm": "2028-04-26"
}, },
"v18.10": { "v18.10": {
@ -232,8 +232,8 @@
"series": "focal", "series": "focal",
"created": "2019-10-17", "created": "2019-10-17",
"release": "2020-04-23", "release": "2020-04-23",
"eol": "2025-04-23", "eol": "2025-05-29",
"eol_server": "2025-04-23", "eol_server": "2025-05-29",
"eol_esm": "2030-04-23" "eol_esm": "2030-04-23"
}, },
"v20.10": { "v20.10": {
@ -262,8 +262,8 @@
"series": "jammy", "series": "jammy",
"created": "2021-10-14", "created": "2021-10-14",
"release": "2022-04-21", "release": "2022-04-21",
"eol": "2027-04-21", "eol": "2027-06-01",
"eol_server": "2027-04-21", "eol_server": "2027-06-01",
"eol_esm": "2032-04-21" "eol_esm": "2032-04-21"
}, },
"v22.10": { "v22.10": {
@ -277,7 +277,14 @@
"codename": "Lunar Lobster", "codename": "Lunar Lobster",
"series": "lunar", "series": "lunar",
"created": "2022-10-20", "created": "2022-10-20",
"release": "2023-04-27", "release": "2023-04-20",
"eol": "2024-01-25" "eol": "2024-01-25"
},
"v23.10": {
"codename": "Mantic Minotaur",
"series": "mantic",
"created": "2023-04-20",
"release": "2023-10-12",
"eol": "2024-07-11"
} }
} }

View file

@ -3,7 +3,7 @@ import { logger } from '../../../logger';
import { DebianVersioningApi } from '.'; import { DebianVersioningApi } from '.';
describe('modules/versioning/debian/index', () => { describe('modules/versioning/debian/index', () => {
const dt = DateTime.fromISO('2022-04-20'); const dt = DateTime.fromISO('2023-07-10');
const debian = new DebianVersioningApi(); const debian = new DebianVersioningApi();
@ -37,7 +37,7 @@ describe('modules/versioning/debian/index', () => {
${'buster'} | ${true} ${'buster'} | ${true}
${'Buster'} | ${false} ${'Buster'} | ${false}
${'bullseye'} | ${true} ${'bullseye'} | ${true}
${'bookworm'} | ${false} ${'bookworm'} | ${true}
${'trixie'} | ${false} ${'trixie'} | ${false}
${'sid'} | ${false} ${'sid'} | ${false}
${'1.1'} | ${true} ${'1.1'} | ${true}
@ -56,7 +56,7 @@ describe('modules/versioning/debian/index', () => {
${'10'} | ${true} ${'10'} | ${true}
${'10-slim'} | ${false} ${'10-slim'} | ${false}
${'11'} | ${true} ${'11'} | ${true}
${'12'} | ${false} ${'12'} | ${true}
${'13'} | ${false} ${'13'} | ${false}
${'sid'} | ${false} ${'sid'} | ${false}
${'stable'} | ${true} ${'stable'} | ${true}
@ -75,13 +75,14 @@ describe('modules/versioning/debian/index', () => {
${''} | ${undefined} | ${false} ${''} | ${undefined} | ${false}
${'7'} | ${undefined} | ${true} ${'7'} | ${undefined} | ${true}
${'11'} | ${undefined} | ${true} ${'11'} | ${undefined} | ${true}
${'12'} | ${undefined} | ${false} ${'12'} | ${undefined} | ${true}
${'stable'} | ${undefined} | ${true} ${'stable'} | ${undefined} | ${true}
${'oldstable'} | ${undefined} | ${true} ${'oldstable'} | ${undefined} | ${true}
${'oldoldstable'} | ${undefined} | ${true} ${'oldoldstable'} | ${undefined} | ${true}
${'wheezy'} | ${undefined} | ${true} ${'wheezy'} | ${undefined} | ${true}
${'bullseye'} | ${undefined} | ${true} ${'bullseye'} | ${undefined} | ${true}
${'bookworm'} | ${undefined} | ${false} ${'bookworm'} | ${undefined} | ${true}
${'trixie'} | ${undefined} | ${false}
`( `(
'isCompatible("$version") === $expected', 'isCompatible("$version") === $expected',
({ version, range, expected }) => { ({ version, range, expected }) => {
@ -118,10 +119,10 @@ describe('modules/versioning/debian/index', () => {
${'squeeze'} | ${false} ${'squeeze'} | ${false}
${'wheezy'} | ${false} ${'wheezy'} | ${false}
${'jessie'} | ${false} ${'jessie'} | ${false}
${'stretch'} | ${true} ${'stretch'} | ${false}
${'buster'} | ${true} ${'buster'} | ${true}
${'bullseye'} | ${true} ${'bullseye'} | ${true}
${'bookworm'} | ${false} ${'bookworm'} | ${true}
${'trixie'} | ${false} ${'trixie'} | ${false}
${'sid'} | ${false} ${'sid'} | ${false}
${'1.1'} | ${false} ${'1.1'} | ${false}
@ -136,10 +137,10 @@ describe('modules/versioning/debian/index', () => {
${'6'} | ${false} ${'6'} | ${false}
${'7'} | ${false} ${'7'} | ${false}
${'8'} | ${false} ${'8'} | ${false}
${'9'} | ${true} ${'9'} | ${false}
${'10'} | ${true} ${'10'} | ${true}
${'11'} | ${true} ${'11'} | ${true}
${'12'} | ${false} ${'12'} | ${true}
${'13'} | ${false} ${'13'} | ${false}
${'sid'} | ${false} ${'sid'} | ${false}
${'experimental'} | ${false} ${'experimental'} | ${false}
@ -210,7 +211,7 @@ describe('modules/versioning/debian/index', () => {
${'stretch'} | ${true} ${'stretch'} | ${true}
${'buster'} | ${true} ${'buster'} | ${true}
${'bullseye'} | ${true} ${'bullseye'} | ${true}
${'bookworm'} | ${false} ${'bookworm'} | ${true}
${'trixie'} | ${false} ${'trixie'} | ${false}
${'sid'} | ${false} ${'sid'} | ${false}
${'1.1'} | ${true} ${'1.1'} | ${true}
@ -228,7 +229,7 @@ describe('modules/versioning/debian/index', () => {
${'9'} | ${true} ${'9'} | ${true}
${'10'} | ${true} ${'10'} | ${true}
${'11'} | ${true} ${'11'} | ${true}
${'12'} | ${false} ${'12'} | ${true}
${'13'} | ${false} ${'13'} | ${false}
${'sid'} | ${false} ${'sid'} | ${false}
${'experimental'} | ${false} ${'experimental'} | ${false}
@ -256,9 +257,9 @@ describe('modules/versioning/debian/index', () => {
${'8'} | ${8} | ${null} | ${null} ${'8'} | ${8} | ${null} | ${null}
${'9'} | ${9} | ${null} | ${null} ${'9'} | ${9} | ${null} | ${null}
${'10'} | ${10} | ${null} | ${null} ${'10'} | ${10} | ${null} | ${null}
${'oldoldstable'} | ${9} | ${null} | ${null} ${'oldoldstable'} | ${10} | ${null} | ${null}
${'oldstable'} | ${10} | ${null} | ${null} ${'oldstable'} | ${11} | ${null} | ${null}
${'stable'} | ${11} | ${null} | ${null} ${'stable'} | ${12} | ${null} | ${null}
`( `(
'getMajor, getMinor, getPatch for "$version"', 'getMajor, getMinor, getPatch for "$version"',
({ version, major, minor, patch }) => { ({ version, major, minor, patch }) => {
@ -277,12 +278,12 @@ describe('modules/versioning/debian/index', () => {
${'10'} | ${'buster'} | ${true} ${'10'} | ${'buster'} | ${true}
${'6'} | ${'squeeze'} | ${true} ${'6'} | ${'squeeze'} | ${true}
${'buster'} | ${'10'} | ${true} ${'buster'} | ${'10'} | ${true}
${'oldoldstable'} | ${'9'} | ${true} ${'oldoldstable'} | ${'10'} | ${true}
${'oldstable'} | ${'10'} | ${true} ${'oldstable'} | ${'11'} | ${true}
${'stable'} | ${'11'} | ${true} ${'stable'} | ${'12'} | ${true}
${'9'} | ${'oldoldstable'} | ${true} ${'10'} | ${'oldoldstable'} | ${true}
${'10'} | ${'oldstable'} | ${true} ${'11'} | ${'oldstable'} | ${true}
${'11'} | ${'stable'} | ${true} ${'12'} | ${'stable'} | ${true}
`('equals($a, $b) === $expected', ({ a, b, expected }) => { `('equals($a, $b) === $expected', ({ a, b, expected }) => {
expect(debian.equals(a, b)).toBe(expected); expect(debian.equals(a, b)).toBe(expected);
}); });
@ -307,9 +308,9 @@ describe('modules/versioning/debian/index', () => {
${'oldoldstable'} | ${'8'} | ${true} ${'oldoldstable'} | ${'8'} | ${true}
${'oldstable'} | ${'oldoldstable'} | ${true} ${'oldstable'} | ${'oldoldstable'} | ${true}
${'stable'} | ${'oldstable'} | ${true} ${'stable'} | ${'oldstable'} | ${true}
${'11'} | ${'oldoldstable'} | ${true} ${'12'} | ${'oldoldstable'} | ${true}
${'10'} | ${'oldstable'} | ${false} ${'11'} | ${'oldstable'} | ${false}
${'9'} | ${'stable'} | ${false} ${'10'} | ${'stable'} | ${false}
`('isGreaterThan("$a", "$b") === $expected', ({ a, b, expected }) => { `('isGreaterThan("$a", "$b") === $expected', ({ a, b, expected }) => {
expect(debian.isGreaterThan(a, b)).toBe(expected); expect(debian.isGreaterThan(a, b)).toBe(expected);
}); });
@ -326,7 +327,7 @@ describe('modules/versioning/debian/index', () => {
${['jessie', 'stretch', 'buster', 'bullseye']} | ${'bullseye'} | ${'bullseye'} ${['jessie', 'stretch', 'buster', 'bullseye']} | ${'bullseye'} | ${'bullseye'}
${['jessie', 'stretch', 'buster', 'bullseye']} | ${'buster'} | ${'buster'} ${['jessie', 'stretch', 'buster', 'bullseye']} | ${'buster'} | ${'buster'}
${['jessie', 'stretch', 'buster', 'stable']} | ${'stable'} | ${'stable'} ${['jessie', 'stretch', 'buster', 'stable']} | ${'stable'} | ${'stable'}
${['jessie', 'stretch', 'oldstable', 'bullseye']} | ${'buster'} | ${'oldstable'} ${['jessie', 'stretch', 'oldstable', 'bullseye']} | ${'bullseye'} | ${'oldstable'}
${['jessie', 'oldoldstable', 'buster', 'bullseye']} | ${'warty'} | ${null} ${['jessie', 'oldoldstable', 'buster', 'bullseye']} | ${'warty'} | ${null}
`( `(
'getSatisfyingVersion($versions, "$range") === "$expected"', 'getSatisfyingVersion($versions, "$range") === "$expected"',
@ -348,7 +349,7 @@ describe('modules/versioning/debian/index', () => {
${['jessie', 'stretch', 'buster', 'bullseye']} | ${'buster'} | ${'buster'} ${['jessie', 'stretch', 'buster', 'bullseye']} | ${'buster'} | ${'buster'}
${['jessie', 'stretch', 'buster', 'bullseye']} | ${'warty'} | ${null} ${['jessie', 'stretch', 'buster', 'bullseye']} | ${'warty'} | ${null}
${['jessie', 'stretch', 'buster', 'stable']} | ${'stable'} | ${'stable'} ${['jessie', 'stretch', 'buster', 'stable']} | ${'stable'} | ${'stable'}
${['jessie', 'stretch', 'oldstable', 'bullseye']} | ${'buster'} | ${'oldstable'} ${['jessie', 'stretch', 'oldstable', 'bullseye']} | ${'bullseye'} | ${'oldstable'}
${['jessie', 'oldoldstable', 'buster', 'bullseye']} | ${'warty'} | ${null} ${['jessie', 'oldoldstable', 'buster', 'bullseye']} | ${'warty'} | ${null}
`( `(
'minSatisfyingVersion($versions, "$range") === "$expected"', 'minSatisfyingVersion($versions, "$range") === "$expected"',
@ -362,21 +363,21 @@ describe('modules/versioning/debian/index', () => {
${undefined} | ${undefined} | ${undefined} | ${'foobar'} | ${'foobar'} ${undefined} | ${undefined} | ${undefined} | ${'foobar'} | ${'foobar'}
${'stretch'} | ${undefined} | ${undefined} | ${'11'} | ${'bullseye'} ${'stretch'} | ${undefined} | ${undefined} | ${'11'} | ${'bullseye'}
${'stretch'} | ${undefined} | ${undefined} | ${'bullseye'} | ${'bullseye'} ${'stretch'} | ${undefined} | ${undefined} | ${'bullseye'} | ${'bullseye'}
${'stretch'} | ${undefined} | ${undefined} | ${'stable'} | ${'bullseye'} ${'stretch'} | ${undefined} | ${undefined} | ${'stable'} | ${'bookworm'}
${'9'} | ${undefined} | ${undefined} | ${'11'} | ${'11'} ${'9'} | ${undefined} | ${undefined} | ${'11'} | ${'11'}
${'oldoldstable'} | ${undefined} | ${undefined} | ${'11'} | ${'stable'} ${'oldoldstable'} | ${undefined} | ${undefined} | ${'12'} | ${'stable'}
${'oldstable'} | ${undefined} | ${undefined} | ${'11'} | ${'stable'} ${'oldstable'} | ${undefined} | ${undefined} | ${'12'} | ${'stable'}
${'9'} | ${undefined} | ${undefined} | ${'stable'} | ${'11'} ${'9'} | ${undefined} | ${undefined} | ${'stable'} | ${'12'}
${'oldstable'} | ${undefined} | ${undefined} | ${'11'} | ${'stable'} ${'oldstable'} | ${undefined} | ${undefined} | ${'12'} | ${'stable'}
${'oldstable'} | ${undefined} | ${undefined} | ${'3'} | ${'3'} ${'oldstable'} | ${undefined} | ${undefined} | ${'3'} | ${'3'}
${'oldstable'} | ${'pin'} | ${undefined} | ${'11'} | ${'11'} ${'oldstable'} | ${'pin'} | ${undefined} | ${'11'} | ${'11'}
${'oldstable'} | ${'pin'} | ${undefined} | ${'stable'} | ${'11'} ${'oldstable'} | ${'pin'} | ${undefined} | ${'stable'} | ${'12'}
${'oldstable'} | ${'pin'} | ${undefined} | ${'bullseye'} | ${'11'} ${'oldstable'} | ${'pin'} | ${undefined} | ${'bullseye'} | ${'11'}
${'buster'} | ${'pin'} | ${undefined} | ${'11'} | ${'11'} ${'buster'} | ${'pin'} | ${undefined} | ${'11'} | ${'11'}
${'buster'} | ${'pin'} | ${undefined} | ${'stable'} | ${'11'} ${'buster'} | ${'pin'} | ${undefined} | ${'stable'} | ${'12'}
${'buster'} | ${'pin'} | ${undefined} | ${'bullseye'} | ${'11'} ${'buster'} | ${'pin'} | ${undefined} | ${'bullseye'} | ${'11'}
${'10'} | ${'pin'} | ${undefined} | ${'11'} | ${'11'} ${'10'} | ${'pin'} | ${undefined} | ${'11'} | ${'11'}
${'10'} | ${'pin'} | ${undefined} | ${'stable'} | ${'11'} ${'10'} | ${'pin'} | ${undefined} | ${'stable'} | ${'12'}
${'10'} | ${'pin'} | ${undefined} | ${'bullseye'} | ${'11'} ${'10'} | ${'pin'} | ${undefined} | ${'bullseye'} | ${'11'}
`( `(
'getNewValue("$currentValue", "$rangeStrategy", "$currentVersion", "$newVersion") === "$expected"', 'getNewValue("$currentValue", "$rangeStrategy", "$currentVersion", "$newVersion") === "$expected"',
@ -403,12 +404,12 @@ describe('modules/versioning/debian/index', () => {
${'10'} | ${'buster'} | ${0} ${'10'} | ${'buster'} | ${0}
${'6'} | ${'squeeze'} | ${0} ${'6'} | ${'squeeze'} | ${0}
${'buster'} | ${'10'} | ${0} ${'buster'} | ${'10'} | ${0}
${'oldoldstable'} | ${'8'} | ${1} ${'oldoldstable'} | ${'9'} | ${1}
${'oldstable'} | ${'oldoldstable'} | ${1} ${'oldstable'} | ${'oldoldstable'} | ${1}
${'stable'} | ${'oldstable'} | ${1} ${'stable'} | ${'oldstable'} | ${1}
${'11'} | ${'oldoldstable'} | ${2} ${'12'} | ${'oldoldstable'} | ${2}
${'10'} | ${'oldstable'} | ${0} ${'11'} | ${'oldstable'} | ${0}
${'9'} | ${'stable'} | ${-2} ${'10'} | ${'stable'} | ${-2}
`('debian.sortVersions($a, $b) === $expected ', ({ a, b, expected }) => { `('debian.sortVersions($a, $b) === $expected ', ({ a, b, expected }) => {
expect(debian.sortVersions(a, b)).toEqual(expected); expect(debian.sortVersions(a, b)).toEqual(expected);
}); });