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(hardware): Add some logging around what I think is causing some can errors #17117

Open
wants to merge 1 commit into
base: edge
Choose a base branch
from

Conversation

ryanthecoder
Copy link
Contributor

Overview

We occasionally get some ABR issues where the can bus says it's not receiving ACKs or that a move group says it didn't get all expected nodes, but reports [] as the missing nodes.

I think the second bug is because we're checking with if not self._moves[group_id] instead of checking if len(self._moves[group_id]) == 0: Which should be equivalent but I think there may be some python cleanup bug that reports the list as true due to a remnant that hasn't been garbage collected yet.

Test Plan and Hands on Testing

Changelog

Review requests

Risk assessment

@ryanthecoder ryanthecoder requested a review from a team as a code owner December 16, 2024 18:36
Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

Isn't the logic in the new check true, and thus logging, only if those values are consistent?

@@ -469,6 +469,10 @@ def _remove_move_group(
f"Received completion for {node_id} group {group_id} seq {seq_id}"
f", which {'is' if in_group else 'isn''t'} in group"
)
if not self._moves[group_id] and len(self._moves[group_id]) == 0:
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this be self._moves[group_id] and len(self._moves[group_id]) == 0? this check: not self._moves[group_id] and len(self._moves[group_id]) == 0 is true if both are true, but aren't we asserting that a bug causes len(self._moves[group_id] == 0 to be true and not self._moves[group_id] to be false at the same time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants