Skip to content

feat: trigger local retention pruning after upload (#71)#31

Merged
lan17 merged 9 commits intomainfrom
lev/71
Feb 25, 2026
Merged

feat: trigger local retention pruning after upload (#71)#31
lan17 merged 9 commits intomainfrom
lev/71

Conversation

@lan17
Copy link
Copy Markdown
Owner

@lan17 lan17 commented Feb 25, 2026

Summary

  • wire LocalRetentionPruner into runtime assembly and ClipPipeline
  • trigger pruning on clip ingestion (reason=clip_arrived) and once on startup (backstop)
  • keep deletion eligibility strict (storage_uri present + status == DONE)
  • switch retention config to max_local_size_bytes and add wiring helpers
  • keep single-flight prune policy (drop while active)
  • add behavioral coverage for trigger semantics, single-flight pruning, and startup backstop behavior

Validation

  • uv run pytest tests/homesec/test_retention_pruner.py tests/homesec/test_pipeline.py tests/homesec/test_runtime_assembly.py tests/homesec/test_pipeline_events.py tests/homesec/test_integration.py
  • make check

Ticket

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 25, 2026

Codecov Report

❌ Patch coverage is 86.86131% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.56%. Comparing base (54b4a47) to head (230f837).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/homesec/retention/pruner.py 86.07% 11 Missing ⚠️
src/homesec/pipeline/core.py 86.48% 5 Missing ⚠️
src/homesec/runtime/assembly.py 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #31      +/-   ##
==========================================
+ Coverage   82.40%   82.56%   +0.16%     
==========================================
  Files         102      104       +2     
  Lines        8922     9010      +88     
==========================================
+ Hits         7352     7439      +87     
- Misses       1570     1571       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lan17 lan17 merged commit 9f88a3e into main Feb 25, 2026
4 checks passed
@lan17 lan17 deleted the lev/71 branch February 25, 2026 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant