mbox series

[RFC,v2,0/3] Preparatory work for sstate cache log replay

Message ID 20261115-mathieu-debug-replay-v4-v2-0-ad7d3c5cc213@bootlin.com
Headers show
Series Preparatory work for sstate cache log replay | expand

Message

Mathieu Dubois-Briand Nov. 15, 2026, 11:33 a.m. UTC
The sstate cache mechanism currently has a blind spot: log messages shown
while a task first runs are not replayed when the task output comes back
from the cache. This is particularly true for warnings, which are
effectively hidden unless the task is rebuilt.

This bitbake series provides the needed support, storing each task's log
to a file that the openembedded-core series can later retrieve.

Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
---
Changes in v2:
- Store task log records in a shared ${TMPDIR}/logrecords store.  This
  lets tasks find records from other recipes.
- Always write the record file, even when empty, to clear stale messages.
- Claim covered tasks from any recipe, not only the current one, and pass
  their tids through BB_SETSCENE_CLAIMED_TASKS.
- Link to v1: https://lore.kernel.org/r/20261024-mathieu-debug-replay-v4-v1-0-3f7f52a3b8e6@bootlin.com

---
Mathieu Dubois-Briand (3):
      utils: Extend LogCatcher to record raw messages and levels
      build: Attach a log catcher to tasks and save their records
      runqueue: Hand each covered task's log to a single setscene task

 bin/bitbake-worker    |  1 +
 lib/bb/build.py       | 15 +++++++++++++++
 lib/bb/runqueue.py    | 11 +++++++++++
 lib/bb/tests/utils.py | 42 ++++++++++++++++++++++++++++++++++++++++++
 lib/bb/utils.py       | 13 ++++++++++++-
 5 files changed, 81 insertions(+), 1 deletion(-)
---
base-commit: f22df7e0e00be1f3c406138b8b7269d47ea491fe
change-id: 20261023-mathieu-debug-replay-v4-6594f3ecad25

Best regards,