Conversation
Signed-off-by: Harry Pidcock <harry.pidcock@canonical.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #17698 +/- ##
==========================================
- Coverage 82.18% 78.38% -3.81%
==========================================
Files 1407 1419 +12
Lines 200453 200791 +338
Branches 2503 2503
==========================================
- Hits 164751 157393 -7358
- Misses 33759 33967 +208
- Partials 1943 9431 +7488
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Fri Sep 25 00:05:25 UTC 2026 Test Predictor AnalysisExecuting
Restoring
Skipped tests from snapd-testing-skipIf you wish to have any of the below tests run in your PR, in your PR description, add 'unskip:' followed by a copy-and-pasted list of the below tests you wish to run (unskip plus test list must be valid yaml)
|
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The focused fix correctly updates state modification tracking and includes regression coverage for both affected collections.
Review effort: Balanced
Findings: None
What changed in this PR
Ensures pruned warnings and notices are persisted during state checkpointing.
Changes:
- Mark state modified when expired warnings or notices are removed.
- Add regression tests verifying checkpoint persistence.
| File | Description |
|---|---|
overlord/state/state.go |
Marks pruning mutations for checkpointing. |
overlord/state/warning_test.go |
Tests persisted warning pruning. |
overlord/state/notices_test.go |
Tests persisted notice pruning. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This ports a notices (and warnings) pruning persistence fix from pebble.
canonical/pebble#1083