Skip to content

tools/autobuild: Print consistent msgs for start/pass/fail board build.#19249

Open
dpgeorge wants to merge 3 commits into
micropython:masterfrom
dpgeorge:tools-autobuild-remove-use-of-id
Open

tools/autobuild: Print consistent msgs for start/pass/fail board build.#19249
dpgeorge wants to merge 3 commits into
micropython:masterfrom
dpgeorge:tools-autobuild-remove-use-of-id

Conversation

@dpgeorge
Copy link
Copy Markdown
Member

Summary

Consistent messages are now printed to stdout (along with the main output of the build process) when the build starts, and when it succeeds or fails.

For example:

    bash: Autobuild started for RPI_PICO
    ...
    ...
    bash: Autobuild succeeded for RPI_PICO

Or in the case of a failure:

    bash: Autobuild started for RPI_PICO
    ...
    ...
    bash: Autobuild failed for RPI_PICO

That helps searching the output logs for the results of all builds. And if something failed, it's easy to locate the rest of the build logs for the failure (they will be above the "Autobuild failed" message).

Testing

Tested locally running the example at the top of the script, namely:

MICROPY_AUTOBUILD_MAKE="make -j8" build_board boards/RPI_PICO/board.json -latest /tmp uf2

That prints the messages correctly. Also manually added a build error to check that the fail message was printed correctly.

Trade-offs and Alternatives

Could instead generate a json file with the build results. But not sure that's worth the effort, and it would then be hard to find the rest of the build logs corresponding to the failed build (especially when there are >200 boards being built).

Generative AI

None used.

dpgeorge added 3 commits May 21, 2026 14:29
This "id" entry was removed from all `board.json` files in commit
1a99f74.  Replace its use with the default
value which is the board name.

Signed-off-by: Damien George <damien@micropython.org>
Consistent messages are now printed to stdout (along with the main output
of the build process) when the build starts, and when it succeeds or fails.

For example:

    bash: Autobuild started for RPI_PICO
    ...
    ...
    bash: Autobuild succeeded for RPI_PICO

Or in the case of a failure:

    bash: Autobuild started for RPI_PICO
    ...
    ...
    bash: Autobuild failed for RPI_PICO

That helps searching the output logs for the results of all builds.  And if
something failed, it's easy to locate the rest of the build logs for the
failure (they will be above the "Autobuild failed" message).

Signed-off-by: Damien George <damien@micropython.org>
Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge dpgeorge added the tools Relates to tools/ directory in source, or other tooling label May 21, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.47%. Comparing base (dc33f04) to head (5628b15).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #19249   +/-   ##
=======================================
  Coverage   98.47%   98.47%           
=======================================
  Files         176      176           
  Lines       22845    22845           
=======================================
  Hits        22497    22497           
  Misses        348      348           

☔ 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.

@github-actions
Copy link
Copy Markdown

Code size report:

Reference:  alif/mphalport: Clear GPIO interrupt flag when enabling IRQ. [dc33f04]
Comparison: tools/autobuild: Update example usage of script. [merge of 5628b15]
  mpy-cross:    +0 +0.000% 
   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:    +0 +0.000% standard
      stm32:    +0 +0.000% PYBV10
      esp32:    +0 +0.000% ESP32_GENERIC
     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

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.

1 participant