Skip to content

mpremote/mp_errno: Fix errno.ENOTBLK error on Windows. - #17775

Merged
dpgeorge merged 1 commit into
micropython:masterfrom
Josverl:mpr/errno_on_windows
Aug 1, 2025
Merged

dpgeorge merged 1 commit into
micropython:masterfrom
Josverl:mpr/errno_on_windows

Conversation

@Josverl

@Josverl Josverl commented Jul 28, 2025 •

Copy link
Copy Markdown
Contributor

Summary

not all errors defined in stdlib errno are available on Windows.
Specifically errno.ENOTBLK is not.
Not 100% sure about availability of all other codes across platforms either, so would be good if someone can confirm that MacOS has no problems either.

This was not caught in CI, as there is no CI , nor tests for mpremote on Windows.

closes: #17773

Testing

Manual testing on Windows 11 and WSL2.

@github-actions

Copy link
Copy Markdown

Code size report:

   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:    +0 +0.000% standard
      stm32:    +0 +0.000% PYBV10
     mimxrt:    +0 +0.000% TEENSY40
        rp2:    +0 +0.000% RPI_PICO_W
       samd:    +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
  qemu rv32:    +0 +0.000% VIRT_RV32

@Josverl

Josverl commented Jul 28, 2025 •

Copy link
Copy Markdown
Contributor Author

IMO its quite unlikely that the failing test (thread/thread_gc1.py) is caused by this PR.
it has been reported as a flaky test in other PRs as well.

@codecov

codecov Bot commented Jul 28, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.38%. Comparing base (062e82a) to head (7007088).
⚠️ Report is 32 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #17775   +/-   ##
=======================================
  Coverage   98.38%   98.38%           
=======================================
  Files         171      171           
  Lines       22240    22240           
=======================================
  Hits        21881    21881           
  Misses        359      359           

☔ 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 Aug 1, 2025

@dpgeorge dpgeorge left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the fix, this looks fine.

I confirmed that errno.ENOTBLK exists on macOS on Python 3.8.9.

Not all errors defined in stdlib errno are available on Windows.
Specifically, errno.ENOTBLK is not.

Fixes issue #17773.

Signed-off-by: Jos Verlinde <[email protected]>
@dpgeorge
dpgeorge merged commit 4ba626a into micropython:master Aug 1, 2025
@Josverl
Josverl deleted the mpr/errno_on_windows branch August 1, 2025 20:39
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.

mpremote: Unknown errno.ENOTBLK on Windows

2 participants