Skip to content

Fix/pre run failure#405

Merged
hfudev merged 2 commits intomainfrom
fix/pre-run-failure
Mar 2, 2026
Merged

Fix/pre run failure#405
hfudev merged 2 commits intomainfrom
fix/pre-run-failure

Conversation

@hfudev
Copy link
Copy Markdown
Member

@hfudev hfudev commented Feb 26, 2026

closes #404

also move unit_test_app_esp32, unit_test_app_esp32c3 to the same app unit_test_app_idf with two build dirs.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request implements automatic retry logic for pre-run failures in unity test execution and refactors the Wokwi simulation setup to properly pass flash size parameters.

Changes:

  • Added automatic retry with hard reset when test case preparation fails in unity test runner
  • Refactored Wokwi simulation setup to consolidate start_simulation call and properly pass flash_size parameter for IDF firmware

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pytest-embedded-wokwi/pytest_embedded_wokwi/wokwi.py Refactored to build kwargs dictionary before calling start_simulation, adding flash_size parameter for IDF firmware
pytest-embedded-idf/pytest_embedded_idf/unity_tester.py Added retry logic in _run_normal_case and _run_multi_stage_case to handle pre-run failures with hard reset

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 26, 2026

Title Coverage Tests Skipped Failures Errors Time
Qemu Coverage 7 0 💤 0 ❌ 0 🔥 25.281s ⏱️
3.14 X64 Coverage 103 14 💤 0 ❌ 0 🔥 13m 59s ⏱️
3.10 ARM64 Coverage 103 16 💤 1 ❌ 0 🔥 10m 45s ⏱️

@hfudev hfudev force-pushed the fix/pre-run-failure branch from 0d95616 to a26de86 Compare March 2, 2026 10:06
@hfudev hfudev merged commit a8186cf into main Mar 2, 2026
5 of 6 checks passed
@hfudev hfudev deleted the fix/pre-run-failure branch March 2, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reset the dut when get the pre_run_failure for the first time (CII-119)

2 participants