mbox series

[0/4] Fix various race conditions on multiconfig

Message ID 20260910140201.250854-1-felix.moessbauer@siemens.com
Headers show
Series Fix various race conditions on multiconfig | expand

Message

MOESSBAUER, Felix Sept. 10, 2026, 2:01 p.m. UTC
When running under multiconfig, various race conditions can occur due
to simultaneous access to the isar-apt. We fix these by ensuring
that the deployment of the source archive and the .debs is idempotent.

While investigating this, we noticed that the existing deb_clean no
longer removes the artifacts from the apt-cache, as it reads the "what
to clean" from a dir that is previously removed by the internal
clean logic of the sstate. This bug is fixed as well (p2).

Note, that the root cause of the races has been found by an LLM,
which had access to the build log of a failed execution.

Best regards,
Felix Moessbauer
Siemens AG

Felix Moessbauer (4):
  fix(dpkg-build): make sstate updates of DEPLOY_DIR_DEB atomic
  fix(dpkg-build): clean isar-apt by source package and arch
  fix(dpkg-build): scan DEPLOY_DIR_DEB only once in do_deploy_deb
  fix(dpkg-source): make sstate updates of DEPLOY_DIR_SRC atomic

 meta/classes-recipe/dpkg-base.bbclass   | 53 +++++++++++++++++++------
 meta/classes-recipe/dpkg-source.bbclass | 35 ++++++++++++----
 meta/classes-recipe/repository.bbclass  | 22 ++++++++++
 3 files changed, 89 insertions(+), 21 deletions(-)