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

[ci] Fix WiFi testing mode validation and component splitter for variant-only tests (#11481)

This commit is contained in:
J. Nick Koston
2025-10-22 09:10:24 -10:00
committed by GitHub
parent 77141d3e83
commit 1c67a61945
2 changed files with 16 additions and 7 deletions

View File

@@ -118,8 +118,13 @@ def create_intelligent_batches(
continue
# Get signature from any platform (they should all have the same buses)
# Components not in component_buses were filtered out by has_test_files check
comp_platforms = component_buses[component]
# Components not in component_buses may only have variant-specific tests
comp_platforms = component_buses.get(component)
if not comp_platforms:
# Component has tests but no analyzable base config - treat as no buses
signature_groups[(ALL_PLATFORMS, NO_BUSES_SIGNATURE)].append(component)
continue
for platform, buses in comp_platforms.items():
if buses:
signature = create_grouping_signature({platform: buses}, platform)