build_profile,deb,sandbox,test: move phases and profiling out of deb
CI / build (push) Successful in 1m42s
CI / test (push) Skipped
CI / publish (push) Skipped
CI / snap (push) Successful in 2m45s
CI / release (push) Skipped

`Phase`, its classifier selection and `BuildProfiler` described the
build flow from inside `deb`, so `sandbox` had to import them from
`deb` to announce chroot work. Moving them to `src/build_profile.rs`
leaves `sandbox` depending on `deb` only for the session record.

`PhaseTiming` and `BuildProfile` move with the profiler, since they are
the record shape it produces. `deb` re-exports `Phase` and `session`
re-exports the record types, so their public paths stay the same.
This commit is contained in:
vhaudiquet committed 2026-11-25 07:40:46 +01:00
1 parent 8e6035c185
commit 24bade82ec
10 files changed
+302 -276

No files matched your search

+2
View File
@@ -49,6 +49,8 @@ Rules:
- `sandbox` — the build environment trait, host and unshare backends,
staging (`src/sandbox/`)
- `exec` — subprocess line capture and host process helpers (`src/exec.rs`)
- `build_profile` — build phase labels and wall-clock profiling
(`src/build_profile.rs`)
- `interrupt` — Ctrl+C interception and interrupt-time cleanup
(`src/interrupt.rs`)
- `debian` — Debian format primitives: control, versions, checksums,