Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upConsider coalescing builder-github comments #2494
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Dec 7, 2016
Member
Technically they may not be pushed at the same time(*) and builder-github does not know that (it gets called separately for every distribution). But I was thinking about something else: mute messages for some distributions (so have only one for Fedora and one for Debian - * 2 for testing and stable), but still add/remove related labels.
What do you think?
(*) For example sometimes build fails for Debian 7 (still supported for 3.1) and then such package gets pushed later.
|
Technically they may not be pushed at the same time(*) and builder-github does not know that (it gets called separately for every distribution). But I was thinking about something else: mute messages for some distributions (so have only one for Fedora and one for Debian - * 2 for testing and stable), but still add/remove related labels. (*) For example sometimes build fails for Debian 7 (still supported for 3.1) and then such package gets pushed later. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Dec 8, 2016
Member
But I was thinking about something else: mute messages for some distributions (so have only one for Fedora and one for Debian - * 2 for testing and stable), but still add/remove related labels.
What do you think?
It really depends on who relies on these messages and for what purpose. Are they purely informational for repo-watchers, or are they actionable events for certain devs?
It really depends on who relies on these messages and for what purpose. Are they purely informational for repo-watchers, or are they actionable events for certain devs? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Dec 8, 2016
Member
|
It really depends on who relies on these messages and for what purpose. Are they purely informational for repo-watchers, or are they actionable events for certain devs?
Messages: mostly to notify reporting user (and anyone else who is
affected by the issue) how to install the update.
For devs the most useful things are labels (for all kind of filtering,
like here: https://github.com/qubesos/qubes-issues/).
…--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Dec 8, 2016
Member
In that case, it sounds like your muting solution will work fine.
|
In that case, it sounds like your muting solution will work fine. |
andrewdavidwong
added
C: builder
task
labels
Dec 10, 2016
added a commit
to marmarek/qubes-builder-github
that referenced
this issue
Dec 12, 2017
andrewdavidwong
added this to the
Documentation/website milestone
Dec 16, 2017
marmarek
closed this
in
marmarek/qubes-builder-github@6537a32
Jan 29, 2018
added a commit
to marmarek/qubes-builder-github
that referenced
this issue
Mar 28, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
v6ak
May 2, 2018
My idea:
- Instead of pushing comments to directly Github, they would be pushed to some queue. It would notice repository and package name and version, that's probably all what we need.
- On repo metadata update, all the comments from queue related to updated repositories would be pushed to Github and removed from the queue.
Drawbacks:
- When metadata update is pefformed somewhere in the middle of the build (when some packages are published and some aren't), it would split the comment to two (or theoretically more).
- It more or less assumes all repository metadata is updated at once.
v6ak
commented
May 2, 2018
|
My idea:
Drawbacks:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
May 2, 2018
Member
It more or less assumes all repository metadata is updated at once.
Which isn't true... But the queue idea could still work when using cron instead of metadata update event as a trigger.
Which isn't true... But the queue idea could still work when using cron instead of metadata update event as a trigger. |
marmarek
reopened this
May 2, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
v6ak
May 2, 2018
v6ak
commented
May 2, 2018
|
Cron can solve the “comment spam”. It, however, does not neccessarily solve posting comments before the packages are available.
Some more advanced queue could do the trick. For example, all items would have a published flag. Once everything related to some issue is published, the comment is posted.
If queue is implemented as a SQL table, the query could look like `select issue from queue group by issue having min(published)=1`, which would select all issues for posting comments.
|
jpouellet commentedDec 7, 2016
Not a big deal at all, but currently qubes-builder-github generates 8 comments per issue per commit (fedora 23, fedora 24, debian jessie, and debian, * 2 for testing and stable).
This is a quite useful feature, but a bit excessive imo when just scrolling through issues.
If they could be batched in some way, say, if the packages are pushed for all templates at the same time, then just make one comment per repo with a list of the templates, I think that would be nice.