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

chore(hybridcloud) Move outbox tasks to sentry.hybridcloud #75739

Merged
merged 3 commits into from
Aug 9, 2024

Conversation

markstory
Copy link
Member

Consolidate more outbox subsystem logic into sentry.hybridcloud.

Consolidate more outbox subsystem logic into sentry.hybridcloud.
@markstory markstory requested a review from a team as a code owner August 7, 2024 17:21
@markstory markstory requested a review from a team August 7, 2024 17:22
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 7, 2024
Comment on lines +740 to +741
"sentry.hybridcloud.tasks.backfill_outboxes",
"sentry.hybridcloud.tasks.deliver_from_outbox",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tasks didn't have their names changed, so updating CELERY_IMPORTS should be all that is necessary for tasks to continue executing without interruption.

Copy link

codecov bot commented Aug 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.24%. Comparing base (0a4fdfd) to head (0f49ac8).
Report is 51 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #75739      +/-   ##
==========================================
- Coverage   78.25%   78.24%   -0.01%     
==========================================
  Files        6838     6815      -23     
  Lines      303803   303669     -134     
  Branches    52271    52232      -39     
==========================================
- Hits       237730   237604     -126     
+ Misses      59693    59681      -12     
- Partials     6380     6384       +4     
Files Coverage Δ
src/sentry/conf/server.py 87.88% <ø> (ø)
src/sentry/hybridcloud/outbox/base.py 81.19% <100.00%> (ø)
src/sentry/hybridcloud/tasks/__init__.py 100.00% <100.00%> (ø)
src/sentry/hybridcloud/tasks/backfill_outboxes.py 96.77% <ø> (ø)
...rc/sentry/hybridcloud/tasks/deliver_from_outbox.py 85.88% <100.00%> (ø)
src/sentry/testutils/outbox.py 72.22% <100.00%> (ø)

... and 55 files with indirect coverage changes

@@ -78,7 +80,7 @@ def test_region_processing(task_runner):

@django_db_all
@control_silo_test
def test_control_processing(task_runner):
def test_control_processing(task_runner: Callable[..., Any]) -> None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have any type exemptions on these files that we need to clear now that we're explicitly typing things?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In their new location they get opted into our standard mypy rules which led to additional types being added.

@markstory markstory merged commit 67339b2 into master Aug 9, 2024
50 checks passed
@markstory markstory deleted the chore-outbox-move-tasks branch August 9, 2024 16:25
@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2024
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
Development

Successfully merging this pull request may close these issues.

2 participants