Skip to content

ci: add recovery image test#964

Open
alayander wants to merge 2 commits intotenstorrent:mainfrom
alayander:recovery-image-ci-test
Open

ci: add recovery image test#964
alayander wants to merge 2 commits intotenstorrent:mainfrom
alayander:recovery-image-ci-test

Conversation

@alayander
Copy link
Contributor

Adds a e2e test to validates booting into recovery CMFW.

@alayander alayander force-pushed the recovery-image-ci-test branch 7 times, most recently from 1a96c09 to 591697e Compare January 22, 2026 16:26
@alayander alayander marked this pull request as ready for review January 22, 2026 16:47
@alayander
Copy link
Contributor Author

@danieldegrasse @afongTT requesting reviews for this PR

@alayander
Copy link
Contributor Author

Regarding naming, would it be better to rename this test as fallback image instead of recovery image? This way there won't be as much confusion with the recovery process

return ansi_escape.sub("", s)


try:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you import this code from e2e-smoke.py instead?

Alternatively if we need a better home for this, feel free to make a new py file that smoke/stress/recovery use.

rm -rf $ZEPHYR_BASE/build-dmc
fi

if [[ "$TEST_SET" == *"recovery-flash"* ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Feels like this call could be made on line 86 with a logical OR of some sort on the condition on 84. Tag and outdir changes so be mindful of that.

Copy pasting this huge string for each different type of test suite I want to run seems like overkill.

(But maybe I should log this complaint with twister itself.)

@alayander alayander force-pushed the recovery-image-ci-test branch from 591697e to 57bb6d7 Compare January 22, 2026 19:02
@alayander alayander added the ci ♾️ Continuous Integration label Jan 23, 2026
Fix test for verifying recovery image functionality to match build output and
tt_boot_fs. The test now properly boots into recovery image after attempting
to load corrupted main image and flashes back regular firmware and works on
multi-chip boards.

Signed-off-by: Alexander Lay <alexanderlay@tenstorrent.com>
Adds twister command to call recovery-flash test in e2e test script.

Signed-off-by: Alexander Lay <alexanderlay@tenstorrent.com>
@alayander alayander force-pushed the recovery-image-ci-test branch 2 times, most recently from 84756be to cc2d06d Compare January 29, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci ♾️ Continuous Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants