From 9e3f88f7efe02e13506472039227e2499ccbabef Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Mon, 17 Aug 2026 15:41:36 -0700 Subject: [PATCH] fix(ci): align voxl2 group chip family with its seeder cache key The voxl2 build group carried chip_family 'native' while its seeder carried 'voxl2', so the group restored/saved under ccache-native-x64-voxl2-0-* while the seeder saved under ccache-voxl2-x64-seeder-*. The restore-keys chain can never cross that namespace gap: the seeder's warm cache is discarded every run, and cold builds fall back to the SITL seeder cache (host gcc objects, zero possible hits against aarch64-linux-gnu-gcc or hexagon-clang). Present since #27050. Give the voxl2 group chip_family 'voxl2' so it shares the seeder's key namespace, drop the now-redundant voxl2 special-casing in seeder generation, and size the voxl2 cache at 800M since it holds objects for two toolchains (aarch64-gnu + hexagon-clang) and already sits near the 400M limit. Assisted-by: Claude:claude-fable-5 Signed-off-by: Ramon Roche --- Tools/ci/build_all_config.yml | 2 ++ Tools/ci/generate_board_targets_json.py | 13 ++++--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Tools/ci/build_all_config.yml b/Tools/ci/build_all_config.yml index b53f8ff6c6a..8485ac8f9ab 100644 --- a/Tools/ci/build_all_config.yml +++ b/Tools/ci/build_all_config.yml @@ -24,6 +24,8 @@ cache: stm32f4: "800M" stm32f7: "800M" imxrt: "800M" + # voxl2 cache holds objects for two toolchains (aarch64-gnu + hexagon-clang) + voxl2: "800M" # Board grouping limits grouping: diff --git a/Tools/ci/generate_board_targets_json.py b/Tools/ci/generate_board_targets_json.py index aec6581a4e5..d3cf5e6181b 100755 --- a/Tools/ci/generate_board_targets_json.py +++ b/Tools/ci/generate_board_targets_json.py @@ -463,7 +463,7 @@ if (args.group): "container": grouped_targets[arch]['container'], "targets": comma_targets(all_targets), "arch": arch, - "chip_family": "native", + "chip_family": "voxl2", "runner": runner, "group": "voxl2-0", "len": len(all_targets), @@ -519,11 +519,7 @@ if (args.group): # Determine which chip families actually have groups active_families = set() for g in final_groups: - cf = g['chip_family'] - active_families.add(cf) - # voxl2 gets its own seeder with a different container - if g['group'].startswith('voxl2'): - active_families.add('voxl2') + active_families.add(g['chip_family']) seeders = [] for cf in sorted(active_families): @@ -537,11 +533,10 @@ if (args.group): 'runner': 'x64', }) elif cf == 'native': - # One seeder per runner arch that has native groups (exclude voxl2 - # which has its own seeder with a different container) + # One seeder per runner arch that has native groups native_runners = set() for g in final_groups: - if g['chip_family'] == 'native' and not g['group'].startswith('voxl2'): + if g['chip_family'] == 'native': native_runners.add(g['runner']) for r in sorted(native_runners): seeders.append({