Skip to content

SDK: Fix certain uploads crashing instead of retrying on failed chunk#10375

Merged
SpecLad merged 1 commit intocvat-ai:developfrom
SpecLad:logger-crash
Mar 16, 2026
Merged

SDK: Fix certain uploads crashing instead of retrying on failed chunk#10375
SpecLad merged 1 commit intocvat-ai:developfrom
SpecLad:logger-crash

Conversation

@SpecLad
Copy link
Copy Markdown
Contributor

@SpecLad SpecLad commented Mar 13, 2026

Motivation and context

This was a regression introduced in d471db6. I hadn't realized that the logger parameter of _upload_file_data_with_tus was a function rather than a logger object, so I used it as if it was the latter.

I don't think the logger customization makes any sense here regardless, so just drop this parameter and use the client logger.

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • [ ] I have updated the documentation accordingly
  • [ ] I have added tests to cover my changes
  • [ ] I have linked related issues (see GitHub docs)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@SpecLad SpecLad marked this pull request as ready for review March 13, 2026 16:50
@SpecLad SpecLad requested a review from nmanovic as a code owner March 13, 2026 16:50
This was a regression introduced in d471db6. I hadn't realized that the
`logger` parameter of `_upload_file_data_with_tus` was a _function_ rather
than a logger object, so I used it as if it was the latter.

I don't think the logger customization makes any sense here regardless, so
just drop this parameter and use the client logger.
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@SpecLad SpecLad merged commit 57922c0 into cvat-ai:develop Mar 16, 2026
38 checks passed
@SpecLad SpecLad deleted the logger-crash branch March 16, 2026 16:39
bsekachev pushed a commit that referenced this pull request Mar 17, 2026
…#10375)

This was a regression introduced in d471db6. I hadn't realized that the
`logger` parameter of `_upload_file_data_with_tus` was a _function_
rather than a logger object, so I used it as if it was the latter.

I don't think the logger customization makes any sense here regardless,
so just drop this parameter and use the client logger.
@cvat-bot cvat-bot bot mentioned this pull request Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant