From 90ac73e24210a14f2f687201bb14fcc3d6734e5b Mon Sep 17 00:00:00 2001 From: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Date: Wed, 25 Sep 2024 23:22:57 +0200 Subject: [PATCH 1/4] fix(datasource/github-runners): add macOS 15 beta, Ubuntu 24.04 is stable --- lib/modules/datasource/github-runners/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/modules/datasource/github-runners/index.ts b/lib/modules/datasource/github-runners/index.ts index 71dc33436a870e..e63d70b24b8fd1 100644 --- a/lib/modules/datasource/github-runners/index.ts +++ b/lib/modules/datasource/github-runners/index.ts @@ -14,13 +14,16 @@ export class GithubRunnersDatasource extends Datasource { */ private static readonly releases: Record = { ubuntu: [ - { version: '24.04', isStable: false }, + { version: '24.04' }, { version: '22.04' }, { version: '20.04' }, { version: '18.04', isDeprecated: true }, { version: '16.04', isDeprecated: true }, ], macos: [ + { version: '15', isStable: false }, + { version: '15-large', isStable: false }, + { version: '15-xlarge', isStable: false }, { version: '14' }, { version: '14-large' }, { version: '14-xlarge' }, From c885ae222fc993c174ce249754aff95f0d199233 Mon Sep 17 00:00:00 2001 From: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Date: Wed, 25 Sep 2024 21:42:35 +0000 Subject: [PATCH 2/4] Update Jest test --- lib/modules/datasource/github-runners/index.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/modules/datasource/github-runners/index.spec.ts b/lib/modules/datasource/github-runners/index.spec.ts index aa2bcbd3e8effe..3d9d0ca048ba2a 100644 --- a/lib/modules/datasource/github-runners/index.spec.ts +++ b/lib/modules/datasource/github-runners/index.spec.ts @@ -15,7 +15,7 @@ describe('modules/datasource/github-runners/index', () => { { version: '18.04', isDeprecated: true }, { version: '20.04' }, { version: '22.04' }, - { version: '24.04', isStable: false }, + { version: '24.04' }, ], sourceUrl: 'https://github.com/actions/runner-images', }); @@ -39,6 +39,9 @@ describe('modules/datasource/github-runners/index', () => { { version: '14-xlarge' }, { version: '14-large' }, { version: '14' }, + { version: '15-xlarge', isStable: false }, + { version: '15-large', isStable: false }, + { version: '15', isStable: false }, ], sourceUrl: 'https://github.com/actions/runner-images', }); From a09a0c36c59c08b78322bc45e8661cb920d7607f Mon Sep 17 00:00:00 2001 From: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Date: Wed, 25 Sep 2024 21:49:34 +0000 Subject: [PATCH 3/4] Update comment --- lib/modules/datasource/github-runners/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/modules/datasource/github-runners/index.ts b/lib/modules/datasource/github-runners/index.ts index e63d70b24b8fd1..9c998e98dbd298 100644 --- a/lib/modules/datasource/github-runners/index.ts +++ b/lib/modules/datasource/github-runners/index.ts @@ -10,7 +10,10 @@ export class GithubRunnersDatasource extends Datasource { 'We use the URL: https://github.com/actions/runner-images.'; /** - * Only add stable runners to the datasource. See datasource readme for details. + * Unstable runners must have the `isStable: false` property. + * Deprecated runners must have the `isDeprecated: true` property. + * Stable runners should have no extra properties. + * For more details, read the github-runners datasource readme. */ private static readonly releases: Record = { ubuntu: [ From ffa156a99eb7b0e729aca8746bece7f2addbe8ea Mon Sep 17 00:00:00 2001 From: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Date: Wed, 25 Sep 2024 22:01:59 +0000 Subject: [PATCH 4/4] Revert Ubuntu 24.04 change to avoid merge conflict --- lib/modules/datasource/github-runners/index.spec.ts | 2 +- lib/modules/datasource/github-runners/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/datasource/github-runners/index.spec.ts b/lib/modules/datasource/github-runners/index.spec.ts index 3d9d0ca048ba2a..f58a36a8fe9521 100644 --- a/lib/modules/datasource/github-runners/index.spec.ts +++ b/lib/modules/datasource/github-runners/index.spec.ts @@ -15,7 +15,7 @@ describe('modules/datasource/github-runners/index', () => { { version: '18.04', isDeprecated: true }, { version: '20.04' }, { version: '22.04' }, - { version: '24.04' }, + { version: '24.04', isStable: false }, ], sourceUrl: 'https://github.com/actions/runner-images', }); diff --git a/lib/modules/datasource/github-runners/index.ts b/lib/modules/datasource/github-runners/index.ts index 9c998e98dbd298..71857166f0e90a 100644 --- a/lib/modules/datasource/github-runners/index.ts +++ b/lib/modules/datasource/github-runners/index.ts @@ -17,7 +17,7 @@ export class GithubRunnersDatasource extends Datasource { */ private static readonly releases: Record = { ubuntu: [ - { version: '24.04' }, + { version: '24.04', isStable: false }, { version: '22.04' }, { version: '20.04' }, { version: '18.04', isDeprecated: true },