micropython-builder icon indicating copy to clipboard operation
micropython-builder copied to clipboard

Why are we explicitly building with MicroPython v1.24.0?

Open zachmoshe opened this issue 3 months ago • 7 comments

See this line in init.sh: https://github.com/v923z/micropython-builder/blob/master/scripts/init.sh#L25

Not that MP release that many new versions but is there a reason not to take latest (or the latest version tag)?

zachmoshe avatar Oct 12 '25 11:10 zachmoshe

You're right, there is no reason for tying the firmware to that particular version. Do you want to fix this?

v923z avatar Oct 12 '25 16:10 v923z

I think https://github.com/v923z/micropython-builder/pull/36 breaks some of the builds. There should be 19 artifacts, there are only 15 now. We might have to roll this back to 1.24.

v923z avatar Oct 15 '25 18:10 v923z

I'm not 100% sure but I tried to look at logs and there's another script that pulls micropython (for other boards). It seems that they are using the same folder and it tried to "pull v1.24.0" and caused a detached head for all other runs..

zachmoshe avatar Oct 15 '25 20:10 zachmoshe

Well, looks like the ESPs have some problem with a dependency on idf (>=5.2.0).

CMake Error at /home/runner/work/micropython-builder/micropython-builder/esp-idf/tools/cmake/build.cmake:519 (message):
  ERROR: Because project depends on idf (>=5.2.0) which doesn't match any
  versions, version solving failed.

Probably fixable but perhaps deeper than we thought.. I agree - let's roll back at least for now

zachmoshe avatar Oct 16 '25 06:10 zachmoshe

https://github.com/v923z/micropython-builder/commit/175e086e91d84afbc321113e221b7f05568e40e2 sets back the original state.

v923z avatar Oct 16 '25 20:10 v923z

Given that b36f2fc7c663b1198d7b0ec80a4780f896fedb54 passes with the ESP boards, but 175e086e91d84afbc321113e221b7f05568e40e2 doesn't, I suspect that the problem is not with the version itself, but with how the constant in

git -C micropython checkout ${MICROPYTHON_TAG}

is evaluated.

v923z avatar Oct 16 '25 20:10 v923z

You're right. I found one problem with the variable itself (I do the "git tag" not inside the micropython folder). Fixed that, but I still have the error on the ESPs:

  ERROR: Because project depends on idf (>=5.2.0) which doesn't match any

I tried to install esp-idf to the latest tag as well in the install_esp_idf script but I'm getting other errors when building micropython. See here if you have any idea: https://github.com/zachmoshe/micropython-builder/actions/runs/18807038294/job/53662695141

zachmoshe avatar Oct 26 '25 09:10 zachmoshe