Skip to content

feat(codecov): Remove Codecov webhooks and TA feature flag#109844

Open
calvin-codecov wants to merge 2 commits intomasterfrom
cy/remove_ta_be
Open

feat(codecov): Remove Codecov webhooks and TA feature flag#109844
calvin-codecov wants to merge 2 commits intomasterfrom
cy/remove_ta_be

Conversation

@calvin-codecov
Copy link
Contributor

@calvin-codecov calvin-codecov commented Mar 3, 2026

Removing webhooks that are forwarded to Codecov from Sentry as we are removing the Sentry TA feature

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 3, 2026
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 3 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

Backend Test Failures

Failures on 966ef81 in this run:

tests/sentry/middleware/integrations/parsers/test_github.py::GithubRequestParserMailboxBucketingTest::test_webhook_outbox_creation_without_bucketinglog
tests/sentry/middleware/integrations/parsers/test_github.py:314: in test_webhook_outbox_creation_without_bucketing
    response = parser.get_response()
src/sentry/middleware/integrations/parsers/github.py:120: in get_response
    identifier=self.get_mailbox_identifier(integration, event),
src/sentry/middleware/integrations/parsers/github.py:61: in get_mailbox_identifier
    if not options.get("github.webhook.mailbox-bucketing.enabled"):
E   NameError: name 'options' is not defined
tests/sentry/middleware/integrations/parsers/test_github.py::GithubRequestParserTypeRoutingTest::test_issue_deleted_routinglog
tests/sentry/middleware/integrations/parsers/test_github.py:218: in test_issue_deleted_routing
    response = parser.get_response()
src/sentry/middleware/integrations/parsers/github.py:120: in get_response
    identifier=self.get_mailbox_identifier(integration, event),
src/sentry/middleware/integrations/parsers/github.py:61: in get_mailbox_identifier
    if not options.get("github.webhook.mailbox-bucketing.enabled"):
E   NameError: name 'options' is not defined
tests/sentry/middleware/integrations/parsers/test_github.py::GithubRequestParserDropUnprocessedEventsTest::test_missing_x_github_event_not_dropped_forwards_to_regionlog
tests/sentry/middleware/integrations/parsers/test_github.py:452: in test_missing_x_github_event_not_dropped_forwards_to_region
    response = parser.get_response()
src/sentry/middleware/integrations/parsers/github.py:120: in get_response
    identifier=self.get_mailbox_identifier(integration, event),
src/sentry/middleware/integrations/parsers/github.py:61: in get_mailbox_identifier
    if not options.get("github.webhook.mailbox-bucketing.enabled"):
E   NameError: name 'options' is not defined
tests/sentry/middleware/integrations/parsers/test_github.py::GithubRequestParserTypeRoutingTest::test_webhook_outbox_creationlog
tests/sentry/middleware/integrations/parsers/test_github.py:154: in test_webhook_outbox_creation
    response = parser.get_response()
src/sentry/middleware/integrations/parsers/github.py:120: in get_response
    identifier=self.get_mailbox_identifier(integration, event),
src/sentry/middleware/integrations/parsers/github.py:61: in get_mailbox_identifier
    if not options.get("github.webhook.mailbox-bucketing.enabled"):
E   NameError: name 'options' is not defined
tests/sentry/middleware/integrations/parsers/test_github.py::GithubRequestParserDropUnprocessedEventsTest::test_supported_event_never_dropped_when_flag_enabledlog
tests/sentry/middleware/integrations/parsers/test_github.py:428: in test_supported_event_never_dropped_when_flag_enabled
    response = parser.get_response()
src/sentry/middleware/integrations/parsers/github.py:120: in get_response
    identifier=self.get_mailbox_identifier(integration, event),
src/sentry/middleware/integrations/parsers/github.py:61: in get_mailbox_identifier
    if not options.get("github.webhook.mailbox-bucketing.enabled"):
E   NameError: name 'options' is not defined
tests/sentry/middleware/integrations/parsers/test_github.py::GithubRequestParserTest::test_issue_deleted_routinglog
tests/sentry/middleware/integrations/parsers/test_github.py:218: in test_issue_deleted_routing
    response = parser.get_response()
src/sentry/middleware/integrations/parsers/github.py:120: in get_response
    identifier=self.get_mailbox_identifier(integration, event),
src/sentry/middleware/integrations/parsers/github.py:61: in get_mailbox_identifier
    if not options.get("github.webhook.mailbox-bucketing.enabled"):
E   NameError: name 'options' is not defined
tests/sentry/middleware/integrations/parsers/test_github.py::GithubRequestParserDropUnprocessedEventsTest::test_drops_unprocessed_event_when_flag_enabledlog
src/sentry/testutils/silo.py:244: in _callTestMethod
    return TestCase._callTestMethod(obj, method)  # type: ignore[attr-defined]
.venv/lib/python3.13/site-packages/django/test/utils.py:456: in inner
    return func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
.venv/lib/python3.13/site-packages/responses/__init__.py:218: in wrapper
    return func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/unittest/mock.py:1421: in patched
    with self.decoration_helper(patched,
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:141: in __enter__
    return next(self.gen)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/unittest/mock.py:1403: in decoration_helper
    arg = exit_stack.enter_context(patching)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/contextlib.py:530: in enter_context
    result = _enter(cm)
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/unittest/mock.py:1495: in __enter__
    original, local = self.get_original()
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/unittest/mock.py:1465: in get_original
    raise AttributeError(
E   AttributeError: <module 'sentry.middleware.integrations.parsers.github' from '/home/runner/work/sentry/sentry/src/sentry/middleware/integrations/parsers/github.py'> does not have the attribute 'metrics'
tests/sentry/middleware/integrations/parsers/test_github.py::GithubRequestParserMailboxBucketingTest::test_webhook_without_repository_falls_back_to_single_mailboxlog
tests/sentry/middleware/integrations/parsers/test_github.py:337: in test_webhook_without_repository_falls_back_to_single_mailbox
    response = parser.get_response()
src/sentry/middleware/integrations/parsers/github.py:120: in get_response
    identifier=self.get_mailbox_identifier(integration, event),
src/sentry/middleware/integrations/parsers/github.py:61: in get_mailbox_identifier
    if not options.get("github.webhook.mailbox-bucketing.enabled"):
E   NameError: name 'options' is not defined
tests/sentry/middleware/integrations/parsers/test_github_enterprise.py::GithubEnterpriseRequestParserTest::test_webhook_outbox_creationlog
tests/sentry/middleware/integrations/parsers/test_github_enterprise.py:152: in test_webhook_outbox_creation
    response = parser.get_response()
src/sentry/middleware/integrations/parsers/github.py:120: in get_response
    identifier=self.get_mailbox_identifier(integration, event),
src/sentry/middleware/integrations/parsers/github.py:61: in get_mailbox_identifier
    if not options.get("github.webhook.mailbox-bucketing.enabled"):
E   NameError: name 'options' is not defined
tests/sentry/middleware/integrations/parsers/test_github.py::GithubRequestParserTest::test_webhook_outbox_creationlog
tests/sentry/middleware/integrations/parsers/test_github.py:154: in test_webhook_outbox_creation
    response = parser.get_response()
src/sentry/middleware/integrations/parsers/github.py:120: in get_response
    identifier=self.get_mailbox_identifier(integration, event),
src/sentry/middleware/integrations/parsers/github.py:61: in get_mailbox_identifier
    if not options.get("github.webhook.mailbox-bucketing.enabled"):
E   NameError: name 'options' is not defined
tests/sentry/middleware/integrations/parsers/test_github.py::GithubRequestParserDropUnprocessedEventsTest::test_does_not_drop_when_flag_off_creates_payloadslog
tests/sentry/middleware/integrations/parsers/test_github.py:404: in test_does_not_drop_when_flag_off_creates_payloads
    response = parser.get_response()
src/sentry/middleware/integrations/parsers/github.py:120: in get_response
    identifier=self.get_mailbox_identifier(integration, event),
src/sentry/middleware/integrations/parsers/github.py:61: in get_mailbox_identifier
    if not options.get("github.webhook.mailbox-bucketing.enabled"):
E   NameError: name 'options' is not defined
tests/sentry/middleware/integrations/parsers/test_github.py::GithubRequestParserMailboxBucketingTest::test_webhook_outbox_creation_with_bucketinglog
tests/sentry/middleware/integrations/parsers/test_github.py:292: in test_webhook_outbox_creation_with_bucketing
    response = parser.get_response()
src/sentry/middleware/integrations/parsers/github.py:120: in get_response
    identifier=self.get_mailbox_identifier(integration, event),
src/sentry/middleware/integrations/parsers/github.py:61: in get_mailbox_identifier
    if not options.get("github.webhook.mailbox-bucketing.enabled"):
E   NameError: name 'options' is not defined

@calvin-codecov calvin-codecov marked this pull request as ready for review March 4, 2026 17:14
@calvin-codecov calvin-codecov requested review from a team as code owners March 4, 2026 17:14
@calvin-codecov calvin-codecov requested a review from armenzg March 4, 2026 17:15
@calvin-codecov calvin-codecov changed the title feat(codecov): Remove TA webhooks and feature flag feat(codecov): Remove Codecov webhooks and TA feature flag Mar 4, 2026
Copy link
Member

@armenzg armenzg left a comment

Choose a reason for hiding this comment

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

Let's disable it via the option before merging this.

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.

2 participants