Add a quick build mode for fast development builds#258
Conversation
| bootstrap.lib.warn "QUICK BUILD MODE enabled!" | ||
| "lz4" |
There was a problem hiding this comment.
Should we do something like fail if quickBuild is set, but updateUrl is not the dummy default value?
There was a problem hiding this comment.
Hmm, I would say no, it is useful in situations where you want to test updates? The only thing I would do is to consider the "official" targets like ./build validation or ./build master to abort if QUICK_BUILD is set.
Switching to lz4 compression makes building of installer and live ISOs 2-4x faster. squashfs compression is a low-level aspect that can only affect booting, but is otherwise irrelevant for dev builds. This makes the iteration loop much quicker.
Co-authored-by: Johannes Emerich <johannes@emerich.de>
7b80964 to
a79134e
Compare
|
There are really strange E2E test failure due to... this: Edit: the container runs out of memory while installing: The strange thing is that it still continues despite the error. Will look into it. |
Issue was discovered in CI, when the `tar cf` process died prematurely
(most likely due to OOM?), but the installation completed successfully
anyway:
2025-10-15T11:41:14.8917469Z tar: /nix/store/iwzz3by31rh9gy0vjknwg196w44icmba-qtwebengine-6.8.1/lib/: Cannot savedir: Cannot allocate memory
2025-10-15T11:42:28.2538953Z tar: 3.16GiB 0:02:04 [26.0MiB/s] [ <=> ]Exiting with failure status due to previous errors
2025-10-15T11:42:28.2539384Z
2025-10-15T11:42:28.8328453Z '/nix/store/kgixlj6bi484fvrkca8z13am94sxhkxw-nixos-system-playos-playos-2025.3.1-TEST/kernel' -> '/mnt/system/kernel'
(from dividat#258 (comment))
Note that it says "Exiting with failure", yet the installation
continues.
|
Is this reviewable or in need of further work? |
It is reviewable, I believe the E2E test failure was unrelated and due to the CI VM running out of memory. |
Triggered by the very slow live ISO builds while testing the remote control on the PlayOS PC.
Switching to lz4 compression makes building of installer and live ISOs 2-4x faster.
squashfs compression is a low-level aspect that can only affect booting, but is otherwise irrelevant for dev builds. This makes the iteration loop much quicker.
Benchmarks:
Live
~364% faster with lz4
Quick
Regular
Installer
~251% faster with lz4
Quick
Regular
Checklist