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

kobotoolbox / kpi / 16807153660
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1475-clean-up-refactor-subsequences
DEFAULT BRANCH: master
Ran 07 Aug 2025 03:04PM UTC
Jobs 1
Files 642
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

07 Aug 2025 02:19PM UTC coverage: 80.976% (-0.002%) from 80.978%
16807153660

push

github

web-flow
feat(projectOwnership): log errors in transferring attachments DEV-842 (#6060)

### 💭 Notes
Right now we are swallowing errors when trying to move attachments. The
jobs occasionally fail and the lack of logging makes it difficult to
diagnose, so this logs the error before returning False.

### 👀 Preview steps
Make sure you are using s3 storage

1. â„šī¸ have at least 2 accounts and a project with an image question
2. Add a few submissions with attachments to the project
3. Transfer the project to another user
4. Before accepting the transfer, update `kpi.fields.file.py:20-23` with
```
        from django.apps import apps
        Attachment = apps.get_model(model_name='Attachment', app_label='logger')
        if isinstance(self.instance, Attachment):
            name = 'bad name'
        else:
            name = self.name
        copy_source = {
            'Bucket': self.storage.bucket.name,
            'Key': name,
        }
```
Make sure to restart the worker to pick up the changes
5. As the other user, accept the transfer invitation
6. 🔴 [on main] Notice there is only an `AsyncTaskException` in the
worker logs
7. đŸŸĸ [on PR] Notice there is both an `AsyncTaskException` and a more
detailed `ClientError` in the logs

6180 of 9770 branches covered (63.25%)

1 of 5 new or added lines in 1 file covered. (20.0%)

1 existing line in 1 file now uncovered.

23356 of 28843 relevant lines covered (80.98%)

0.81 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
70.27
-1.16% kpi/fields/file.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
70.27
-1.16% kpi/fields/file.py
Jobs
ID Job ID Ran Files Coverage
1 16807153660.1 07 Aug 2025 03:04PM UTC 642
80.98
Source Files on build 16807153660
  • Tree
  • List 642
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 3ca781c4 on github
  • Prev Build on release/2.025.29 (#16780507404)
  • Next Build on release/2.025.29 (#16889169611)
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