mirror of
https://github.com/esphome/esphome.git
synced 2025-10-13 07:13:47 +01:00
docs
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -392,7 +392,7 @@ jobs:
|
|||||||
python3 script/test_build_components.py -e compile -c ${{ matrix.file }}
|
python3 script/test_build_components.py -e compile -c ${{ matrix.file }}
|
||||||
|
|
||||||
test-build-components-splitter:
|
test-build-components-splitter:
|
||||||
name: Split components for intelligent grouping (20 per batch)
|
name: Split components for intelligent grouping (30 per batch)
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
needs:
|
needs:
|
||||||
- common
|
- common
|
||||||
@@ -417,7 +417,7 @@ jobs:
|
|||||||
components='${{ needs.determine-jobs.outputs.changed-components }}'
|
components='${{ needs.determine-jobs.outputs.changed-components }}'
|
||||||
|
|
||||||
echo "Splitting components intelligently..."
|
echo "Splitting components intelligently..."
|
||||||
output=$(python3 script/split_components_for_ci.py --components "$components" --batch-size 20 --output github)
|
output=$(python3 script/split_components_for_ci.py --components "$components" --batch-size 30 --output github)
|
||||||
|
|
||||||
echo "$output" >> $GITHUB_OUTPUT
|
echo "$output" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
@@ -49,7 +49,7 @@ def has_test_files(component_name: str, tests_dir: Path) -> bool:
|
|||||||
def create_intelligent_batches(
|
def create_intelligent_batches(
|
||||||
components: list[str],
|
components: list[str],
|
||||||
tests_dir: Path,
|
tests_dir: Path,
|
||||||
batch_size: int = 20,
|
batch_size: int = 30,
|
||||||
) -> list[list[str]]:
|
) -> list[list[str]]:
|
||||||
"""Create batches optimized for component grouping.
|
"""Create batches optimized for component grouping.
|
||||||
|
|
||||||
@@ -161,8 +161,8 @@ def main() -> int:
|
|||||||
"--batch-size",
|
"--batch-size",
|
||||||
"-b",
|
"-b",
|
||||||
type=int,
|
type=int,
|
||||||
default=20,
|
default=30,
|
||||||
help="Target batch size (default: 20)",
|
help="Target batch size (default: 30)",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--tests-dir",
|
"--tests-dir",
|
||||||
|
Reference in New Issue
Block a user