Closed Bug 764460 Opened 12 years ago Closed 12 years ago

Don't show the "cancel" button on builds on non-Try trees

Categories

(Tree Management Graveyard :: TBPL, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mbrubeck, Assigned: mbrubeck)

References

Details

Attachments

(4 files, 3 obsolete files)

Cancelling non-clobber builds can leave the objdir in a broken state and break later builds.  This hides the cancel build button from the TBPL interface except on Try trees.  It'll still be there in self-serve (bug 664858) but at least it's more hidden.

The first patch just adds some info about Try to Config.js so we have a central location for it.
Attachment #632750 - Flags: review?(bmo)
This is just to improve readability, since we repeat this so often.
Attachment #632752 - Flags: review?(bmo)
Just remembered one of the arguments against doing this that I've made during the various times I've had to take that side - I just pushed a cset to release which needed a clobber, and forgot to clobber, so I killed the builds, set the clobber, retriggered. Admittedly, since releng is essentially wontfixing bug 664858 I'll always be able to kill builds through self-serve, but tbpl is much handier.
We could put in a confirm() prompt instead...
I like the idea of the confirm prompt, given that it will educate people (so they don't just go and hunt down the cancel button in the buildapi directly) & also give the sheriffs flexibility :-)
Ideally we would also show a link to open the correct clobberer page, but it would require more changes to the _showMessage code to allow links in messages, and I'm lazy.  Anyway, my goal is to make this message scary enough that people will click "cancel" and won't need to clobber.
Attachment #632753 - Attachment is obsolete: true
Attachment #632753 - Flags: review?(bmo)
Attachment #633171 - Flags: review?(bmo)
Not needed to fix this bug, but the previous comment gave me the idea.

Also, I'm starting to think that treeInfo.isTry should be renamed to something more specific like treeInfo.autoClobber, since that's what we're actually checking for when we use it.  Thoughts?
Attachment #633177 - Flags: review?(bmo)
Attachment #632750 - Flags: review?(bmo) → review+
Attachment #632752 - Flags: review?(bmo) → review+
Attachment #633177 - Flags: review?(bmo) → review+
Comment on attachment 633171 [details] [diff] [review]
3/3: Ask for confirmation before cancelling builds

I've tested these locally & all works well apart from one thing: I can still cancel pending tests on non-try trees (which can end up cancelling the wrong run).

Could you alter UserInterface_allowCancel such that it returns false for pending non-try please? :-)
Attachment #633171 - Flags: review?(bmo)
Is it just pending tests that can be affected by comment 8, or builds as well? I'm not sure.
(In reply to Ed Morley [:edmorley] from comment #8)
> Could you alter UserInterface_allowCancel such that it returns false for
> pending non-try please? :-)

Done.

(In reply to Ed Morley [:edmorley] from comment #9)
> Is it just pending tests that can be affected by comment 8, or builds as
> well? I'm not sure.

Yes, cancelling a pending test can end up cancelling the wrong job when coalescing happens, as I have repeatedly learned and then forgotten...
Attachment #633171 - Attachment is obsolete: true
Attachment #634972 - Flags: review?(bmo)
Oops, I introduced a minor logic bug.  The selfServeAPIBaseURL check should come first.
Attachment #634972 - Attachment is obsolete: true
Attachment #634972 - Flags: review?(bmo)
Attachment #634973 - Flags: review?(bmo)
Comment on attachment 634973 [details] [diff] [review]
3/3: Ask for confirmation before cancelling builds (v3)

r=me with string changes discussed on irc
Attachment #634973 - Flags: review?(bmo) → review+
Depends on: 767522
Depends on: 812558
Blocks: 867171
Product: Webtools → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: