1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-10 05:43:48 +01:00

[ci] Reduce component test group size to prevent runner disk exhaustion (#11121)

This commit is contained in:
J. Nick Koston
2025-10-08 08:24:26 -10:00
committed by GitHub
parent b709ff84c3
commit 82bdb08884

View File

@@ -391,7 +391,7 @@ jobs:
./script/test_build_components -e compile -c ${{ matrix.file }}
test-build-components-splitter:
name: Split components for testing into 20 groups maximum
name: Split components for testing into 14 components per group
runs-on: ubuntu-24.04
needs:
- common
@@ -402,10 +402,10 @@ jobs:
steps:
- name: Check out code from GitHub
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Split components into 20 groups
- name: Split components into groups of 14
id: split
run: |
components=$(echo '${{ needs.determine-jobs.outputs.changed-components }}' | jq -c '.[]' | shuf | jq -s -c '[_nwise(20) | join(" ")]')
components=$(echo '${{ needs.determine-jobs.outputs.changed-components }}' | jq -c '.[]' | shuf | jq -s -c '[_nwise(14) | join(" ")]')
echo "components=$components" >> $GITHUB_OUTPUT
test-build-components-split: