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

kobotoolbox / kpi / 44097547713
86%
master: 76%

Build:
Build:
LAST BUILD BRANCH: release/2.026.43
DEFAULT BRANCH: master
Ran 17 Nov 2026 02:00PM UTC
Jobs 10
Files 892
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

17 Nov 2026 01:55PM UTC coverage: 86.052% (+0.02%) from 86.036%
44097547713

push

github

web-flow
feat(errorPages): serve 404/500 pages from the standalone error app DEV-2109 (#7888)

### 📣 Summary
Pages that don't exist (outside the frontend's `#/` routes) and server
errors now show the new 404 and 500 pages built in #7438, instead of the
old Django templates. The 500 page also works when the database is down.
Before, it crashed in that case and users saw a blank "Internal Server
Error".

### 📖 Description
- `handler404`/`handler500` (`kobo/urls.py`) now go through a new
`render_error_page()` in `kpi/views/error_pages.py`. Non-HTML requests
are unchanged: 404 → plain text, 500 → DRF JSON.
- **The normal case behaves exactly as before:** the page renders the
usual way, with context processors, so branding (`config`) and
everything else in the base template work as they do on any other page.
- **Fallback when rendering fails:** several context processors query
the database, which is often why a 500 is being served in the first
place. If rendering fails, the page renders again without the request,
so no context processors run. Branding is then empty, and the error app
shows Kobo's defaults.
- Before this PR, the 500 handler crashed in that case. Django doesn't
catch errors raised inside `handler500`, so they reached the app server,
and users got a blank "Internal Server Error". This was already true of
the old `custom_500.html`.
- The same fallback stops a 404 from turning into that page when the
database is down.
- `render_500_page()` adds a last-resort hard-coded HTML page in case
the template itself can't render (e.g. a broken webpack stats file).
- The `/__dev__/error/…` preview now uses the same function, so it shows
exactly what production serves.
- Deleted `custom_404.html` and `custom_500.html`. The "Go back" link is
dropped, as agreed on #7438.
- ⚠️ **Behaviour change: 404/500 pages are no longer tracked in Google
Analytics.** The old templates extended `base.html`, which loads gtag.js
and the main app, whose `main.js` starts GA. The new `e... (continued)

10971 of 13782 branches covered (79.6%)

23 of 23 new or added lines in 2 files covered. (100.0%)

2314 existing lines in 73 files now uncovered.

34316 of 39878 relevant lines covered (86.05%)

5.82 hits per line

Coverage Regressions

Lines Coverage ∆ File
303
0.0
-91.54% kobo/apps/openrosa/apps/viewer/pandas_mongo_bridge.py
254
48.3
-41.03% kobo/apps/openrosa/libs/utils/logger_tools.py
206
19.7
-62.42% kobo/apps/openrosa/libs/utils/export_tools.py
93
42.11
-48.95% kobo/apps/openrosa/apps/api/viewsets/xform_list_api.py
70
37.04
-51.85% kobo/apps/openrosa/apps/logger/utils/counters.py
66
33.33
-59.46% kobo/apps/openrosa/apps/viewer/views.py
63
33.96
-59.43% kobo/apps/openrosa/apps/api/viewsets/briefcase_api.py
61
0.0
-63.54% kobo/apps/openrosa/apps/logger/tasks.py
59
48.31
-50.0% kobo/apps/openrosa/apps/api/viewsets/xform_submission_api.py
54
24.51
-52.94% kobo/apps/openrosa/apps/logger/views.py
52
57.0
-26.0% kpi/utils/xml.py
51
23.66
-38.93% kobo/apps/openrosa/apps/logger/utils/instance.py
45
54.03
-36.29% kobo/apps/openrosa/apps/logger/signals.py
45
44.26
-7.27% kpi/deployment_backends/openrosa_backend.py
38
24.14
-32.76% kobo/apps/openrosa/apps/viewer/tasks.py
37
51.22
-45.12% kobo/apps/openrosa/libs/serializers/xform_serializer.py
36
28.85
-69.23% kobo/apps/openrosa/apps/logger/import_tools.py
34
48.31
-7.64% kobo/apps/audit_log/models.py
34
55.42
-40.96% kobo/apps/openrosa/libs/renderers/renderers.py
33
57.26
-26.61% kobo/apps/openrosa/apps/logger/models/attachment.py
33
52.87
-37.93% kobo/apps/openrosa/apps/viewer/models/export.py
32
61.88
-17.68% kobo/apps/openrosa/apps/viewer/models/data_dictionary.py
32
67.36
-16.58% kobo/apps/openrosa/apps/viewer/models/parsed_instance.py
30
0.0
-75.0% kobo/apps/openrosa/apps/django_digest_backends/cache.py
30
26.67
-50.0% kobo/apps/openrosa/libs/utils/image_tools.py
29
84.88
-11.24% kobo/apps/openrosa/apps/logger/xform_instance_parser.py
29
27.95
-9.01% kpi/views/v2/data.py
27
34.0
-54.0% kobo/apps/data_collectors/authentication.py
27
62.73
-12.27% kpi/permissions.py
26
27.78
-72.22% kobo/apps/openrosa/libs/utils/decorators.py
24
75.13
-12.44% kobo/apps/openrosa/apps/logger/models/xform.py
22
29.66
-18.64% kobo/apps/openrosa/libs/utils/viewer_tools.py
22
68.22
-10.28% kpi/utils/mongo_helper.py
21
56.56
-17.21% kobo/apps/openrosa/libs/utils/middleware.py
21
36.36
-63.64% kobo/apps/openrosa/libs/utils/user_auth.py
20
43.9
-48.78% kobo/apps/openrosa/libs/filters.py
17
16.22
-45.95% kobo/apps/openrosa/apps/logger/utils/database_query.py
17
41.94
-54.84% kobo/apps/openrosa/libs/authentication.py
15
20.0
-60.0% kobo/apps/openrosa/apps/api/utils/xml.py
15
34.38
-46.88% kobo/apps/openrosa/apps/logger/xform_fs.py
15
64.76
-14.29% kpi/utils/object_permission.py
14
76.72
-7.41% kobo/apps/openrosa/apps/logger/models/instance.py
13
52.56
-16.67% kpi/authentication.py
12
58.11
-16.22% kobo/apps/openrosa/apps/main/models/meta_data.py
11
63.57
-7.86% kobo/apps/audit_log/signals.py
11
45.16
-17.74% kpi/views/v2/attachment.py
10
30.12
-12.05% kpi/utils/storage.py
9
41.18
-52.94% kpi/utils/viewset_mixins.py
8
50.0
-50.0% kobo/apps/openrosa/libs/utils/model_tools.py
7
32.61
-15.22% kobo/apps/openrosa/apps/api/tools.py
7
41.67
-58.33% kobo/apps/openrosa/apps/logger/utils/attachment.py
7
30.0
-70.0% kobo/apps/openrosa/libs/utils/string.py
7
66.9
-1.63% kpi/deployment_backends/base_backend.py
6
83.93
-10.71% kobo/apps/openrosa/apps/logger/exceptions.py
6
69.57
-26.09% kobo/apps/openrosa/libs/permissions.py
5
33.1
-3.52% kobo/apps/mass_emails/user_queries.py
5
72.22
-27.78% kobo/apps/openrosa/apps/logger/models/daily_xform_submission_counter.py
5
75.0
-25.0% kobo/apps/openrosa/apps/logger/models/monthly_xform_submission_counter.py
5
66.67
-33.33% kobo/apps/openrosa/apps/viewer/signals.py
5
50.0
-50.0% kobo/apps/openrosa/libs/mixins/openrosa_headers_mixin.py
4
45.45
-36.36% kobo/apps/openrosa/koboform/__init__.py
4
0.0
-100.0% kobo/apps/openrosa/libs/utils/storage.py
3
60.0
-30.0% kobo/apps/openrosa/libs/serializers/data_serializer.py
3
60.0
-30.0% kpi/mixins/mfa.py
1
35.59
-1.69% kobo/apps/accounts/mfa/utils.py
1
81.82
-1.3% kobo/apps/audit_log/base_views.py
1
75.0
-25.0% kobo/apps/audit_log/mixins.py
1
92.86
-3.57% kobo/apps/audit_log/utils.py
1
96.67
-3.33% kpi/fields/kpi_uid.py
1
92.22
-0.17% kpi/models/asset.py
1
53.0
-0.46% kpi/renderers.py
1
94.12
-0.59% kpi/utils/django_orm_helper.py
1
75.0
-6.25% kpi/utils/drf_exceptions.py
Jobs
ID Job ID Ran Files Coverage
1 44097547713.1 17 Nov 2026 02:00PM UTC 887
54.48
2 44097547713.2 17 Nov 2026 02:00PM UTC 887
57.42
3 44097547713.3 17 Nov 2026 02:01PM UTC 889
55.81
4 44097547713.4 17 Nov 2026 02:01PM UTC 887
50.06
5 44097547713.5 17 Nov 2026 02:02PM UTC 889
59.01
6 44097547713.6 17 Nov 2026 02:02PM UTC 890
66.58
7 44097547713.7 17 Nov 2026 02:03PM UTC 887
59.47
8 44097547713.8 17 Nov 2026 02:04PM UTC 889
60.64
9 44097547713.9 17 Nov 2026 02:05PM UTC 892
69.09
10 44097547713.10 17 Nov 2026 02:05PM UTC 889
51.42
Source Files on build 44097547713
  • Tree
  • List 892
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • ab6233b5 on github
  • Prev Build on main (#44095682917)
  • Next Build on main (#44286489618)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc