states: add stage manager class
Metadata
Current evaluation
Merged PR #18 introduced the initial StateManager for tracking part and step states; implemented in commit 23c8afdc and merged by ccf5b434.
Resolution: closed resolved
Reason: PR #18 was approved and merged into the mainline, with merge commit ccf5b434.
Evaluated by: mr-cal-bot
No scores available.
Issue body
The State Manager initializes and keeps track of states for each part
and step, telling the lifecycle sequencer whether a step should run
for any given part.
This PR starts the implementation of `StateManager`, more methods
will be added in future PRs.
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #18 introduced the initial StateManager for tracking part and step states; implemented in commit 23c8afdc and merged by ccf5b434. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged canonical/craft-parts#18, adding the initial StateManager to track part and step states for lifecycle sequencing. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged the initial StateManager class implementation to track part and step states for lifecycle sequencing. Approved by two reviewers, passed CI, and added 155 lines across three files. Additional methods will be added in future PRs. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged the initial StateManager class implementation to initialize and track states per part and step, providing lifecycle sequencer integration. Additional methods will be added in subsequent pull requests. |
Update history
No update history recorded yet.
Related work
-
Related To:
craft-parts#17
(confidence 90%)
Preceding merged PR added the state metadata and dictionary-backed manager that formed this implementation's foundation.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #15 states: add stage state class | craft-parts | merged | Merged PR #15 added StageState for stage-step context; implementation commit b16b4b77 landed via merge commit ab80f306. | |
| #17 states: add state metadata and ephemeral state manager | craft-parts | merged | Merged PR #17 added wrapped step-state metadata for lifecycle sequencing and an ephemeral state manager keyed by part and step; merge commit 63369fb9. | |
| #12 states: add concrete step states | craft-parts | closed | Closed unmerged and split into #13–#16, which separately added PullState, BuildState, StageState, and PrimeState; all four replacement PRs were merged. | |
| #16 states: add prime state class and state loader | craft-parts | merged | Merged PR #16 added PrimeState and persistent step-state loading; commit aa062828 landed via merge 524909c6, replacing unmerged PR #12. | |
| #24 states: add management methods to refresh and clean steps | craft-parts | merged | Merged PR #24 added state-management methods to mark steps recently updated and clean obsolete in-memory state; merged in 9a1ee8dc via d7038420. |