canonical-web-and-design / build.snapcraft.io

The Snapcraft Build site.
GNU Affero General Public License v3.0
21 stars 26 forks source link

Build is triggered twice when a new project is added #1215

Closed om26er closed 5 years ago

om26er commented 5 years ago

Summary

When a new project is enabled for building using build.snapcraft.io, it triggers build on all arches twice. After that all subsequent builds are only triggered when a new update to a project's GitHub repo is pushed.

Process

Current and expected result

Build should be triggered once as that seems like a total waste of CPU cycles ;-)

bartaz commented 5 years ago

Thanks for the report. This was already mentioned before #1205 and fixed in #1210. But it seems that the fix didn't make into live environment yet. I'll make sure it's deployed soon.

Thanks for heads up!

bartaz commented 5 years ago

Should be deployed live now.

om26er commented 5 years ago

Ok, this isn't really fixed. I just added a new project and seems it again triggered build twice build-bug

bartaz commented 5 years ago

@om26er Thanks for the report.

I tried to reproduce it, but for me builds where triggered only once.

Can you tell us on what repo it happens, what was the sequence of you adding it and triggering builds? (did it have snapcraft.yaml when it was added? did registering name triggered builds or something else?). We need some more details to see why builds are triggered twice sometimes. Thanks!