CircuitPython_Community_Bundle icon indicating copy to clipboard operation
CircuitPython_Community_Bundle copied to clipboard

Packaging problems

Open elpekenin opened this issue 8 months ago • 0 comments

As diagnosed/solved on discord earlier today (you can thank my rf"..." later 😉)

With the current configuration of actions, if the "compilation" to .mpy fails, the zip is not generated and circup will get broken.

On this very situation it was due to me using a feature that mpy-cross does not support (raw fstring), which caused the process to error out. However i wouldnt be surprised if a fail somewhere else in the pipeline also causes this kind of problem.

Probably the easier and best solution is to do some fallback logic as in:

try:
    latest_zip = run_pipeline()
except:
    latest_zip = previous_one

But since i have no idea about GHA (nor perms to do anything) i'm simply noting this so it doesnt get forgotten far in the chat's history

elpekenin avatar Jun 08 '24 21:06 elpekenin