Closed Bug 846953 Opened 12 years ago Closed 12 years ago

Roll out prevent_broken_csets hook on all trees except try

Categories

(Developer Services :: General, task)

task
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: justin.lebar+bug, Assigned: bkero)

References

Details

Attachments

(1 file, 1 obsolete file)

In bug 843606 we rolled out this hg hook on m-a. It doesn't seem to have caused any mass-breakages. So maybe it's time to get it elsewhere.
Rolling this out to everything is very easy. Rolling it out to every repository except try will be a bit more difficult. It would involve modifying nearly several hundred repositories and making new entries manually for each new repository. I think the easiest way of accomplishing this is to modify the hook to just return true if it detects that the name of the repository is try. After this we can add it to the globally run hooks. Does this sound good to you?
I'd also argue that we *don't* want this hook on user repo's as well as try, fwiw.
I'm sure those can be excluded in a similar manner. I've yet to see what the environment is for writing these, but checking path should be all that's required (all user repos live in /repo/hg/mozilla/users/)
(In reply to Justin Wood (:Callek) from comment #2) > I'd also argue that we *don't* want this hook on user repo's as well as try, > fwiw. That's probably sane... I can try to figure out how to check the path, but can you give me concrete examples of the paths I should be expecting for try, user repos, and other repos? I have no way to test this locally, so I don't want to get it wrong.
Some example concrete paths: /repo/hg/mozilla/try /repo/hg/mozilla/users/bkero_mozilla.com/foo /repo/hg/mozilla/releases/gaia-l10n/gd /repo/hg_ecma/mozilla/es4 /repo/hg_pvt/omgseekrits /repo/hg_pvt/users/aravind_mozilla.com
So to be clear, we want to turn this on for repos which start with "/repo/hg/mozilla" but which aren't equal to "/repo/hg/mozilla/try"?
Correct, however additionally the /repo/hg_pvt/mozilla and /repo/hg_ecma/mozilla repositories should run the script. So basically: if (path = /repo/hg/mozilla/try OR path ~ ^/repo/hg/mozilla/users): exit 0 else run_your_check()
Attached patch Patch v1Splinter Review
Attachment #720301 - Flags: review?
Attachment #720300 - Attachment is obsolete: true
Comment on attachment 720301 [details] [diff] [review] Patch v1 I verified that we don't seem to need a trailing / on the repo paths.
Attachment #720301 - Flags: review? → review?(ted)
Attachment #720301 - Flags: review?(ted) → review+
Assignee: server-ops-devservices → bkero
This is pretty urgent - the longer we leave this unfixed the greater chance of more broken (and irreversible) commits being landed.
Severity: normal → major
(In reply to Justin Wood (:Callek) from comment #2) > I'd also argue that we *don't* want this hook on user repo's as well as try, > fwiw. Why out of curiosity? I think we're at risk of having new repos created in the future without this hook, if we do anything but apply it everywhere (as proven by bug 853761). Please can we just roll this out everywhere?
Thanks for noticing that this hasn't been rolled out, Ed. I'd forgotten about this bug. I wrote code in the hook to limit it to everything except user repos and try. I think the plan was to enable the hook for all repos, and rely on the hook to exclude those repos. Does that sound OK to you?
(The logic for not rolling it out on user repos is that if a user repos is corrupted locally, it's more important to reflect the user's local history than it is to force the user to clean up their history.)
(In reply to Justin Lebar [:jlebar] from comment #14) > I wrote code in the hook to limit it to everything except user repos and > try. I think the plan was to enable the hook for all repos, and rely on the > hook to exclude those repos. Does that sound OK to you? sgtm (as long as we can add it to the global hgrc I'm all for it :-))
Ping on this bug? This has been sitting for almost a month now.
Ben, Can we get this rolled out asap?
Flags: needinfo?(bkero)
Weekly ping on this bug.
By my count there have been ten busted changesets landed since we asked for this hook to be turned on, on Feb 25. > 124071 f27dbd9ba370 2013-03-06 16:41 +0000 jcoppeard > Bug 848395 - GC: Move Rooted to JS namespace - Move js::Rooted to JS namespace r=terrence > > 124375 7b3da1dae19a 2013-02-21 17:31 -0800 terrence > Bug 843907 - Move to manual barriering for MapObject and SetObject's key; r=billm > > 124993 ea6b05238e68 2013-03-15 15:35 -0700 terrence > Bug 851107 - Skip invalid poisoning of inline chars in RegExpExecute; r=sfink > > 126468 3af927a8260c 2013-03-19 17:59 -0700 terrence > Bug 852802 - Add incremental needsBarrier to the runtime and check it first; r=billm > > 126876 36e1ab8c7de0 2013-03-25 11:48 -0700 terrence > Bug 854029 - Allow use of non-gcthing values with RelocatableValue; r=billm > > 123742 444272873216 2013-03-01 21:49 -0800 jwalden > Bug 847521 - Allow CheckedInt<signed char> in addition to char/unsigned char. char != signed char (but is g > > 126872 be2f7045bf15 2013-04-01 11:33 -0700 mozilladev > Bug 837950 - Enhance jstests framework to support Test402 tests. r=terrence > > 123564 1cd1a9fdf8fb 2013-03-02 14:23 +0000 neil > Bug 738952 Make it possible for a stream converter to propagate the actual MIME type to the document r=bz > > 123504 008743f80cb1 2013-02-15 08:32 +0100 dirkjan > Bug 638219 - Move command construction into Test class method; r=terrence > > 123638 260236599b04 2013-02-28 00:50 +1300 robert > Bug 829557. Part 1: When calling into plugin code, identify situations where it is safe (or unsafe) to reent I hope you'll forgive me for starting to run out of patience here.
I'm going to review the hook now and push it out.
Flags: needinfo?(bkero)
Looks good, pushing this out globally
This should be enabled now. Sorry about the delay. If you experience any issues feel free to ping me on IRC.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Component: Server Operations: Developer Services → General
Product: mozilla.org → Developer Services
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: