-
Notifications
You must be signed in to change notification settings - Fork 61
Unexpected Unassign #654
Comments
Hi @pavlovcik I had a look at sources out of curiosity how the state machine works. I guess the root cause was that wildcardProcessors kicked in on a GitHub event other than GithubEvent.PUSH when you added the pull request to the merge queue.
I further assume that this bounty must have had Normally the 'GithubEvent.PUSH' event is received when the PR is merged is processed here https://github.com/ubiquity/ubiquibot/blob/development/src/handlers/processors.ts#L68 And I suspect that when you added the PR to the merge queue, it triggered another event than So the way to fix this would be to add the same processor for the |
Thanks for sharing your hypothesis! @devpanther is working on the real-time log app right now over at: Since it is not completed, you might be able to use the latest code there and view the logs to complete the current task. The logging app basically just reads directly from our database with a Supabase anonymous key (read only access.) |
ok great, I will look into this and try to fix tomorrow. |
/start |
Tips:
|
I went an extra mile here with the setup, was able to reproduce and fix the issue. The problem is not the merge_group event , but the fact that when merge queues are used, GitHub sends three!
Therefore, behind the scenes , when using merge queues, GitHub creates a special temporary branch, pushes pull requests into the temporary branches and then pushes them back into a base branch using a queue mechanism. I modified my local bot sources to log full webhook payloads to console, modified
I had to create my GitHub organization as normal accounts do not support merge queues, where I installed my modified bot and was able to QA my fix here: The solution is not to trigger the wildcard handlers during GitHub PUSH event, just the dedicated webhook push handler should be triggered then. The wildcard handlers are triggered anyway shortly after when bot comments and when it closes the issue. I will submit a pull request with a fix asap. |
@gitcoindev lovely research. Thanks a ton for your contributions. |
[ CLAIM 300 WXDAI ]
If you've enjoyed your experience in the DevPool, we'd appreciate your support. Follow Ubiquity on GitHub and star this repo. Your endorsement means the world to us and helps us grow!We are excited to announce that the DevPool and UbiquiBot are now available to partners! Our ideal collaborators are globally distributed crypto-native organizations, who actively work on open source on GitHub, and excel in research & development. If you can introduce us to the repository maintainers in these types of companies, we have a special bonus in store for you! |
/query @pavlovcik |
@pavlovcik's wallet address is 0x4007CE2083c7F3E18097aeB3A39bb8eC149a341d and multiplier is 1 |
Hmm strange, why 0 WXDAI for you? perhaps an another bug? |
This was fixed in a later commit (which currently exists on the development branch) to not display rewards of 0, and also to explicitly state that it is for comment incentives. It looks like it rounded down to the nearest dollar (0) We will roll out the new update within the next few days! |
This should be diagnosed and fixed. This should not have happened. Also for auditing/scoring this is bad for the bounty hunter to be unassigned because now they technically would not have gotten credit (for XP) for this closed issue (they are no longer assigned.)
Fortunately, at least, the permit was generated probably due to a race condition.
Originally posted by @ubiquibot[bot] in #496 (comment)
The text was updated successfully, but these errors were encountered: