Closed Bug 526495 Opened 16 years ago Closed 15 years ago

Support for special tag in commit message that will prevent builds from being triggered

Categories

(Release Engineering :: General, defect, P5)

x86
All
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: catlee, Assigned: catlee)

References

Details

(Whiteboard: [automation])

Attachments

(1 file)

There are some cases where we don't want to trigger a build on a checkin. If a commit message contains the string "DONTBUILD", for example, we could skip triggering a build. buildbot's fileIsImportant function may be able to do this, or it could be done in the hg poller.
Component: Release Engineering → Release Engineering: Future
Mass move of bugs from Release Engineering:Future -> Release Engineering. See http://coop.deadsquid.com/2010/02/kiss-the-future-goodbye/ for more details.
Component: Release Engineering: Future → Release Engineering
Priority: -- → P3
Priority: P3 → P5
Whiteboard: [automation]
Assignee: nobody → nrthomas
What sort of use cases are left for this now that bug 466931 is resolved ?
eg comment/whitespace fixes were builds are a waste of CPU. Relevant code is at http://hg.mozilla.org/build/buildbotcustom/file/default/misc.py#l94
Needs testing, but I think this should work
Attachment #489036 - Flags: review?(nrthomas)
Comment on attachment 489036 [details] [diff] [review] Don't trigger builds when comments contain DONTBUILD Looks likely to work.
Attachment #489036 - Flags: review?(nrthomas) → review+
Local tests work. This just needs a reconfig on the main scheduler master.
Flags: needs-reconfig?
Credit where is credit is due, over to catlee.
Assignee: nrthomas → catlee
Comment on attachment 489036 [details] [diff] [review] Don't trigger builds when comments contain DONTBUILD changeset: 1112:73d884fd7472
Attachment #489036 - Flags: checked-in+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
(In reply to comment #3) > eg comment/whitespace fixes were builds are a waste of CPU. Relevant code is at > http://hg.mozilla.org/build/buildbotcustom/file/default/misc.py#l94 I'd say most of the time we do comment/whitespace fixes it's *because* we want builds.
(In reply to comment #10) > I'd say most of the time we do comment/whitespace fixes it's *because* we want > builds. So? When that's the case, the pusher clearly doesn't want to make use of this new keyword. :) I think this is more for cases like "Oops, the patch I just pushed had a typo in its comment. Let me fix that in a quick followup [without triggering >100 more CPU-hours of builds/unittests]"
Does this work for multiple changesets the same way CLOSED TREE does? I.e., if there are multiple changesets and one contains the work DONTBUILD, is is supposed to build or not?
(In reply to comment #12) > Does this work for multiple changesets the same way CLOSED TREE does? I.e., if > there are multiple changesets and one contains the work DONTBUILD, is is > supposed to build or not? Any new cset that doesn't have DONTBUILD will trigger a build.
To be a little more specific: if a push has any normal (non-DONTBUILD) changesets, then it will get a build, and that build will be triggered for the latest changeset in the push, even if that latest changeset had DONTBUILD in its commit message. (I just verified the above with this mixed normal/DONTBUILD push: http://hg.mozilla.org/mozilla-central/pushloghtml?changeset=f4fc9593ca7d )
Depends on: 614074
just to save duplicate work: http://build.mozilla.org/builds/running.html agrees with comment 15 -- it shows builds running for Axel's "DONTBUILD" cset, 4273e6a3cd49. That problem probably wants a followup bug, though, right? I've confirmed that DONTBUILD does *sometimes* work (or at least did last Friday), so I think reopening this bug here would be overkill.
These are all instances of bug 613429. Once the builds are finished they'll show up in the right place.
http://tbpl.mozilla.org/?tree=Mobile actually shows completed builds for that sourcestamp.
(In reply to comment #18) > http://tbpl.mozilla.org/?tree=Mobile actually shows completed builds for that > sourcestamp. Ok, that's a real bug :)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to comment #19) > (In reply to comment #18) > > http://tbpl.mozilla.org/?tree=Mobile actually shows completed builds for that > > sourcestamp. > > Ok, that's a real bug :) ...which I'm tempted to leave for now. The mobile stuff is still on older systems, which don't get change comments directly.
Flags: needs-reconfig?
The mobile code is being ported forward to 0.8, at which point it will inherit this behaviour. If it's urgent that we support this now for mobile, let's open another bug.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Builds were run for commit http://hg.mozilla.org/mozilla-central/rev/0474f6b72e6e which specified DONTBUILD. Strange...
(In reply to comment #22) > Builds were run for commit > http://hg.mozilla.org/mozilla-central/rev/0474f6b72e6e which specified > DONTBUILD. Strange... The linux nightly build was manually triggered.
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: