Skip to content

test: improve worker coverage (#4402) - #8214

Draft
faizansaiyed123 wants to merge 1 commit into
getsentry:masterfrom
faizansaiyed123:test/4402-worker-coverage
Draft

faizansaiyed123 wants to merge 1 commit into
getsentry:masterfrom
faizansaiyed123:test/4402-worker-coverage

Conversation

@faizansaiyed123

@faizansaiyed123 faizansaiyed123 commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a dedicated tests/test_worker.py module to improve coverage of the SDK's synchronous and asynchronous workers.

The tests exercise callback processing, worker lifecycle, queue capacity, callback failures, flush behavior, and cancellation using real worker instances and synchronization primitives.

Related issue

References #4402.

Test plan

  • Run the new worker test module.
  • Run the relevant existing test suite.
  • Run Ruff checks.
  • Review CI results and address any failures.

Note: These checks have not yet been run locally for this commit. This draft is being opened to make the CI results visible.

This branch has not been deployed

No deployments
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