Skip to content

Tests: kiri-init unit tests compile again after #371 - #396

Merged
libracoder merged 1 commit into
mainfrom
test-process-seccomp
Nov 16, 2026
Merged

libracoder merged 1 commit into
mainfrom
test-process-seccomp

Conversation

@libracoder

@libracoder libracoder commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

On Linux, the engine's unit tests (cargo test -p kiri-init) didn't compile on main. This sets the one field that was missing.

Motivation

#341 added a test-only Process::for_test constructor. #371 merged right after it and added a seccomp field to Process. Each PR was fine on its own, but together the constructor no longer sets every field:

error[E0063]: missing field `seccomp` in initializer of `Process`
   --> crates/kiri-init/src/linux/container.rs:107:9

CI doesn't build the Linux unit tests of kiri-init, so it didn't catch this. The engine itself was not affected.

Changes

  • crates/kiri-init/src/linux/container.rs: Process::for_test sets seccomp: Vec::new(), which means the default filter, as for execs.

Behaviour changes

None. Only test code changes.

Testing

Checklist

  • Test-only change
  • No change to the window or its text

@libracoder libracoder added the bug Something isn't working label Nov 16, 2026
@libracoder libracoder self-assigned this Nov 16, 2026
@libracoder libracoder added this to the 0.2.2 milestone Nov 16, 2026
@libracoder
libracoder merged commit 5789abe into main Nov 16, 2026
7 checks passed
@libracoder
libracoder deleted the test-process-seccomp branch November 16, 2026 15:29
sguzman added a commit to sguzman/caskel that referenced this pull request Nov 16, 2026
…fecycle fixes

Adapt upstream commits 7846fe0 (libracoder#341), 231d230 (libracoder#371) and 5789abe (libracoder#396).
Prerequisite process lifecycle handling supports safe exec and signal routing;
seccomp profiles are compiled by the daemon and applied to start and exec.
No WSL-only tests; Linux host regression suite follows separately.
Depends on preceding Linux systemd restart cleanup on this feature branch.
sguzman added a commit to sguzman/caskel that referenced this pull request Nov 16, 2026
…le fixes

Selectively port upstream libracoder#341, libracoder#371, and libracoder#396 to Caskel's Linux agent. Includes prerequisites for safe signal/DNS lifecycle, Docker-style custom/default seccomp profiles, complete Linux unit tests (including privileged runner tests), runtime smoke tests, and reproducible Nix packaging. CI passing across Nix, CodeQL, UI, and Speed. Production Docker and current user services not touched.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant