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

Consider coalescing builder-github comments #2494

Open
jpouellet opened this Issue Dec 7, 2016 · 7 comments

Comments

4 participants
@jpouellet
Contributor

jpouellet commented Dec 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.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

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.

Member

marmarek commented Dec 7, 2016

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.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

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?

Member

andrewdavidwong commented Dec 8, 2016

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?

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Dec 8, 2016

Member
Member

marmarek commented Dec 8, 2016

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Dec 8, 2016

Member

In that case, it sounds like your muting solution will work fine.

Member

andrewdavidwong commented Dec 8, 2016

In that case, it sounds like your muting solution will work fine.

marmarek added a commit to marmarek/qubes-builder-github that referenced this issue Dec 12, 2017

Don't fail if no comment is added to related issues
Allow not creating comments for specific target distribution. This will
allow reducing noice in github issues.

QubesOS/qubes-issues#2494

@andrewdavidwong andrewdavidwong added this to the Documentation/website milestone Dec 16, 2017

marmarek added a commit to marmarek/qubes-builder-github that referenced this issue Mar 28, 2018

Suppress comments about buster builds
Keep one comment per distribution - for Debian let it be stretch.

QubesOS/qubes-issues#2494
@v6ak

This comment has been minimized.

Show comment
Hide comment
@v6ak

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:

  • 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.
@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

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.

Member

marmarek commented May 2, 2018

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.

@marmarek marmarek reopened this May 2, 2018

@v6ak

This comment has been minimized.

Show comment
Hide comment
@v6ak

v6ak May 2, 2018

v6ak commented May 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment