Aggregate collaborative launch result hashes in the issue - #64
Conversation
|
One note on the summary format: the table matches the example from #49 / DrahtBot#80, plus two extra lines below it ( |
|
I just tried it in both of your example pulls and it does not seem like the tables are getting updated. It seems like it already didn't work with the second hashes you posted there. |
|
|
||
| This repository holds recently created ASMap files encoded for use in Bitcoin Core. Any map included here has been created collaboratively between multiple participants (coordinated in an issue) and verified (in the follow-up pull request). The process is outlined in further detail on [Delving Bitcoin](https://delvingbitcoin.org/t/asmap-creation-process/548). | ||
|
|
||
| ## Collaborative launches |
There was a problem hiding this comment.
We don't need documentation on this in the readme. We should rather keep a comment on this in the bottom of the collaborative run issues. But since it's environment dependent it shouldn't go in the readme.
There was a problem hiding this comment.
okay, will remove that
I would prefer it if the table was sorted instead, i.e. the leading hash(es) is at the top. And then there can be a third row with the share of the total matches. Something like this:
|
Saw that, you wrapped the hashes in backticks. Right now only a bare line is recognized, so Perhaps you could try it again without doing that. Of course, I’m also happy to adjust the rule so that hashes enclosed in `` are also taken into account. |
|
Seemed to work but there are still some issues with multiple results, I noted them in the demo issues.
Yeah, that should definitely be adjusted. I prefer the use of backticks but it should not be a requirement. Any formatting of the hash (even bold etc.) should be ignored just like different captializations of hash/Hash/HASH |
|
I am also getting email notifications that the bot posted a new comment. We don't get these for drahtbot when it updates the acks table. this bot also shouldn't trigger notifications as that is too noisy and the updated corresponds to a user comment anyway. |
The table is already sorted with the leading hash at the top. Happy to switch to your format though: drop the |
Yes, the leading also doesn't really work because it just shows one hash even when there are multiple with the same count of matches:
|
@fjahr quick check on the voting rule, because this conflicts a bit with what I implemented from #44 (one vote per participant, not per machine). Right now the bot keeps one result per GitHub user and only the first Do you want:
|
It is one vote per user but they can vote for multiple hashes, not multiple times for the same hash, which would be one vote per machine. So it's neither of what you wrote. You take every HASH result from them into account, can be multiple lines in one comment or across multiple comments but they can vote for each hash once at most. |
|
Got it: every distinct hash a user posts counts once for them, duplicates of the same hash don't. I'll rework the bot with the review notes and open a fresh demo issue when it's up! |
267ccc4 to
732d6aa
Compare
|
Reworked the action based on the review and ran a full test round in demo issue #3. Changes:
Demo issue with these changes here: #3 |
|
ACK 732d6aa Tested all the edge cases I could think of. Looks good to use for Thursday. |
This PR adds a GitHub Action that keeps one summary comment on open collaborative launch issues, with a table of matching result hashes (the part people used to tally by hand). Discussed in #49 and maflcko's sketch in DrahtBot#80.
What
On issues titled
Collaborative Launch …, the action creates a summary comment when the issue opens and edits that same comment when the table changes.Participants report results with lines like:
Every distinct hash a user posts counts once for them, whether the lines sit in one comment or spread across several (voting rule). Reposting the same hash adds no votes. This covers results from multiple machines.
The summary table is sorted by match count:
xyz…abc…def…The denominator is the number of users who reported at least one hash. Comment edits and deletions trigger a rescan. Closed issues are ignored.
Accepted
HASH:linesHASH: <sha256>HASH:<sha256>(no space)Hash: <sha256>/hash: <sha256>HASH: `<sha256>`HASH: **<sha256>**Not accepted
HASH:with no hashHASH:prefix (e.g.The SHA-256 hash of the result file is: …)> HASH: <sha256>(quoted line)<!--meta-tag:bot-skip-->Suggested addition for launch issue bodies (for example #63):
Demo (fork)
After merge
#63 is already open for the 6 August launch. Merge alone will not post the summary there (the issue was not newly opened). If this lands before the launch, someone with write access can trigger a one-time refresh (Actions: Aggregate Collaborative Hashes, issue number
63, or a small issue edit). Otherwise the first comment on #63 after the merge creates the summary (empty table untilHASH:lines arrive); later comments update it.Happy to take suggestions on the summary comment or any other stuff.