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

+4 -2
View File
@@ -427,10 +427,12 @@ src/
namespace.rs UnshareDriver, path mapping, overlay staging,
namespace and pivot scripts, MAPPED_BUILD_ID
ecrou.rs future Ecrou
build_profile.rs Phase, BuildProfiler, BuildProfile, PhaseTiming
```
`Phase` and `BuildProfiler` still live in `deb`; moving them to
`build_profile.rs` is the remaining separation between `sandbox` and `deb`.
`Phase`, `BuildProfiler` and the profile record types live in
`src/build_profile.rs`. `deb` re-exports `Phase` and `session` re-exports the
record types, so their public paths do not change.
## Migration plan (implemented)