Skip to content

Remove old board variants #15639

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
Aug 20, 2024

Conversation

mattytrentini
Copy link
Contributor

I noticed a few unusual board variants and think they should be removed.

IDF3 builds are very old now (it seems like the last successful builds are from 2021?). Can we remove them? If we want to retain the old builds for ESP32_GENERIC then we'll need to leave ESP32_GENERIC/board.json intact but we should at least remove it from UM_TINYPICO/board.json since there are no IDF3 builds for that board.

If we remove IDF3 entirely we could also slightly simplify build-boards.sh:61. I haven't made that change but can if we decide to remove IDF3.

Finally, I noticed a wlan variant for ADAFRUIT_METRO_M4_EXPRESS. I believe the samd port doesn't support variants so I think this is a mistake - and appears to be causing an unnecessary build.

Copy link

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

@dpgeorge dpgeorge added the ports Relates to multiple ports, or a new/proposed port label Aug 12, 2024
@dpgeorge
Copy link
Member

Thanks, this looks good.

IDF3 builds are very old now (it seems like the last successful builds are from 2021?). Can we remove them?

Yes I think we should remove them. If needed, one can build it themselves using IDF v3 (and this repo checked out at the appropriate commit in the far past).

If we remove IDF3 entirely we could also slightly simplify build-boards.sh:61. I haven't made that change but can if we decide to remove IDF3.

Yes, please do this as well.

Please can you split this PR into two commits:

  • remove IDF v3 variants, and the bit from build-boards.sh
  • remove the variant from ADAFRUIT_METRO_M4_EXPRESS

@robert-hh
Copy link
Contributor

There is a PR #12937 to add WLAN and BLE support for the SAMD51 family. The WLAN variant was created for that PR, and it seems to have sneaked into the master branch. But it harndly can be built, since the remainder of the PR is missing.

@mattytrentini
Copy link
Contributor Author

This should be ready now @dpgeorge 👍🏻

Copy link

codecov bot commented Aug 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.43%. Comparing base (7270b87) to head (b704ff6).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #15639   +/-   ##
=======================================
  Coverage   98.43%   98.43%           
=======================================
  Files         163      163           
  Lines       21290    21290           
=======================================
  Hits        20956    20956           
  Misses        334      334           

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

# the idf3 files for older releases that used to be explicitly built).
for variant in `cat $board_json | python3 -c "import json,sys; print(' '.join(v for v in json.load(sys.stdin).get('variants', {}).keys() if v != 'IDF3'))"`; do
# Query variants from board.json and build them.
for variant in `cat $board_json | python3 -c "import json,sys; print(' '.join(v for v in json.load(sys.stdin).get('variants', {}).keys()))"`; do
Copy link
Member

Choose a reason for hiding this comment

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

This list comprehension is simple enough that the v for v in bit can now be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course; fixed. 🤦🏻‍♂️

There is no such variant.

Signed-off-by: Matt Trentini <matt.trentini@gmail.com>
IDF 3 builds are very old now (it seems like the last successful builds are
from 2021), and the current IDF 5 is stable.  So remove IDF 3 variants.

Signed-off-by: Matt Trentini <matt.trentini@gmail.com>
@dpgeorge dpgeorge force-pushed the remove-old-variants branch from 9a79768 to b704ff6 Compare August 20, 2024 02:52
@dpgeorge dpgeorge merged commit b704ff6 into micropython:master Aug 20, 2024
65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ports Relates to multiple ports, or a new/proposed port
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants