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

kobotoolbox / kpi / 21717362367
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1525-update-environment-endpoint
DEFAULT BRANCH: master
Ran 05 Feb 2026 04:01PM UTC
Jobs 2
Files 883
Run time 2min
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

05 Feb 2026 03:25PM UTC coverage: 81.334% (-0.007%) from 81.341%
21717362367

push

github

web-flow
fix(organizations): fix permission revocation logic and OOM errors in long running migration 0015 DEV-1714 (#6685)

### 📖 Description
Migration `0015_fix_duplicate_organizations` stalled on production due
to two primary issues:
- Logic Error: The permission revocation logic incorrectly targeted
organization owners during duplicate resolution, causing them to lose
access to their own projects.
- Performance Bottleneck: Processing large permission sets (e.g., ~90k
records) in a single transaction caused memory exhaustion (OOM) and
continuous pod restarts.

To resolve these issues, the following changes were implemented:
- Added a check in `revoke_org_asset_perms()` and the 0015 job to ensure
owners are excluded from the revocation process.
- Refactored the permissions deletion logic to process permission
removals in chunks of 1000, preventing memory spikes and stabilizing the
task environment.

---------

Co-authored-by: Olivier Léger <olivierleger@gmail.com>

7201 of 11284 branches covered (63.82%)

15 of 17 new or added lines in 4 files covered. (88.24%)

27796 of 34175 relevant lines covered (81.33%)

1.6 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
95.16
-1.56% kobo/apps/long_running_migrations/jobs/0015_fix_duplicate_organizations.py
1
86.84
0.18% kobo/apps/organizations/utils.py
Jobs
ID Job ID Ran Files Coverage
1 21717362367.1 05 Feb 2026 04:01PM UTC 881
78.98
2 21717362367.2 05 Feb 2026 04:07PM UTC 883
81.3
Source Files on build 21717362367
  • Tree
  • List 883
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 2fe55892 on github
  • Prev Build on release/2.025.47 (#21639306655)
  • Next Build on release/2.025.47 (#21927439427)
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