ci: add interrupted-OTA swap-move canary#2648
Open
neilberkman wants to merge 1 commit intomcu-tools:mainfrom
Open
ci: add interrupted-OTA swap-move canary#2648neilberkman wants to merge 1 commit intomcu-tools:mainfrom
neilberkman wants to merge 1 commit intomcu-tools:mainfrom
Conversation
a467c2d to
0c5f179
Compare
6a97e6b to
d737a29
Compare
d737a29 to
baa1fac
Compare
8fa90d5 to
498516c
Compare
3a29af8 to
0b5ea3e
Compare
Pin tardigrade action at 2dd6e87 which includes: - update_sequence multi-phase support - sweep_hash_bypass_symbols rename (no more footgun) - hook-fault command_drop implementation - VTOR settle fix for copy-on-boot Signed-off-by: Neil Berkman <neil@mirala.io>
0b5ea3e to
ed2e613
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MCUboot has had real interrupted-OTA regressions in swap-using-move and revert handling where a power cut during upgrade leaves the device bricked or booting the wrong image. This PR adds a post-merge canary for that failure class on
mainso new regressions in that path are caught earlier in CI.The canary is implemented with tardigrade, a Renode-based fault-injection harness for OTA boot paths. In one representative
swap-using-moveconfiguration onnrf52840dk_nrf52840, it builds MCUboot, builds and signs twohello_worldimages, injects power-loss faults across the upgrade path, and fails if any fault point bricks the device or leaves it on the wrong image.What this workflow does:
mainin one representative swap-move configurationhello_worldimages with MCUboot's RSA-2048 test key so the image format matches the bootloader configurationmainwhen relevant OTA files change, weekly on a schedule, and manually viaworkflow_dispatchmainchurnScope:
#2100/#2199class#2109), different-sized images, alternate validation policies, or other swap modesAbout the external action: