mbox series

[RFC,0/3] sstate: Replay warnings and errors when restoring from sstate

Message ID 20261024-mathieu-debug-replay-v4-v1-0-fc591ec473a7@bootlin.com
Headers show
Series sstate: Replay warnings and errors when restoring from sstate | expand

Message

Mathieu Dubois-Briand Oct. 24, 2026, 12:34 p.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 openembedded-core series saves each task's messages into the sstate
cache and replays them when cached output is reused. Logs are also
replayed for tasks that are not themselves sstate-covered but are
dependencies of covered tasks. This requires the companion bitbake
series.

Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
---
Mathieu Dubois-Briand (3):
      sstate: Replay warnings and errors when restoring from sstate
      sstate: Replay the records of tasks covered by setscene
      oeqa/sstatetests: Add tests for sstate log replay

 .../log-replay-error-test/log-replay-error-test.bb |  11 ++
 .../log-replay-test/log-replay-test.bb             |  29 +++++
 meta/classes-global/sstate.bbclass                 | 116 ++++++++++++++++++-
 meta/lib/oeqa/selftest/cases/sstatetests.py        | 128 +++++++++++++++++++++
 4 files changed, 281 insertions(+), 3 deletions(-)
---
base-commit: ae5cafacec8e99c5a27fa5b3b378eefc595910ef
change-id: 20261023-mathieu-debug-replay-v4-535c89baa72c

Best regards,