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

Concept (N)ACK issues #33

Open
maflcko opened this issue Jul 3, 2024 · 2 comments
Open

Concept (N)ACK issues #33

maflcko opened this issue Jul 3, 2024 · 2 comments

Comments

@maflcko
Copy link
Owner

maflcko commented Jul 3, 2024

Parsing will never get 100% accuracy, unless everyone is forced to use an exact format.

Here is a collection of parsing issues.

Misdetection

They should be fixed by providing a fresh review, or by downvoting the DrahtBot comment. ("If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.")

Review going stale

Workarounds:

  • Edit the later comments by this user after their review to not contain ACK, or
  • Have the user resubmit their review

An alternative code fix would be to ignore ACK after an ACK hash. However, this may interfere with the stale-ACK detection, so it should only kick in when ACK hash is not stale.

@maflcko
Copy link
Owner Author

maflcko commented Jul 4, 2024

An alternative code fix would be to ignore ACK after an ACK hash. However, this may interfere with the stale-ACK detection, so it should only kick in when ACK hash is not stale.

Fixed it in cf46398.

This also means that a ACK hash, followed by NACK may or may not be misdetected as ACK.

@ryanofsky
Copy link

Thanks for fixing!

This also means that a ACK hash, followed by NACK may or may not be misdetected as ACK.

This doesn't necessarily sound too bad if the PR changed and it shows up a stale ACK. Maybe worse in some other situations, though, but it is hard to be perfect.

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

No branches or pull requests

2 participants