• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pybricks / pybricks-micropython / 20373316440
56%

Build:
DEFAULT BRANCH: master
Ran 19 Dec 2025 02:43PM UTC
Jobs 2
Files 139
Run time 14min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Dec 2025 02:41PM UTC coverage: 55.816%. Remained the same
20373316440

push

github

web-flow
pbio/drv/uart_debug_first_port: Log on panic.

It's helpful when you crash to see what happens right before you
crash. For example, if you add a log message "about to dereference
sketchy pointer" and then you get a segfault, you'd love to know
whether that message occurred. This change makes it so that at least
on EV3, we will.

This also adds "pbdrv_log" as an alias for pbdrv_uart_debug_printf.
Usually, platforms make it easy to log debug messages, and we should
be no different. C.f. `ESP_LOGI`, Zephyr's `LOG_ERR`, glog's
`LOG(WARNING)` etc.

Tested by adding the following code to pbdrv_init.

```
    pbdrv_log("test\n");

    lwrb_t* rb = (lwrb_t*)0x1281441490;
    pbdrv_log("%p\n", lwrb_get_free(rb));
```

Before this, the "test" would not appear before the panic.
After, it does. If a panic occurs while some messages are pending
in the uart send state, some bytes may be duplicated on the log.

4611 of 8261 relevant lines covered (55.82%)

16291554.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 PBIO - 20373316440.1 19 Dec 2025 02:45PM UTC 73
66.1
GitHub Action Run
2 virtualhub - 20373316440.2 19 Dec 2025 02:43PM UTC 114
45.04
GitHub Action Run
Source Files on build 20373316440
  • Tree
  • List 139
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20373316440
  • 0b137106 on github
  • Prev Build on usb-bt (#20372854590)
  • Next Build on master (#20379128766)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc