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

"no assignee" spam #173

Open
gnprice opened this issue May 5, 2020 · 6 comments
Open

"no assignee" spam #173

gnprice opened this issue May 5, 2020 · 6 comments
Labels

Comments

@gnprice
Copy link
Member

gnprice commented May 5, 2020

Zulipbot posted on zulip/zulip#12309 a series of error messages reading:

ERROR: This active issue has no assignee.

A few days before that, Zulipbot itself had unassigned the person who had been assigned.

I fixed it for that issue by removing the "in progress" label. But Zulipbot should probably have done that in the first place.

@gnprice
Copy link
Member Author

gnprice commented May 5, 2020

Oh, and now I notice another anomaly on that thread:

On 2020-04-14, Zulipbot made a comment saying:

Hello @ryanreh99, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 14 days. [...]

But in fact it didn't do any unassigning then. It was only on 2020-04-20, six days later, that it actually unassigned the person.

That may be a clue to the issue.

@gnprice
Copy link
Member Author

gnprice commented May 5, 2020

And another anomaly -- though this one I have a guess as to the cause of, and if my guess is right then it's not a bug exactly but a UX subtlety without a simple complete fix:

A couple of days before that Zulipbot comment, @ryanreh99 had in fact posted a PR (zulip/zulip#12309) that addressed the issue. So why did Zulipbot make such a comment at all?

I suspect the answer is that while the PR description mentioned the issue, it didn't use the magic word "fixes" or one of its magic synonyms. So the issue wasn't "linked" in the GitHub right-sidebar "Linked issues" / "Linked pull requests" sense.

That probably isn't related to how the bug happens, but could be -- worth bearing in mind while debugging.

Also, the docs at https://zulip.readthedocs.io/en/latest/contributing/zulipbot-usage.html should be updated to explicitly say that you need to do that -- I don't see a mention of it on a quick skim. (If it does say that somewhere I missed, it should probably be more prominent.) And @ryanreh99 there's a Zulipbot usage tip for you 🙂

@ryanreh99
Copy link

I suspect the answer is that while the PR description mentioned the issue, it didn't use the magic word "fixes" or one of its magic synonyms. So the issue wasn't "linked" in the GitHub right-sidebar "Linked issues" / "Linked pull requests" sense.

It seems like using "Closes" in the PR / commit message also has an anomaly.
The PR for issue zulip/zulip#526 does link to the issue.

Jan 1 - zulipbot posts a message. (this is correct)

Hello @ryanreh99, you claimed this issue to work on it, but this issue and any referenced pull requests haven't been updated for 10 days. Are you still working on this issue?
If so, please update this issue by leaving a comment on this issue to let me know that you're still working on it. Otherwise, I'll automatically remove you from this issue in 4 days.

Jan 4 and 8 - PR author updates the commit referencing the issue
Jan 13 - zulipbot unassigns the user with the message. (both on the same date)

Hello @ryanreh99, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 14 days.

@ryanreh99
Copy link

Both the above 2 mentioned issues had PRs containing the word "WIP" in the title.
I think this is related to #166

@gnprice
Copy link
Member Author

gnprice commented May 5, 2020

Both the above 2 mentioned issues had PRs containing the word "WIP" in the title.
I think this is related to #166

Ah, good find!

And from the chat thread linked from that issue:

zulipbot ignores updates on PRs titled with WIP

So that may explain why Zulipbot wanted to unassign that issue in the first place -- which just leaves:

  • why it didn't actually unassign when it made the "you have been unassigned" comment
  • why it didn't remove the label when it did unassign

Also that special behavior around "WIP" PR titles should be documented, if we're going to have it -- but probably we just shouldn't have that special behavior. That's #166, then.

@ahmedabuamra
Copy link

ahmedabuamra commented Feb 14, 2021

Both the above 2 mentioned issues had PRs containing the word "WIP" in the title.
I think this is related to #166

issue #687 has no linked PRs and the bot posts the same comment/error.

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

No branches or pull requests

4 participants