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

Fix disabled aiokafka unit tests #610

Merged
merged 16 commits into from
Apr 1, 2024
Merged

Fix disabled aiokafka unit tests #610

merged 16 commits into from
Apr 1, 2024

Conversation

wbarnha
Copy link
Member

@wbarnha wbarnha commented Feb 23, 2024

It's going to be hard to investigate what's going on with #175 unless we get better testing in place.

@wbarnha wbarnha added bug Something isn't working help wanted Extra attention is needed labels Feb 23, 2024
@wbarnha wbarnha self-assigned this Feb 23, 2024
Copy link

codecov bot commented Feb 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.08%. Comparing base (3d737c7) to head (32e7a51).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #610      +/-   ##
==========================================
+ Coverage   93.69%   94.08%   +0.38%     
==========================================
  Files         102      102              
  Lines       11117    11117              
  Branches     1550     1550              
==========================================
+ Hits        10416    10459      +43     
+ Misses        609      558      -51     
- Partials       92      100       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -840,14 +840,14 @@ def _verify_aiokafka_event_path(self, now: float, tp: TP) -> bool:
poll_at = None
aiotp_state = assignment.state_value(aiotp)
if aiotp_state and aiotp_state.timestamp:
poll_at = aiotp_state.timestamp / 1000
Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like this change was originally implemented in dcc421f by @patkivikram, could you expand on this?

@wbarnha wbarnha marked this pull request as ready for review April 1, 2024 15:17
if poll_at is None:
if secs_since_started >= self.tp_fetch_request_timeout_secs:
# NO FETCH REQUEST SENT AT ALL SINCE WORKER START
self.log.error(
SLOW_PROCESSING_NO_FETCH_SINCE_START,
tp,
secs_since_started,
humanize_seconds_ago(secs_since_started),
Copy link
Member Author

Choose a reason for hiding this comment

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

Accidentally reverted this in master, ignore.

@wbarnha wbarnha merged commit 13e7ef1 into master Apr 1, 2024
18 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant