Commit graph

5 commits

Author SHA1 Message Date
Marco Allegretti
d78a770502 fix(core): make stop robust to stale state
- Stop can now succeed when metadata is stale but runtime indicates running\n- Only uses .running PID fallback for namespace/mock; avoids OCI PID misuse\n- Preserves non-Running states (e.g. Frozen) after stopping\n- Adds integration tests for stale metadata and Frozen stop
2026-02-25 19:26:22 +01:00
Marco Allegretti
736f6ce7f1 fix: SBOM f-string quoting, ENOSPC commit skip, drop opensuse e2e-resolve
- Fix SBOM validation Python f-string: avoid double quotes inside
  double-quoted shell string (NameError: 'components' not defined)
- ENOSPC enospc_commit_fails_cleanly: skip gracefully if build fails
  (real backend tries to download image on tiny tmpfs in CI)
- Drop opensuse from e2e-resolve matrix (sh not in OCI exec PATH)
2026-02-22 20:59:19 +01:00
Marco Allegretti
37211dfd22 fix CI: fmt, skip migrate readonly test as root, fix container shell
- Run cargo fmt on skip_if_root() blocks
- Add skip_if_root() to migrate_atomic_version_unchanged_on_write_failure
- Add libc dev-dependency to karapace-store for root check
- Remove explicit shell: sh from container rustup steps (OCI exec
  can't find sh in PATH; default run shell works)
2026-02-22 20:11:09 +01:00
Marco Allegretti
cc67d70211 fix CI: skip readonly tests as root, manual rustup for containers
- Add skip_if_root() to 8 permission-based tests (root bypasses
  filesystem permissions in Docker containers)
- Replace dtolnay/rust-toolchain with manual rustup install via sh
  for container-based jobs (opensuse lacks bash, which the composite
  action requires)
- Keep dtolnay/rust-toolchain for non-container ubuntu jobs
2026-02-22 20:03:42 +01:00
Marco Allegretti
f535020600 feat: karapace-core — engine orchestration, lifecycle state machine, drift control
- Engine: init → resolve → lock → build → enter/exec → freeze → archive → destroy
- Cached store_root_str avoiding repeated to_string_lossy() allocations
- WAL-protected build, enter, exec, destroy, commit, restore, GC operations
- Overlay drift detection: diff/commit/export via upper_dir scanning
- Deterministic snapshot commit with composite identity hashing
- Atomic restore via staging directory swap
- StoreLock: compile-time enforcement via type parameter on gc()
- Signal handler: SIGINT/SIGTERM graceful shutdown with AtomicBool
- Push/pull delegation to karapace-remote backend
- Crash recovery: stale .running marker cleanup on Engine::new()
- Integration tests, E2E tests, crash injection tests, ENOSPC simulation
- Criterion benchmarks: build, rebuild, commit, restore, GC, verify
2026-02-22 18:37:02 +01:00