Revert "Put build history into the output directory" - #4373
Conversation
Breaks the systemd CI, and also seems to make passing --output-directory mandatory on the command line if it is defined in the config, which is just horrible UX: ‣ /home/runner/work/systemd/systemd/mkosi/mkosi.local.conf: Setting OutputDirectory specified by specifier '%O' in %O/ovmf_vars_shim.fd is not yet set, ignoring ‣ /home/runner/work/systemd/systemd/mkosi/mkosi.local.conf: Setting OutputDirectory specified by specifier '%O' in %O/ovmf_vars_shim.fd is not yet set, ignoring ‣ Firmware variables file /ovmf_vars_shim.fd does not exist https://github.com/systemd/systemd/actions/runs/28126107457/job/83290221148?pr=42739 This reverts commit da49fe9.
Claude review of PR #4373 (4ede625)No issues found. This is a clean revert of commit da49fe9 which broke the systemd CI by introducing a circular dependency: config files using the |
|
Thanks @bluca -- I'll put that on my todo list then, check how systemd uses that, and have another go at that. |
|
Unfortunate. |
|
@bluca I'd like to reproduce this on my fork, but want to understand it first. systemd pins mkosi by SHA. The second-last time happened in systemd/systemd@936a790 on June 4, which didn't include any of #4360. The next commit was systemd/systemd@45f561b yesterday, which included both #4360 and this revert. So how did landing 4360 spontaneously break systemd CI? Thanks in advance! |
|
@bluca unping -- of course that happened in a PR, specifically systemd/systemd#42739 . Sorry for the noise! 🤗 |
|
Got it -- sadly this is already quite fragile, and the change made that latent bug explode. ⬆️ see the wrong path there. The subsequent systemd's meson.build target passes
... except I didn't consider mixing It would be nice to only do one or the other in systemd to avoid the redundancy, but I think both are useful: the config option for human developers running But I think we can fix mkosi for this specific case. |
|
I sent #4376 with a new version of this. This time with unit tests, and confirmed to work against both mkosi/barrage and also systemd's own CI (ran on my fork). |
Breaks the systemd CI, and also seems to make passing --output-directory mandatory on the command line if it is defined in the config, which is just horrible UX:
‣ /home/runner/work/systemd/systemd/mkosi/mkosi.local.conf: Setting OutputDirectory specified by specifier '%O' in %O/ovmf_vars_shim.fd is not yet set, ignoring
‣ /home/runner/work/systemd/systemd/mkosi/mkosi.local.conf: Setting OutputDirectory specified by specifier '%O' in %O/ovmf_vars_shim.fd is not yet set, ignoring
‣ Firmware variables file /ovmf_vars_shim.fd does not exist
https://github.com/systemd/systemd/actions/runs/28126107457/job/83290221148?pr=42739
This reverts commit da49fe9.