debian-forge/test
Michael Vogt 035781ea1c osbuild: add a mutex to the _jsonseq() writer
This commit fixes a race/threading issue with the way the monitor
works. The osbuild monitor can be called from multiple threads,
e.g. in buildroot.py:run() monitor.log() is called but also
in host.py:_stdout_ready(). This can lead to out-of-order writes
when many messages need to be processed.

We did not notice this so far because we were lucky and also
log was just used for information. But now it is used to transmit
the jsonseq data which means out-of-order communication results
in broken json.

Closes: https://github.com/osbuild/image-builder-cli/issues/110
2025-01-30 20:08:53 +01:00
..
cases manifest_tests.py: use osbuild-image-info from osbuild package 2024-12-18 12:50:32 +01:00
data data: include appstream repository metadata 2025-01-22 18:03:21 +01:00
mod osbuild: add a mutex to the _jsonseq() writer 2025-01-30 20:08:53 +01:00
run test: Validate the source test manifests 2025-01-14 08:19:16 +01:00
stages test: add test for export option 2024-01-10 11:24:01 +01:00
.gitignore introduce testing script 2019-07-09 10:29:48 +02:00
__init__.py osbuild: add description() methods 2019-08-07 10:01:17 +02:00
conftest.py Test: add ability to skip tests for unsupported file-systems 2023-04-21 17:13:10 +02:00
initrd.py autopep8: Update with changes to make autopep8 -a -a -a happy 2023-08-10 13:04:14 +02:00
test.py test: add test for export option 2024-01-10 11:24:01 +01:00