Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(backup): Use burst task runner for better tests #59926

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

azaslavsky
Copy link
Contributor

Instead of using the default task runner, which runs celery tasks at their call sites and causes all sorts of shenanigans with nested transactions, we switch to the "burst" task runner. This allows us to add "max" retry test cases as well, and helped catch a couple of sneaky bugs.

Closes getsentry/team-ospo#169
Closes getsentry/team-ospo#203

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 14, 2023
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/notify-users branch from 310d9b2 to 59592cb Compare November 14, 2023 23:41
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/use-burst-task-runner branch from 577d62d to c87a372 Compare November 14, 2023 23:42
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Merging #59926 (64b56ee) into master (a1d9a9a) will decrease coverage by 0.01%.
Report is 5 commits behind head on master.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #59926      +/-   ##
==========================================
- Coverage   80.79%   80.79%   -0.01%     
==========================================
  Files        5181     5181              
  Lines      227825   227831       +6     
  Branches    38364    38366       +2     
==========================================
- Hits       184077   184076       -1     
- Misses      38117    38121       +4     
- Partials     5631     5634       +3     
Files Coverage Δ
...sentry/services/hybrid_cloud/import_export/impl.py 86.66% <100.00%> (+0.06%) ⬆️
src/sentry/tasks/relocation.py 85.94% <100.00%> (-0.08%) ⬇️
src/sentry/testutils/helpers/task_runner.py 94.44% <100.00%> (+0.89%) ⬆️
src/sentry/utils/relocation.py 98.47% <100.00%> (+0.02%) ⬆️

... and 10 files with indirect coverage changes

@azaslavsky azaslavsky force-pushed the azaslavsky/backup/notify-users branch from 95e071a to d3da641 Compare November 16, 2023 20:39
Base automatically changed from azaslavsky/backup/notify-users to master November 16, 2023 21:17
Instead of using the default task runner, which runs celery tasks at
their call sites and causes all sorts of shenanigans with nested
transactions, we switch to the "burst" task runner. This allows us to
add "max" retry test cases as well, and helped catch a couple of sneaky
bugs.

Closes getsentry/team-ospo#169
Closes getsentry/team-ospo#203
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/use-burst-task-runner branch from b711e8d to 64b56ee Compare November 16, 2023 21:36
@azaslavsky azaslavsky marked this pull request as ready for review November 16, 2023 21:45
@azaslavsky azaslavsky requested review from a team as code owners November 16, 2023 21:45
@azaslavsky azaslavsky enabled auto-merge (squash) November 16, 2023 21:45
@azaslavsky azaslavsky merged commit 9c867e1 into master Nov 16, 2023
50 checks passed
@azaslavsky azaslavsky deleted the azaslavsky/backup/use-burst-task-runner branch November 16, 2023 22:07
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
2 participants