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

kobotoolbox / kpi / 22580089244
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 02 Mar 2026 02:54PM UTC
Jobs 2
Files 891
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

02 Mar 2026 02:20PM UTC coverage: 82.144% (+0.08%) from 82.067%
22580089244

push

github

web-flow
feat(subsequences): add unit tests for subsequence polling tasks and failure handlers DEV-1787 (#6776)

### 📣 Summary
Added unit tests for `poll_run_external_process` and its Celery signal
failure handler `poll_run_external_process_failure` to ensure external
NLP timeouts and crashes are accurately recorded in the database.

### 📖 Description
Currently, we lacked testing around the Celery polling mechanism for
external subsequences processes. This PR introduces a test suite
(`TestPollRunExternalProcess` and `TestPollRunExternalProcessFailure`)
covering both standard task execution and the `@task_failure.connect`
signal handler.

Test Coverage Includes:
- Polling task correctly raises `SubsequenceTimeoutError` for
`in_progress` API responses to trigger Celery retries.
- Polling task correctly intercepts graceful API failures without
crashing the worker.
- Failure handler catches unhandled exceptions and logs a `failed`
status to `SubmissionSupplement`.
- Failure handler intercepts max-retry exhaustion and rewrites the
internal timeout error to a user-friendly "Maximum retries exceeded."
message.

7472 of 11502 branches covered (64.96%)

28716 of 34958 relevant lines covered (82.14%)

1.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22580089244.1 02 Mar 2026 02:55PM UTC 889
79.83
2 22580089244.2 02 Mar 2026 02:59PM UTC 891
82.1
Source Files on build 22580089244
  • Tree
  • List 891
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 50ebe74f on github
  • Prev Build on main (#22509946657)
  • Next Build on main (#22584256069)
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