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

kobotoolbox / kpi / 23748658159
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 30 Mar 2026 02:03PM UTC
Jobs 10
Files 909
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

30 Mar 2026 01:59PM UTC coverage: 82.197% (-0.003%) from 82.2%
23748658159

push

github

web-flow
fix(qual): graceful timeout handling for automatic qualitative analysis DEV-1928 (#6894)

### 📣 Summary
This PR introduces strict timeout configurations for AWS Bedrock
requests to prevent unhandled 504 Gateway Timeout errors during
automatic qualitative analysis.

### 📖 Description
This PR addresses an issue where slow responses from the LLM via AWS
Bedrock were causing the web server to sever the connection, resulting
in a 504 Gateway Timeout for the client.
- A strict timeout of 50 seconds (read) and 5 seconds (connect) is now
enforced on the `boto3` client via `botocore.config.Config`.
- The `run_external_process` loop is updated to catch
`ReadTimeoutError`.
- If a timeout occurs on the primary model, this PR ensures the system
gracefully falls back to the backup model.
- If all models time out, a clean JSON response with a failed status is
returned to the frontend rather than crashing the request.
- Unit tests have been updated and added to verify the timeout fallback
behavior.

7782 of 11983 branches covered (64.94%)

4 of 7 new or added lines in 3 files covered. (57.14%)

400 existing lines in 16 files now uncovered.

29628 of 36045 relevant lines covered (82.2%)

5.8 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
76.49
-0.38% kobo/settings/base.py
1
32.14
0.35% kobo/apps/subsequences/actions/automatic_bedrock_qual.py

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
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 23748658159.1 30 Mar 2026 02:03PM UTC 905
52.84
2 23748658159.2 30 Mar 2026 02:03PM UTC 905
54.37
3 23748658159.3 30 Mar 2026 02:04PM UTC 907
54.06
4 23748658159.4 30 Mar 2026 02:05PM UTC 905
53.07
5 23748658159.5 30 Mar 2026 02:05PM UTC 907
55.61
6 23748658159.6 30 Mar 2026 02:06PM UTC 905
60.48
7 23748658159.7 30 Mar 2026 02:07PM UTC 907
66.02
8 23748658159.8 30 Mar 2026 02:07PM UTC 907
61.61
9 23748658159.9 30 Mar 2026 02:09PM UTC 909
68.26
10 23748658159.10 30 Mar 2026 02:31PM UTC 907
54.41
Source Files on build 23748658159
  • Tree
  • List 909
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 6c2e193d on github
  • Prev Build on main (#23748212298)
  • Next Build on main (#23748805479)
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