Bug 16097 - Improve handling of setscene task dependencies
Summary: Improve handling of setscene task dependencies
Status: NEW
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 6.99
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2025-12-11 16:42 UTC by Paul Barker
Modified: 2025-12-18 15:34 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Barker 2025-12-11 16:42:45 UTC
While working on bug #15963, we discussed the status of the setscene task hard dependency handling in bitbake. These "hard dependencies" are used to ensure that setscene tasks do not run before the tools/libs needed to actually restore the sstate artifact are available. E.g. we need pseudo to restore the results of do_package.

The current code is difficult to reason about and counter-intuitively builds a reverse dependency map. It is not likely to work well if we have to add many more hard setscene dependencies or if the dependency tree gets complicated.

We should look in to overhauling this code.

Also relevant: bug #5839 asks for test cases for hard dependencies in setscene tasks.