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: Remove all references to settings.KAFKA_TOPICS so it can be removed #66288

Merged
merged 11 commits into from Mar 6, 2024

Conversation

lynnagara
Copy link
Member

@lynnagara lynnagara commented Mar 5, 2024

Depends on #66283 and #66343

…ides

This moves the `dlq_topic` consumer definitions and anything that uses
the `get_topic_definition` helper function over to the new style kafka
topic config.
@lynnagara lynnagara requested a review from a team as a code owner March 5, 2024 02:10
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 5, 2024
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.30%. Comparing base (6aa0fd7) to head (c749483).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #66288   +/-   ##
=======================================
  Coverage   84.30%   84.30%           
=======================================
  Files        5311     5311           
  Lines      237263   237258    -5     
  Branches    41036    41035    -1     
=======================================
- Hits       200016   200015    -1     
+ Misses      37028    37024    -4     
  Partials      219      219           
Files Coverage Δ
src/sentry/consumers/__init__.py 72.09% <100.00%> (-0.84%) ⬇️
src/sentry/sentry_metrics/client/kafka.py 100.00% <100.00%> (ø)

... and 5 files with indirect coverage changes

@anonrig anonrig requested a review from a team March 5, 2024 12:30
kafka_topic_dict = settings.KAFKA_TOPICS[kafka_topic_name]
assert kafka_topic_dict is not None
cluster_name = kafka_topic_dict["cluster"]
logical_topic = Topic.INGEST_PERFORMANCE_METRICS
Copy link
Member

Choose a reason for hiding this comment

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

can we make this Topic enum a basic class with strings? some of the tests fail now because an enum variant is not an actual string

Copy link
Member Author

Choose a reason for hiding this comment

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

Damn, the failures are a real bug. Looks like there are more pre-requisites before I can merge this (specifically, all the consumer definitions need to use the new way)

Base automatically changed from new-style-kafka-defn to master March 5, 2024 18:21
@lynnagara lynnagara requested review from a team as code owners March 5, 2024 18:21
@lynnagara lynnagara changed the base branch from master to consumer-definition-topics March 5, 2024 19:28
@lynnagara lynnagara merged commit 7e29cd4 into master Mar 6, 2024
49 checks passed
@lynnagara lynnagara deleted the remove-kafka-topics branch March 6, 2024 23:54
@github-actions github-actions bot locked and limited conversation to collaborators Mar 22, 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.

None yet

3 participants