Closed Bug 482968 Opened 15 years ago Closed 15 years ago

l10n repacks shouldn't trigger on en-US check-ins

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Pike, Assigned: Pike)

Details

(Whiteboard: [l10n])

Attachments

(1 file)

en-US check-ins don't make it into builds yet to repack, so there's no need to really run repacks on en-US landings.

This is a slight shift in plan, and we'll keep the logic to run on en-US check-ins in the scheduler, as we continue to run compare-locales on a cross-platform builder. That one is going to run on the l10n server for a while, though.
Whiteboard: [l10n]
Not sure if I like this patch.

It binds us to have only enUS-triggered builds on the scheduler or not. What we really want is some matrix like

      | linux | win | mac | compare-locales
------+-------+-----+-----+----------------
en-US |       |     |     |     X
l10n  |  X    |  X  |  X  |     X
linux |  X    |     |     |
win   |       |  X  |     |
mac   |       |     |  X  |

where the column is what triggered the build, en-US check-in, l10n check-in, linux, win, mac nightly, and the row is the triggered build. linux, win, mac repacks and compare-locales database reporting pseudo build.

If we kept the the compare-locales builder on a separate master, this patch would work, as the builder-triggered builds will be covered by trigger steps, which can be made platform-specific rather easily.

Going for a review request on Armen with this patch, tested locally with both enUS on and off.
Attachment #367069 - Flags: review?(armenzg)
Attachment #367069 - Attachment is patch: true
Attachment #367069 - Attachment mime type: application/octet-stream → text/plain
Comment on attachment 367069 [details] [diff] [review]
one possible buildbotcustom way of doing it

The patch looks good and having the parameter will allow us to have it off until we decide what is the way to go.

Let's see what coop and joduinn think of this way to go; Having a separate master does not sound to me as the long run solution.
Attachment #367069 - Flags: review?(armenzg) → review+
Coop, joduinn, what's your take?
Status: NEW → ASSIGNED
Whiteboard: [l10n] → [l10n][needs-stage]
Comment on attachment 367069 [details] [diff] [review]
one possible buildbotcustom way of doing it

This is running on staging-master right now.
(In reply to comment #3)
> Coop, joduinn, what's your take?

Is there any reason why we'd need an entirely separate master vs. a new factory to handle the compare-locales-only logic? Maybe I'm not following something here.
With this patch, we're handling buildOnEnUS per l10nbuilds.ini, which is a tad coarse if we wanted to run compare-locales-only logic on the same master.

Maybe we can do this piecewise, and use buildOnEnUS as default, and add an option to overwrite from l10nbuilds.ini later? Or I could try to come up with a revised patch.

It's not totally bad, though, as the compare-locales-only build needs a rather special slave anyway to get the rich reporting out.
Comment on attachment 367069 [details] [diff] [review]
one possible buildbotcustom way of doing it

No issues on staging, this one can land when ready.
http://hg.mozilla.org/build/buildbotcustom/rev/30740a1c1041, marking FIXED.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [l10n][needs-stage] → [l10n]
It might be a silly question. If we want to trigger nothing when an en-US entity changes, shouldn't we pass *false* for buildOnEnUs to avoid adding the EnUsDispatcher?
26 +        if buildOnEnUS:
27 +          log2.msg('adding EnDispatcher for %s on %s for %s' %
28 +                   (section, branch, ' '.join(endirs)))
29 +          scheduler.addDispatcher(EnDispatcher(endirs, branch, section))

Is there a following patch to change the master configuration to pass that value?

(I might be completely off with this)
Either that or make the default value of the argument False.

Thanks for catching that.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to comment #10)
> Either that or make the default value of the argument False.

I think the sensible default is False (off) so that we need to explicitly enable it if we want it, given previous discussions.
Agreed. Wanna just change that with rs=me?
(In reply to comment #12)
> Agreed. Wanna just change that with rs=me?

Done.

changeset:   231:cdda843619ea
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
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: