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

kobotoolbox / kpi / 19069200475 / 2
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 04 Nov 2025 01:27PM UTC
Files 878
Run time 31s
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

04 Nov 2025 12:49PM UTC coverage: 81.272% (+2.3%) from 78.933%
19069200475.2

push

github

web-flow
fix(versions): convert version removal celery task to migration DEV-1227 (#6442)

### 💭 Notes
Backport of https://github.com/kobotoolbox/kpi/pull/6434
Converts the remove_all_versions celery task (which accidentally had a
time limit of 30 seconds) to a long-running migration to be in keeping
with the rest of the long-running works.


### 👀 Preview steps

1. Run migrations
2. If empty, populate the Version table with
```
for i in range(100): 
     Revision.objects.create(date_created=timezone.now())
     Version.objects.create(revision_id=i, content_type_id=21)
```
3. Update `VERSION_DELETION_BATCH_SIZE` to 5
4. Restart the kpi_worker
5. Wait for the long-running migrations job to run
6. 🟢 The number of objects in the version table is decreased
7. 🟢 There are logs in the kpi_worker showing how many versions are
deleted with each run

7133 of 11199 branches covered (63.69%)

27369 of 33676 relevant lines covered (81.27%)

0.81 hits per line

Source Files on job 19069200475.2
  • Tree
  • List 878
  • Changed 30
  • Source Changed 0
  • Coverage Changed 30
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 19069200475
  • 771ca848 on github
  • Prev Job for on release/2.025.43 (#19040615393.1)
  • Next Job for on release/2.025.43 (#19113934668.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc