fix(storage): mark storage pytest apps flaky in CI

This commit is contained in:
sonika.rathi
2026-07-31 08:54:24 +02:00
parent a1325b694d
commit 310502e340
4 changed files with 21 additions and 8 deletions
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2026 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import re
@@ -21,5 +21,15 @@ def test_examples_spiffs(dut: Dut) -> None:
rb'example: SPIFFS unmounted',
)
for msg in message_list:
dut.expect(re.compile(msg), timeout=60)
# Startup is fail-fast (Initializing SPIFFS appears quickly).
# First-boot format of ~960KB SPIFFS can exceed 120s on esp32c3 CI UART runners,
# so allow up to 240s for format/remount; remaining expects use 120s.
dut.expect(re.compile(message_list[0]), timeout=30)
spiffs_format = rb'SPIFFS: mount failed, -10025\. formatting\.\.\.'
format_or_partition = re.compile(rb'(?:' + spiffs_format + rb'|' + message_list[1] + rb')')
if dut.expect(format_or_partition, timeout=240) == 0:
dut.expect(re.compile(message_list[1]), timeout=240)
for msg in message_list[2:]:
dut.expect(re.compile(msg), timeout=120)