Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve MSYS2-based CI builds. #14188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 25, 2024
Merged

Conversation

stinos
Copy link
Contributor

@stinos stinos commented Mar 26, 2024

This builds on #10263, fixing a mistake I once made when writing the MSYS2 installation instructions: the correct (well, for what we need) package to install for Python on MSYS2 is <mingwprefix>-python3 not plain python3. This way one single Python version can be used both for running run-tests.py and getting the expected test output.

Note these days MSYS2 also has an 'ucrt64' environment which apparently has a bunch of floating point related fixes we've sort of long been waiting for, but it's unclear to me if mingw64 is going to be deprecated so I only added a comment about that.

@dlech FYI

Now, I only figured this out after RDP-ing into the action runner because I didn't notice at first that the way I setup my local MSYS2 environment used different instructions from the one in windows/README.md. However the process to RDP into a github action runner mentioned in #10263 does not work anymore since that repository has been disabled due to a violation of GitHub's terms of service. I skimmed over those terms but really have no idea which terms exactly.. @dpgeorge these instructions can be pretty useful imo, and the basic principle is simple enough and there are multiple solutions to implement it, but I have no idea if I can post them here and/or include them in the docs somewhere - what do you think?

Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.43%. Comparing base (233f5ce) to head (1f907a2).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #14188   +/-   ##
=======================================
  Coverage   98.43%   98.43%           
=======================================
  Files         161      161           
  Lines       21281    21281           
=======================================
  Hits        20948    20948           
  Misses        333      333           

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

Copy link

github-actions bot commented Mar 26, 2024

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

stinos added 2 commits July 25, 2024 16:22
Install the mingw variant of Python since it behaves more like a 'real'
Windows CPython than the msys2 variant: os.name == 'nt', not 'posix'.  Note
that os.sep is still '/' though so we don't actually need to skip the
import_file test.  This way one single Python version can be used both for
running run-tests.py and getting the expected test output.

Signed-off-by: stijn <[email protected]>
@dpgeorge
Copy link
Member

Thanks for the patch, this is a nice clean up / improvement.

@dpgeorge these instructions can be pretty useful imo, and the basic principle is simple enough and there are multiple solutions to implement it, but I have no idea if I can post them here and/or include them in the docs somewhere - what do you think?

I agree the RDP instructions are useful.

Maybe we can add them in the wiki here on github?

@dpgeorge dpgeorge merged commit 1f907a2 into micropython:master Jul 25, 2024
64 checks passed
@stinos stinos deleted the wincibuildfix branch October 7, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants