• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zentralopensource / zentral / 41205118311
92%

Build:
DEFAULT BRANCH: main
Ran 31 Oct 2026 01:32PM UTC
Jobs 1
Files 1063
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Oct 2026 12:50PM UTC coverage: 91.494% (+0.02%) from 91.47%
41205118311

push

github

np5
mdm: delete the old DDM status reports

The cleanup_mdm_status_reports command deletes the reports older than
the retention: 30 days, status_report_retention_days in the MDM
configuration, or --days. For each target, it keeps the newest full
report received before that date, the base, and every report after it,
because the status is rebuilt from them. A target without a base keeps
all its reports.

The batches take their rows with FOR UPDATE SKIP LOCKED, so two runs at
the same time share the work. They stop at the highest base, because a
deleted report always has a lower id than its base. Grouped by target,
Postgres reads the highest base from the index of the full reports. On
a test table with 2,000 targets and 4 reports a day for 40 days, this
read about 6,400 pages, against 62,000 for a plain MAX(id). With
received_at in that index, a batch of 1,000 reports read about 6,100
pages for its bases, against 34,000 without it.

The command posts an mdm_status_report_cleanup_started and an
mdm_status_report_cleanup_finished event. The max date is an ISO 8601
string in both. Zentral does not run the command: the deployment must
run it once a day.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

77 of 77 new or added lines in 4 files covered. (100.0%)

50 existing lines in 4 files now uncovered.

55438 of 60592 relevant lines covered (91.49%)

0.91 hits per line

Coverage Regressions

Lines Coverage ∆ File
25
98.31
0.02% zentral/contrib/mdm/models.py
20
93.51
0.07% zentral/contrib/mdm/public_views/mdm.py
4
99.35
0.02% zentral/contrib/mdm/artifacts.py
1
79.44
2.84% zentral/conf/__init__.py
Jobs
ID Job ID Ran Files Coverage
1 41205118311.1 31 Oct 2026 01:32PM UTC 1063
91.49
GitHub Action Run
Source Files on build 41205118311
  • Tree
  • List 1063
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41205118311
  • 39d6d60f on github
  • Prev Build on main (#41196268500)
  • Next Build on main (#41410815908)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc