Skip to content

falcon-lab: validate npuvm checksum#820

Merged
taspelund merged 1 commit into
mainfrom
trey/falcon-checksum
Jul 9, 2026
Merged

falcon-lab: validate npuvm checksum#820
taspelund merged 1 commit into
mainfrom
trey/falcon-checksum

Conversation

@taspelund

Copy link
Copy Markdown
Contributor

falcon-lab: validate npuvm checksum

Before using the downloaded npuvm, we should validate its checksum.
This ensures that in cases where the download fails or results in a
corrupted file, we can fail early instead of waiting for later test
logic to detect the issue (e.g. timeouts in wait_for_dpd()).

Signed-off-by: Trey Aspelund trey@oxidecomputer.com

@taspelund taspelund self-assigned this Jul 8, 2026
@taspelund taspelund added the CI label Jul 8, 2026
Before using the downloaded npuvm, we should validate its checksum.
This ensures that in cases where the download fails or results in a
corrupted file, we can fail early instead of waiting for later test
logic to detect the issue (e.g. timeouts in wait_for_dpd()).

Signed-off-by: Trey Aspelund <trey@oxidecomputer.com>
@taspelund taspelund force-pushed the trey/falcon-checksum branch from b035fe7 to 96269a6 Compare July 8, 2026 22:34
@taspelund taspelund marked this pull request as ready for review July 8, 2026 22:34
@taspelund

Copy link
Copy Markdown
Contributor Author

Tested with a temp commit to corrupt the npuvm file in order to force the retry logic to be exercised, which worked correctly. The temp commit has since been removed.

Logs from run w/ temp commit:

2026-07-08T21:39:10.548Z        Jul 08 21:39:10.535 DEBG [sc] ox: executing command `echo corrupt >> npuvm`
2026-07-08T21:39:10.614Z        Jul 08 21:39:10.601 DEBG [sc] ox: starting
2026-07-08T21:39:10.614Z        Jul 08 21:39:10.601 DEBG [sc] ox: connecting to [::1]:58952
2026-07-08T21:39:10.638Z        Jul 08 21:39:10.602 DEBG [sc] ox waiting for prompt
2026-07-08T21:39:10.639Z        Jul 08 21:39:10.612 DEBG [sc] ox: logging in
2026-07-08T21:39:10.703Z        Jul 08 21:39:10.690 DEBG [sc] ox: executing command `cat npuvm.sha256.txt`
2026-07-08T21:39:10.769Z        Jul 08 21:39:10.757 DEBG [sc] ox: starting
2026-07-08T21:39:10.769Z        Jul 08 21:39:10.757 DEBG [sc] ox: connecting to [::1]:58952
2026-07-08T21:39:10.794Z        Jul 08 21:39:10.757 DEBG [sc] ox waiting for prompt
2026-07-08T21:39:10.794Z        Jul 08 21:39:10.767 DEBG [sc] ox: logging in
2026-07-08T21:39:10.868Z        Jul 08 21:39:10.855 DEBG [sc] ox: executing command `digest -a sha256 npuvm`
2026-07-08T21:39:10.956Z        Jul 08 21:39:10.943 WARN ox: npuvm fetch/verify attempt 3/5 failed: npuvm checksum mismatch: expected "28c989908cc7be1934673a7eb232b21c9eebe300c7a23ef84df1d9ba2f280948", got "3121edb5c5fddef0fe65b350f6b49f07c8f8472b4d98b06ffd6c4071feaefeb3"
2026-07-08T21:39:10.956Z        Jul 08 21:39:10.943 DEBG [sc] ox: starting
2026-07-08T21:39:10.956Z        Jul 08 21:39:10.943 DEBG [sc] ox: connecting to [::1]:58952
2026-07-08T21:39:10.980Z        Jul 08 21:39:10.944 DEBG [sc] ox waiting for prompt
2026-07-08T21:39:10.980Z        Jul 08 21:39:10.954 DEBG [sc] ox: logging in
2026-07-08T21:39:11.054Z        Jul 08 21:39:11.042 DEBG [sc] ox: executing command `curl --fail --retry 5 --retry-all-errors --remote-name-all -L https://buildomat.eng.oxide.computer/public/file/oxidecomputer//softnpu/image/fd2c726815cdb03c2687e1bf2912a9184905557b/npuvm https://buildomat.eng.oxide.computer/public/file/oxidecomputer//softnpu/image/fd2c726815cdb03c2687e1bf2912a9184905557b/npuvm.sha256.txt`

@taspelund taspelund merged commit faff6da into main Jul 9, 2026
20 checks passed
@taspelund taspelund deleted the trey/falcon-checksum branch July 9, 2026 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants