Skip to content

Conversation

@smurfix
Copy link
Contributor

@smurfix smurfix commented Dec 13, 2025

Summary

This commit adds a module to .frozen that contains the first 8 bytes of the SHA256 of the content of every frozen .mpy file in there.

Rationale: I want to auto-upload updated modules to my microcontrollers. The uploader runs mpy-cross on the updated file and wants to compare the result with the code on the controller … which it can't, because .frozen is not a file system.

Testing

I have used this code for several months in the MoaT project.

This module contains the first 8 bytes of the SHA256 of the source code
of every frozen .mpy file.

Signed-off-by: Matthias Urlichs <matthias@urlichs.de>
Signed-Off-By: Matthias Urlichs <matthias@urlichs.de>
Signed-off-by: Matthias Urlichs <matthias@urlichs.de>
@codecov
Copy link

codecov bot commented Dec 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.38%. Comparing base (78ff170) to head (b87cf71).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #18563   +/-   ##
=======================================
  Coverage   98.38%   98.38%           
=======================================
  Files         171      171           
  Lines       22300    22300           
=======================================
  Hits        21939    21939           
  Misses        361      361           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dpgeorge dpgeorge added the tools Relates to tools/ directory in source, or other tooling label Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools Relates to tools/ directory in source, or other tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants