Cache files will split the extension, this means that all pyc cache files looks like we get many clashing `org.osbuild.cpython-py311.pyc files. Moreover, the cache bytecode invalidation is based on the timestamp (which is the same after git checkout) and the file size (which may be the same for two different files). This means that we can't rely on the cache files. This issue has been found after the previous commit made the `org.osbuild.systemd` and `org.osbuild.selinux` stages to have exactly the same size, which caused the interpreter to reuse the bytecode for the selinux stage when running unit tests for the systemd stage. This resulted in consistent and weird failures when the systemd stage options were passed to the selinux stage code. The credit for this fix goes to Michael Vogt, who found the cause and fix. Also thanks to Simon de Vlieger for his help with debugging the problem. Co-authored-by: Michael Vogt <michael.vogt@gmail.com> Signed-off-by: Tomáš Hozza <thozza@redhat.com> |
||
|---|---|---|
| .. | ||
| formats | ||
| testutil | ||
| util | ||
| __init__.py | ||
| __main__.py | ||
| api.py | ||
| buildroot.py | ||
| devices.py | ||
| host.py | ||
| inputs.py | ||
| loop.py | ||
| main_cli.py | ||
| meta.py | ||
| mixins.py | ||
| monitor.py | ||
| mounts.py | ||
| objectstore.py | ||
| pipeline.py | ||
| remoteloop.py | ||
| sources.py | ||