From 5f1186e062941dcdc446bf2cd000e014684b665b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Sun, 26 Feb 2023 21:44:09 +0000 Subject: [PATCH 1/4] Set max-parallel to matrix jobs --- .github/workflows/deploy-ALPHA-flavors.yml | 1 + .github/workflows/deploy-BETA-flavors.yml | 1 + .github/workflows/deploy-BETA-linters.yml | 1 + .github/workflows/deploy-DEV-linters.yml | 1 + .github/workflows/deploy-RELEASE-flavors.yml | 1 + .github/workflows/deploy-RELEASE-linters.yml | 1 + 6 files changed, 6 insertions(+) diff --git a/.github/workflows/deploy-ALPHA-flavors.yml b/.github/workflows/deploy-ALPHA-flavors.yml index d1a7598d96e..a8f274480e1 100644 --- a/.github/workflows/deploy-ALPHA-flavors.yml +++ b/.github/workflows/deploy-ALPHA-flavors.yml @@ -46,6 +46,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: fail-fast: false + max-parallel: 2 matrix: os: [ubuntu-latest] # flavors-start diff --git a/.github/workflows/deploy-BETA-flavors.yml b/.github/workflows/deploy-BETA-flavors.yml index 6fa056514a0..4f7cf51ee25 100644 --- a/.github/workflows/deploy-BETA-flavors.yml +++ b/.github/workflows/deploy-BETA-flavors.yml @@ -48,6 +48,7 @@ jobs: name: beta-flavors strategy: fail-fast: false + max-parallel: 3 matrix: os: [ubuntu-latest] # flavors-start diff --git a/.github/workflows/deploy-BETA-linters.yml b/.github/workflows/deploy-BETA-linters.yml index c6317befc12..96b97d3420a 100644 --- a/.github/workflows/deploy-BETA-linters.yml +++ b/.github/workflows/deploy-BETA-linters.yml @@ -63,6 +63,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: fail-fast: false + max-parallel: 2 matrix: os: [ubuntu-latest] # linters-start diff --git a/.github/workflows/deploy-DEV-linters.yml b/.github/workflows/deploy-DEV-linters.yml index 375b3d65aef..f7fc5fda1e5 100644 --- a/.github/workflows/deploy-DEV-linters.yml +++ b/.github/workflows/deploy-DEV-linters.yml @@ -65,6 +65,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: fail-fast: false + max-parallel: 4 matrix: os: [ubuntu-latest] # linters-start diff --git a/.github/workflows/deploy-RELEASE-flavors.yml b/.github/workflows/deploy-RELEASE-flavors.yml index 290cd92cbec..96d9ced545b 100644 --- a/.github/workflows/deploy-RELEASE-flavors.yml +++ b/.github/workflows/deploy-RELEASE-flavors.yml @@ -38,6 +38,7 @@ jobs: name: latest-flavors strategy: fail-fast: false + max-parallel: 6 matrix: os: [ubuntu-latest] # flavors-start diff --git a/.github/workflows/deploy-RELEASE-linters.yml b/.github/workflows/deploy-RELEASE-linters.yml index b1f7760e400..a244adbc42f 100644 --- a/.github/workflows/deploy-RELEASE-linters.yml +++ b/.github/workflows/deploy-RELEASE-linters.yml @@ -39,6 +39,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: fail-fast: false + max-parallel: 3 matrix: os: [ubuntu-latest] # linters-start From a7935a75928c72519cf7987375cf891331278a7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Sun, 26 Feb 2023 21:30:08 -0500 Subject: [PATCH 2/4] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8bc6fd32fb..e41e87ed8a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l - Authenticate to GitHub API during docker build to avoid reaching limits - Remove apk go package install in images where possible to decrease image sizes, by @echoix in - Create a slash PR bot to run `./build.sh` command manually on PRs, by @echoix in [#2353](https://github.com/oxsecurity/megalinter/pull/2353) and [#2381](https://github.com/oxsecurity/megalinter/pull/2381) + - Limit parallel execution of large job matrix in the workflows with max-parallel in order to keep runners available for other jobs, by @echoix in [#2397](https://github.com/oxsecurity/megalinter/pull/2397) - Fixes - Replace deprecated spectral package, by @bdovaz in by @bdovaz in From 2c5efca40f9d707f4be969796e13f86782915aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Mon, 27 Feb 2023 06:40:17 -0500 Subject: [PATCH 3/4] Update .github/workflows/deploy-RELEASE-flavors.yml --- .github/workflows/deploy-RELEASE-flavors.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy-RELEASE-flavors.yml b/.github/workflows/deploy-RELEASE-flavors.yml index 96d9ced545b..290cd92cbec 100644 --- a/.github/workflows/deploy-RELEASE-flavors.yml +++ b/.github/workflows/deploy-RELEASE-flavors.yml @@ -38,7 +38,6 @@ jobs: name: latest-flavors strategy: fail-fast: false - max-parallel: 6 matrix: os: [ubuntu-latest] # flavors-start From 754820feefe11485ba2ecde5cf24bf9867650deb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Mon, 27 Feb 2023 06:40:23 -0500 Subject: [PATCH 4/4] Update .github/workflows/deploy-RELEASE-linters.yml --- .github/workflows/deploy-RELEASE-linters.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy-RELEASE-linters.yml b/.github/workflows/deploy-RELEASE-linters.yml index a244adbc42f..b1f7760e400 100644 --- a/.github/workflows/deploy-RELEASE-linters.yml +++ b/.github/workflows/deploy-RELEASE-linters.yml @@ -39,7 +39,6 @@ jobs: runs-on: ${{ matrix.os }} strategy: fail-fast: false - max-parallel: 3 matrix: os: [ubuntu-latest] # linters-start