Consolidate audited ESP32 targets to full releases
This commit is contained in:
1 parent
8d8c7e5885
commit
7a4e709515
2 files changed
+186
No files matched your search
@@ -42,6 +42,29 @@ assert_auto_unified Heltec_T190_repeater_ Heltec_T190_repeater_observer_mqtt
|
||||
assert_auto_unified LilyGo_TLora_V2_1_1_6_room_server LilyGo_TLora_V2_1_1_6_room_server_observer_mqtt_
|
||||
assert_auto_unified heltec_v4_r8_repeater_observer_mqtt heltec_v4_r8_repeater_observer_mqtt
|
||||
|
||||
# Only targets whose exact FULL environment was audited for partition history
|
||||
# and every capacity limit may omit their redundant portable bulk artifact.
|
||||
full_only_count=0
|
||||
for target in "${!PIO_ENV_PLATFORM_BY_NAME[@]}"; do
|
||||
if is_esp32_full_only_bulk_target "$target"; then
|
||||
full_only_count=$((full_only_count + 1))
|
||||
fi
|
||||
done
|
||||
[ "$full_only_count" -eq 47 ] || fail "expected 47 audited FULL-only targets, found $full_only_count"
|
||||
|
||||
for target in heltec_rc32_repeater Station_G2_repeater_observer_mqtt \
|
||||
SenseCapIndicator-LoRa-N16R2_companion_radio_full \
|
||||
LilyGo_Tlora_C6_companion_radio_full_ \
|
||||
LilyGo_TLora_V2_1_1_6_repeater_bridge_espnow; do
|
||||
is_esp32_full_only_bulk_target "$target" || fail "missed audited FULL-only target $target"
|
||||
done
|
||||
for target in LilyGo_TLora_V2_1_1_6_repeater_observer_mqtt_ \
|
||||
LilyGo_TLora_V2_1_1_6_companion_radio_wifi heltec_v4_r8_repeater; do
|
||||
if is_esp32_full_only_bulk_target "$target"; then
|
||||
fail "consolidated target with a capacity or partition caveat: $target"
|
||||
fi
|
||||
done
|
||||
|
||||
# Portable images and exact reduced OTA identities must not be consolidated.
|
||||
for target in heltec_v4_r8_repeater heltec_v4_r8_room_server \
|
||||
heltec_v4_r8_repeater_lora_ota_no_external_sensors; do
|
||||
@@ -104,6 +127,46 @@ done
|
||||
|| fail "observer output settings leaked into subsequent builds"
|
||||
)
|
||||
|
||||
# A canonical bulk build promotes an audited target in-place, retaining its
|
||||
# environment/mOTA identity. Explicit standard builds remain untouched above.
|
||||
(
|
||||
ESP32_FULL_BUILD=0
|
||||
BUILD_PROFILE_EFFECTIVE=standard
|
||||
BUILD_PROFILE_OVERRIDE=auto
|
||||
BUILD_PROFILE_EXPLICIT=0
|
||||
BATCH_BUILD_MODE=1
|
||||
FIRMWARE_VERSION=vtest
|
||||
RESUME_BUILD_OUTPUT=1
|
||||
FIRMWARE_FILENAME_INFIX=""
|
||||
observed_filename=""
|
||||
observed_full=0
|
||||
build_artifacts_exist() {
|
||||
observed_filename=$2
|
||||
observed_full=$ESP32_FULL_BUILD
|
||||
return 0
|
||||
}
|
||||
build_firmware heltec_rc32_repeater >/dev/null
|
||||
[ "$observed_full" = 1 ] || fail "audited bulk target did not promote to FULL"
|
||||
[[ "$observed_filename" == heltec_rc32_repeater-full-logging-ota-vtest-* ]] \
|
||||
|| fail "FULL-only bulk target lost its exact identity"
|
||||
)
|
||||
(
|
||||
ESP32_FULL_BUILD=0
|
||||
BUILD_PROFILE_EFFECTIVE=standard
|
||||
BUILD_PROFILE_OVERRIDE=standard
|
||||
BUILD_PROFILE_EXPLICIT=1
|
||||
BATCH_BUILD_MODE=1
|
||||
FIRMWARE_VERSION=vtest
|
||||
RESUME_BUILD_OUTPUT=1
|
||||
observed_full=1
|
||||
build_artifacts_exist() {
|
||||
observed_full=$ESP32_FULL_BUILD
|
||||
return 0
|
||||
}
|
||||
build_firmware heltec_rc32_repeater >/dev/null
|
||||
[ "$observed_full" = 0 ] || fail "explicit standard recovery build was promoted"
|
||||
)
|
||||
|
||||
(
|
||||
standard_built=""
|
||||
full_built=""
|
||||
@@ -120,6 +183,19 @@ done
|
||||
[ "$ESP32_LORA_OTA_APP_LIMIT" = 1310720 ] || fail "changed the 1.25 MiB portable limit"
|
||||
)
|
||||
|
||||
(
|
||||
calls=()
|
||||
REQUIRE_OTA_UPDATES=0
|
||||
run_logged_build_targets() {
|
||||
calls+=("$BUILD_PROFILE_EFFECTIVE:$ESP32_FULL_BUILD:$FIRMWARE_FILENAME_INFIX:$*")
|
||||
}
|
||||
run_logging_matrix_build_targets heltec_rc32_repeater \
|
||||
heltec_rc32_repeater_bridge_espnow >/dev/null
|
||||
[ "${#calls[@]}" -eq 1 ] || fail "FULL-only targets emitted duplicate matrix artifacts"
|
||||
[ "${calls[0]}" = 'full:1:full-logging:heltec_rc32_repeater heltec_rc32_repeater_bridge_espnow' ] \
|
||||
|| fail "matrix did not build exact FULL-only identities"
|
||||
)
|
||||
|
||||
# The default build settings retain power saving; this does not overwrite
|
||||
# preferences already stored on a device.
|
||||
[ "$FIRMWARE_PROFILE_OVERRIDE" = cascade ] || fail "default profile changed"
|
||||
|
||||
Reference in new issue
Block a user