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

OCHA-DAP / hdx-ckan / #7169
81%
dev: 80%

Build:
Build:
LAST BUILD BRANCH: hdx-11355
DEFAULT BRANCH: dev
Ran 22 Jan 2026 03:02PM UTC
Jobs 1
Files 282
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

22 Jan 2026 02:44PM UTC coverage: 80.061% (-0.2%) from 80.235%
#7169

Pull #6867

coveralls-python

teodorescuserban
hdx-11355 add Redis cache for SES AssumeRole credentials via dogpile

  Replace in-memory singleton cache with shared Redis cache for AWS STS
  AssumeRole credentials. This solves the cache invalidation problem
  caused by nginx unit's idle_timeout (20s) killing worker processes
  and losing their in-memory credential cache.

  Changes:
  - Add caching.py with dogpile Redis region (55 min TTL)
  - Simplify credentials_manager.py to use cached_load_ses_credentials()
  - Remove ensure_fresh_credentials() - dogpile handles refresh automatically
  - Update mailer_patches.py and hdx_users_mailer_patches.py call sites
  - Rewrite tests to mock the new cached function

  Benefits:
  - All nginx unit processes share the same Redis cache
  - Credentials survive process restarts
  - Reduced AWS STS API calls (cost + latency)
  - Pattern consistent with ckanext-s3filestore 0.8.1
Pull Request #6867: hdx-11355 add Redis cache for SES AssumeRole credentials via dogpile

39 of 82 new or added lines in 2 files covered. (47.56%)

1 existing line in 1 file now uncovered.

14519 of 18135 relevant lines covered (80.06%)

0.8 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
94.87
0.03% ckanext-hdx_smtp_assumerole/ckanext/hdx_smtp_assumerole/helpers/credentials_manager.py
42
34.38
ckanext-hdx_smtp_assumerole/ckanext/hdx_smtp_assumerole/helpers/caching.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
38.89
0.31% ckanext-hdx_smtp_assumerole/ckanext/hdx_smtp_assumerole/helpers/hdx_users_mailer_patches.py
Jobs
ID Job ID Ran Files Coverage
1 #7169.1 22 Jan 2026 03:02PM UTC 282
80.06
Source Files on build #7169
  • Tree
  • List 282
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #6867
  • PR Base - dev (#)
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