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

kobotoolbox / kpi / 24985384679
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 27 Apr 2026 08:51AM UTC
Jobs 10
Files 912
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

27 Apr 2026 08:46AM UTC coverage: 82.119%. Remained the same
24985384679

push

github

web-flow
fix(constance): remove environment variable fallbacks from Google NLP Constance settings DEV-2017 (#6965)

### 📖 Description
We previously introduced `CONSTANCE_`-prefixed environment variable
fallbacks (using `env.str()`) for the Google NLP settings
(`ASR_MT_GOOGLE_*`) within the `CONSTANCE_CONFIG` dictionary in
`base.py` ([#6933](https://github.com/kobotoolbox/kpi/pull/6933)).

The Sysadmin team has since identified that injecting these
configurations especially complex JSON credentials via environment
variables leads to escaping issues in Kubernetes deployments.

To improve stability and security, the team is transitioning to securely
mounted files (e.g., Kubernetes Secrets) and relying on native Google
library mechanisms (such as the `GOOGLE_APPLICATION_CREDENTIALS`
environment variable) for NLP authentication and configuration.

This PR removes the custom environment variable fallback logic from the
codebase.

The following four settings in base.py have been reverted to their
original values to support this pattern:
* `CONSTANCE_ASR_MT_GOOGLE_PROJECT_ID` →`'kobo-asr-mt'`
* `CONSTANCE_ASR_MT_GOOGLE_STORAGE_BUCKET_PREFIX` →`'kobo-asr-mt-tmp'`
* `CONSTANCE_ASR_MT_GOOGLE_TRANSLATION_LOCATION` →`'us-central1'`
* `CONSTANCE_ASR_MT_GOOGLE_CREDENTIALS` → `""`

7784 of 11978 branches covered (64.99%)

29590 of 36033 relevant lines covered (82.12%)

5.78 hits per line

Coverage Regressions

Lines Coverage ∆ File
81
0.0
-93.1% kobo/apps/stripe/serializers.py
75
0.0
-41.9% kobo/apps/stripe/views.py
63
0.0
-51.64% kobo/apps/stripe/models.py
60
26.05
-50.42% kobo/apps/stripe/utils/subscription_limits.py
36
20.21
-38.3% kobo/apps/stripe/utils/billing_dates.py
19
0.0
-65.52% kobo/apps/stripe/admin.py
14
31.82
-31.82% kobo/apps/stripe/utils/limit_enforcement.py
12
35.0
-60.0% kobo/apps/stripe/utils/import_management.py
11
0.0
-44.0% kobo/apps/stripe/signals.py
8
0.0
-100.0% kobo/apps/stripe/urls.py
7
0.0
-100.0% kobo/apps/stripe/apps.py
6
0.0
-37.5% kobo/apps/stripe/utils/view_utils.py
3
61.21
-1.82% kobo/apps/organizations/models.py
3
60.53
-7.89% kobo/apps/organizations/utils.py
2
44.65
-0.38% kobo/apps/openrosa/libs/utils/logger_tools.py
1
40.85
-1.41% kobo/apps/organizations/admin/organization.py
1
92.31
-7.69% kobo/apps/user_reports/utils/migrations.py
Jobs
ID Job ID Ran Files Coverage
1 24985384679.1 27 Apr 2026 08:51AM UTC 908
52.72
2 24985384679.2 27 Apr 2026 08:51AM UTC 908
54.25
3 24985384679.3 27 Apr 2026 08:53AM UTC 910
53.94
4 24985384679.4 27 Apr 2026 08:53AM UTC 910
55.5
5 24985384679.5 27 Apr 2026 08:53AM UTC 908
52.96
6 24985384679.6 27 Apr 2026 08:53AM UTC 908
60.26
7 24985384679.7 27 Apr 2026 08:54AM UTC 910
65.97
8 24985384679.8 27 Apr 2026 08:55AM UTC 910
61.38
9 24985384679.9 27 Apr 2026 08:55AM UTC 912
68.2
10 24985384679.10 27 Apr 2026 08:57AM UTC 910
54.3
Source Files on build 24985384679
  • Tree
  • List 912
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 1a494d5c on github
  • Prev Build on release/2.026.12 (#24983934715)
  • Next Build on release/2.026.12 (#24993281612)
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