1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-11 14:23:47 +01:00
This commit is contained in:
J. Nick Koston
2025-10-10 06:55:25 -10:00
parent dad1bf6d53
commit 243551e585
8 changed files with 15 additions and 31 deletions

View File

@@ -392,7 +392,7 @@ jobs:
python3 script/test_build_components.py -e compile -c ${{ matrix.file }}
test-build-components-splitter:
name: Split components for intelligent grouping (10 per batch)
name: Split components for intelligent grouping (15 per batch)
runs-on: ubuntu-24.04
needs:
- common
@@ -417,12 +417,12 @@ jobs:
components='${{ needs.determine-jobs.outputs.changed-components }}'
echo "Splitting components intelligently..."
output=$(python3 script/split_components_for_ci.py --components "$components" --batch-size 10 --output github)
output=$(python3 script/split_components_for_ci.py --components "$components" --batch-size 15 --output github)
echo "$output" >> $GITHUB_OUTPUT
test-build-components-split:
name: Test components with intelligent grouping
name: Test components batch (${{ matrix.components }})
runs-on: ubuntu-24.04
needs:
- common

View File

@@ -49,7 +49,7 @@ def has_test_files(component_name: str, tests_dir: Path) -> bool:
def create_intelligent_batches(
components: list[str],
tests_dir: Path,
batch_size: int = 10,
batch_size: int = 15,
) -> list[list[str]]:
"""Create batches optimized for component grouping.
@@ -161,8 +161,8 @@ def main() -> int:
"--batch-size",
"-b",
type=int,
default=10,
help="Target batch size (default: 10)",
default=15,
help="Target batch size (default: 15)",
)
parser.add_argument(
"--tests-dir",

View File

@@ -1,3 +1,6 @@
packages:
i2c: !include ../../test_build_components/common/i2c/esp32-p4-idf.yaml
esp_ldo:
- id: ldo_id
channel: 3
@@ -13,9 +16,3 @@ display:
#id: backlight_id
psram:
i2c:
sda: GPIO7
scl: GPIO8
scan: true
frequency: 400kHz

View File

@@ -1,13 +1,12 @@
modbus:
- id: mod_bus1
flow_control_pin: ${flow_control_pin}
- id: mod_bus2
uart_id: uart_bus
role: server
modbus_controller:
- id: modbus_controller1
address: 0x2
modbus_id: mod_bus1
modbus_id: modbus_bus
allow_duplicate_commands: false
on_online:
then:

View File

@@ -1,7 +1,4 @@
substitutions:
flow_control_pin: GPIO3
packages:
uart: !include ../../test_build_components/common/uart/esp32-c3-idf.yaml
modbus: !include ../../test_build_components/common/modbus/esp32-c3-idf.yaml
<<: !include common.yaml

View File

@@ -1,7 +1,4 @@
substitutions:
flow_control_pin: GPIO13
packages:
uart: !include ../../test_build_components/common/uart/esp32-idf.yaml
modbus: !include ../../test_build_components/common/modbus/esp32-idf.yaml
<<: !include common.yaml

View File

@@ -1,7 +1,4 @@
substitutions:
flow_control_pin: GPIO15
packages:
uart: !include ../../test_build_components/common/uart/esp8266-ard.yaml
modbus: !include ../../test_build_components/common/modbus/esp8266-ard.yaml
<<: !include common.yaml

View File

@@ -1,7 +1,4 @@
substitutions:
flow_control_pin: GPIO6
packages:
uart: !include ../../test_build_components/common/uart/rp2040-ard.yaml
modbus: !include ../../test_build_components/common/modbus/rp2040-ard.yaml
<<: !include common.yaml