aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
AgeCommit message (Collapse)Author
2026-11-08cmd/earlyinit: optionally force kmsg redirectionOphestra
This increases output readability in the test suite. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-08cmd/hakurei/testsuite: format expected ldd outputOphestra
This message is different between the musl and glibc implementations. This change assumes the non-Rosa test suite uses glibc, since it is only ran on the Gitea actions runner. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-08cmd/hakurei/testsuite: use Rosa OS prefixOphestra
This uses the correct prefix when compiled for Rosa OS. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-08cmd/hsu: move Rosa OS hsurcOphestra
This file is generated by the operating system. Pointing it to /system requires ugly tricks to bind mount over it. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-07cmd/earlyinit: make compatibility symlinksOphestra
Legacy software like the X server hardcodes a FHS path to the shell. Since Rosa OS does not mount over /, this has to be created during boot. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-06cmd/earlyinit: ignore trivial by defaultOphestra
It does not make sense to dispatch trivial errors in user-facing builds. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-06cmd/dist: override CC/CXX for cross onlyOphestra
The Rosa OS target triple does not work outside of Rosa OS. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-03cmd/earlyinit: optionally skip remountOphestra
Useful during testing and debugging to leave / writable. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-03cmd/earlyinit: explicit MS_RDONLY mounting systemOphestra
This prevents the kernel from attempting to write to the device, even though squashfs itself is read-only. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-03cmd/earlyinit: optionally mount host directoryOphestra
Useful for sharing a directory during integration testing. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-03cmd/earlyinit: optionally mount /tmpOphestra
This directory is not used by Rosa OS, but may be useful during testing. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-03cmd/earlyinit: initial process option for debuggingOphestra
This optionally halts the boot process to run the specified program. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-01internal/rosa: do not hard code filename prefixOphestra
The hardcoded name is not correct for externally registered files. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-01cmd/dist: disable testing if cross-compilingOphestra
QEMU does not support most things worth testing, and supported tests that invoke a binary still requires binfmt to work correctly. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-27internal/pipewire: improve path error reportingOphestra
This replaces SyscallError with PathError when pathnames are involved. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-26release: 0.4.10v0.4.10Ophestra
Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-26cmd/dist: enable ppc64le cross-compilationOphestra
The ppc64le target is currently cross-only due to the lack of test constants. A future change may downgrade riscv64 to the same status. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-26cmd/mbf: do not append cross packages for cleanOphestra
Not all packages support cross-compilation. This removes cross packages from artifacts kept during cleanup for now. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-25cmd/mbf: improve cross-compile error messageOphestra
This removes the unnecessary azalea AST information. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-23cmd/dist: cross-compile via clangOphestra
The cross-compiled sysroot can now be provided by internal/rosa. Unfortunately pkg-config still had to be configured externally to avoid making any assumptions about the prefix. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-22internal/rosa: initial cross-compilation supportOphestra
This successfully cross-compiles the toolchain. More work is needed to support cross-compilation on all native helpers and existing packages. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-19release: 0.4.9v0.4.9Ophestra
Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18internal/system: file-based big lockOphestra
Simultaneous commits or reverts can race if they have overlapping targets. This big lock synchronises entry into the Commit and Revert critical sections across all cmd/hakurei processes. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18cmd/hakurei/testsuite: handle dynamic linker raceOphestra
This retries when seeing files opened by the dynamic linker. This will eventually be replaced by a statically linked anchor program that never opens any files on its own. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18cmd/hakurei/testsuite: improve sandbox reportingOphestra
This avoids swallowing error messages from failed container startups. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18cmd/hakurei/testsuite: compare command outputOphestra
This is much more precise than just simply checking the exit code. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18cmd/hakurei/testsuite: synchronise after terminationOphestra
This ensures that cmd/hakurei has finished cleanup and terminated before validating the outcome of that cleanup. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18cmd/hakurei/testsuite: move rts test out of loopOphestra
This was inadvertently placed inside the setscheduler loop due to miscounting indentations. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-17cmd/hakurei/testsuite: set credentials for store accessOphestra
This avoids breaking ownership of lock files. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-17cmd/hakurei/testsuite: optional retriesOphestra
This implements retries of individual test cases and enables it for pipewire and X tests. PipeWire and X server are quite flaky, and that cannot be fixed by anything cmd/hakurei does. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-17cmd/hakurei/testsuite: additional cleanup checksOphestra
These were pretty difficult to do properly in the nixos-based test suite. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-17cmd/hakurei/testsuite: migrate testsOphestra
This runs much faster than the NixOS test suite, and is much more precise. This also uncovered a recent severe pipewire regression. This change removes all remaining deprecated nix code. Closes #22. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-16internal/testsuite: optional insecure argumentOphestra
This allows testing insecure configurations. This change also improves error reporting and fixes non-startup-notification behaviour. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-15internal/testsuite: optional verbose outputOphestra
Used by some tests to inspect cmd/hakurei internals. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-15internal/testsuite: optional startup notificationOphestra
This is only really used by the sandbox test suite for seccomp validation. Make it optional here to simplify other use cases. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-15internal/testsuite: silence session servicesOphestra
These are too noisy and are not useful outside of debugging the test suite itself, so silence them by default. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-14internal/testsuite: move helpers from cmd/hakureiOphestra
These helpers are useful across multiple test suites. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-14hst: pass through adopt wait delay with boundsOphestra
This is a useful value to customise, primarily useful for test suites but can also generally improve exit latency for stubborn applications. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-14cmd/dist: allow forcing dynamic linkingOphestra
This remains unsupported, but is useful during testing, or when packaging for some particularly stubborn distros. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-13all: use Linux kernel coding styleOphestra
The Gitea web interface is no longer publicly accessible, so it no longer matters that this code style does not render well on Gitea. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-12cmd/hakurei/testsuite: extra exercise parametersOphestra
This also removes the interval and fixes the mustStart search criteria. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-13cmd/hakurei/testsuite: exercise setup/teardownOphestra
This exposes a race during simultaneous startup between chmod and acl_set_file, where the ACL mask is clobbered by chmod. This remained undiscovered until now due to the previous integration test suite's complete inability to handle concurrency (the nixos vm test machinery could not even support python multithreading). Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-06internal/testsuite: add additional environmentOphestra
This improves compatibility. This change also improves error messages. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-06internal/testsuite: move from testOphestra
This structure is a lot less clumsy than the old nix-centric layout. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-01cmd/dist: optionally build with race instrumentOphestra
This is mostly useful for the integration test suites. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-01cmd/mbf/internal/ci: zero archive timesOphestra
This keeps archives deterministic across multiple jobs. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-01cmd/mbf/internal/ci: document dist endpointOphestra
There will eventually be more endpoints for other CI workloads. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-01cmd/mbf: poison open via environmentOphestra
This enables use of non-cache cmd/mbf utils as root. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-09-30cmd/mbf/internal/ci: reset buffer before retryingOphestra
This obtains a fresh file descriptor on each attempt. Without resetting it would end up endlessly appending to the buffer. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-09-30cmd/mbf: proof-of-concept CI serviceOphestra
This accepts CI work over a shared read-only cache directory. This replaces the nix CI service and prepares the removal of nix from the test infrastructure. Signed-off-by: Ophestra <cat@gensokyo.uk>