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

kobotoolbox / kpi / 15143047471
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 20 May 2025 05:13PM UTC
Jobs 2
Files 654
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

20 May 2025 04:37PM UTC coverage: 80.997% (+0.02%) from 80.981%
15143047471

push

github

web-flow
feat(massEmails): prioritize recurring sends over one-time TASK-1697 (#5760)

### đŸ“Ŗ Summary
Allocates send capacity to recurring emails first, then allocates
whatever is left to the one-time emails.

### 📖 Description
Previously, send capacity was allotted to each email E by calculating (#
of enqueued E records/total enqueued records)*total send capacity. In
order to ensure recurring emails go out regardless of any large one-time
sends that may be pending, we are dividing emails into "one-time" and
"recurring" categories. For a recurring email R, the send capacity is
now (# of enqueued R records/total enqueued recurring records)*total
send capacity. After the send capacity for each recurring email is
calculated, any remaining capacity is allocated among the one-time sends
using the same calculation.


### 👀 Preview steps

Feature/no-change template:
1. â„šī¸ Have at least 3 accounts
2. In Constance, set MASS_EMAIL_TEST_EMAILS to include all 3 emails
3. Lower the MAX_MASS_EMAILS_PER_DAY setting to 5
4. Create 3 new MassEmailConfigs, all of which use the test_users query
5. In a django shell, set one of the email configs to have a frequency
of 1 (the other 2 will default to -1)
6. Add all three emails to the daily send
7. đŸŸĸ When the daily email send occurs, the email with the frequency of 1
should send to all 3 test users. The other 2 should send to only one
user each.

6255 of 9922 branches covered (63.04%)

32 of 33 new or added lines in 2 files covered. (96.97%)

1 existing line in 1 file now uncovered.

23847 of 29442 relevant lines covered (81.0%)

1.6 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
94.9
0.07% kobo/apps/mass_emails/tasks.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
94.9
0.07% kobo/apps/mass_emails/tasks.py
Jobs
ID Job ID Ran Files Coverage
1 15143047471.1 20 May 2025 05:13PM UTC 654
78.91
2 15143047471.2 20 May 2025 05:16PM UTC 654
80.98
Source Files on build 15143047471
  • Tree
  • List 654
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • ffd089b7 on github
  • Prev Build on main (#15137182444)
  • Next Build on main (#15155852011)
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

© 2025 Coveralls, Inc