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

kobotoolbox / kpi / 22580089244 / 1
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 02 Mar 2026 02:55PM UTC
Files 889
Run time 29s
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: 79.826% (+0.09%) from 79.74%
22580089244.1

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.

7277 of 11561 branches covered (62.94%)

27900 of 34951 relevant lines covered (79.83%)

0.8 hits per line

Source Files on job 22580089244.1
  • Tree
  • List 889
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 22580089244
  • 50ebe74f on github
  • Prev Job for on main (#22509946657.1)
  • Next Job for on main (#22584256069.1)
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