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

feat(taskworker): Make auth taskworker compatible #88336

Merged
merged 10 commits into from
Apr 1, 2025

Conversation

enochtangg
Copy link
Member

@enochtangg enochtangg commented Mar 31, 2025

This work is required to migrate tasks from celery to the new taskbroker system. The sentry option will be used to control the rollout of these tasks. The full migration plan is describe in this document.

  • Move auth and check_auth into /auth directory
  • Add auth namespaces and rollout options

@enochtangg enochtangg requested review from a team as code owners March 31, 2025 15:47
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 31, 2025
Copy link

codecov bot commented Mar 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #88336      +/-   ##
==========================================
- Coverage   87.73%   87.73%   -0.01%     
==========================================
  Files       10008    10002       -6     
  Lines      566780   566570     -210     
  Branches    22271    22223      -48     
==========================================
- Hits       497290   497088     -202     
+ Misses      69071    69064       -7     
+ Partials      419      418       -1     

Copy link
Member

@evanh evanh left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -0,0 +1,4 @@
from sentry.taskworker.registry import TaskNamespace, taskregistry
Copy link
Member

Choose a reason for hiding this comment

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

We could move this file and the auth tasks to sentry.auth.tasks (can be done separately). That would avoid the duplicate segment in the import path.

@enochtangg enochtangg enabled auto-merge (squash) April 1, 2025 17:57
@enochtangg enochtangg merged commit 6ca2a0c into master Apr 1, 2025
48 checks passed
@enochtangg enochtangg deleted the migrate-auth-taskworker branch April 1, 2025 18:12
andrewshie-sentry pushed a commit that referenced this pull request Apr 8, 2025
This work is required to migrate tasks from celery to the new taskbroker
system. The sentry option will be used to control the rollout of these
tasks. The full migration plan is describe in this
[document](https://www.notion.so/sentry/Rollout-Planning-1bd8b10e4b5d80aeaaa7dba0efca83bc).

* Move `auth` and `check_auth` into `/auth` directory
* Add auth namespaces and rollout options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants