Closed Bug 837936 Opened 11 years ago Closed 11 years ago

Need per-commit builds of B2G desktop build (on all mozilla-central merging trees)

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jgriffin, Assigned: mozilla)

References

Details

(Keywords: sheriffing-P1)

Attachments

(5 files, 1 obsolete file)

In order to start running Gaia Unit tests in automation (bug 833666) we'll need to have b2g desktop builds built per-commit.  AFAICT, we are only generating them as nightlies right now.

The nightly b2g desktop build we're creating includes a bundled gaia, but this is a non-debug version.  The per-commit builds that we will use for Gaia Unit tests need a debug gaia - the output of 'DEBUG=1 make' in the gaia directory.
(In reply to Jonathan Griffin (:jgriffin) from comment #0)
> The per-commit builds that we will use for
> Gaia Unit tests need a debug gaia - the output of 'DEBUG=1 make' in the gaia
> directory.

Make that 'DEBUG=1 NOFTU=1 make'
(In reply to Jonathan Griffin (:jgriffin) from comment #1)
> (In reply to Jonathan Griffin (:jgriffin) from comment #0)
> > The per-commit builds that we will use for
> > Gaia Unit tests need a debug gaia - the output of 'DEBUG=1 make' in the gaia
> > directory.
> 
> Make that 'DEBUG=1 NOFTU=1 make'

More experimentation shows that we'll need to generate the gaia profile from within the mozharness script of the test job, so it doesn't matter how it's generated as part of the build...we could use the exact same job as produces the current nightly.
Yes, please.

Yesterday, a Gaia commit caused these builds to break, but was not caught immediately due to the low checkin volume on the b2g18 branches. Having these builds on inbound/m-c would have enabled us to find this bustage much faster. Moreover, given that we're frequently uplifting patches from m-c to the release branches where these builds are generated per-commit, we should be making sure we aren't breaking them beforehand.
Summary: Need per-commit builds of B2G desktop build → Need per-commit builds of B2G desktop build (on all mozilla-central merging trees)
Keywords: sheriffing-P1
Another data point - the moz.build landing broke these nightlies on m-c, but due to their hidden status, nobody noticed.
(In reply to Jonathan Griffin (:jgriffin) from comment #0)
> In order to start running Gaia Unit tests in automation (bug 833666) we'll
> need to have b2g desktop builds built per-commit.  AFAICT, we are only
> generating them as nightlies right now.

It's really easy to turn on depend desktop builds.

> The nightly b2g desktop build we're creating includes a bundled gaia, but
> this is a non-debug version.  The per-commit builds that we will use for
> Gaia Unit tests need a debug gaia - the output of 'DEBUG=1 make' in the gaia
> directory.

However, this step needs more info.

* I don't think we currently run make in gaia explicitly currently.  When should we do this?  Before make -f client.mk build, or after, but before adding locales, or ...?
* Does it make sense to do a DEBUG=1 make in an opt desktop build? Or do we need to turn on debug desktop builds?
(In reply to Aki Sasaki [:aki] from comment #5)
> * I don't think we currently run make in gaia explicitly currently.  When
> should we do this?  Before make -f client.mk build, or after, but before
> adding locales, or ...?
> * Does it make sense to do a DEBUG=1 make in an opt desktop build? Or do we
> need to turn on debug desktop builds?

It turns out we'll need to build gaia on the test slaves (I already verified we can) in the mozharness script for these tests, so we don't need to worry about DEBUG=1 or gaia's make; we can use the exact same mechanism that is used to generate the B2G nightlies.
(In reply to Ryan VanderMeulen [:RyanVM] from comment #4)
> Another data point - the moz.build landing broke these nightlies on m-c, but
> due to their hidden status, nobody noticed.

Not quite literally true - I've noticed that particular bustage repeatedly, and told several people, some of whom expressed temporary interest, but I didn't feel like filing a bug about it if absolutely nobody was missing them.
Localizer builds are still nightly-only.
This patch has the side effect of enabling b2g desktop builds on Try, which seems desirable.
Passes test-masters.sh.
Assignee: nobody → aki
Attachment #725665 - Flags: review?(bhearsum)
Attachment #725665 - Flags: review?(bhearsum) → review+
FYI, desktop B2G builds are currently broken on Windows (bug 852107).
(In reply to Ryan VanderMeulen [:RyanVM] from comment #9)
> FYI, desktop B2G builds are currently broken on Windows (bug 852107).

I'm going to guess this isn't blocking landing this bug?
(In reply to Aki Sasaki [:aki] from comment #10)
> (In reply to Ryan VanderMeulen [:RyanVM] from comment #9)
> > FYI, desktop B2G builds are currently broken on Windows (bug 852107).
> 
> I'm going to guess this isn't blocking landing this bug?

Correct, we can hide them for now :-)
This is in production now.
I see some desktop Beegees on inbound.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
(In reply to Aki Sasaki [:aki] from comment #14)
> I see some desktop Beegees on inbound.

Awesome, thanks!
* make check appears to have issues in these builds; that would seem to be a separate bug, unless we need those to be turned off.
* try builds aren't pulling gaia, and are perma-red. Reopening for this issue.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
We don't do 'make check' on B2G desktop builds on mozilla-b2g18, so I'm guessing we should turn them off here as well.  But, I'll file a bug for the current failures since people may be interested.
Attached patch fix gaia source on try builds (obsolete) — Splinter Review
TryBuildFactory completely overrides MercurialBuildFactory.addSourceSteps(), which contains the gaia logic.

I'm basically pulling the gaia bits out of addSourceSteps(), into addGaiaSourceSteps().  Then I'm calling that method from both MercurialBuildFactory.addSourceSteps() and TryBuildFactory.addSourceSteps().

The diff chose to represent this in a weird way; hopefully it's clear.

I'm pretty sure this'll fix it; let me know if you need me to test further than test-masters.sh.
Attachment #726377 - Flags: review?(bhearsum)
'make check' problem filed as bug 852320.
Weird, we explicitly globally turn on 'enable_checktests' for these platforms, then turn them off on b2g18 and b2g18_v1_0_1.

Easy enough to turn them off everywhere; patch incoming.
Haven't been able to figure out why these are on for non-b2g18* branches, and they appear to be perma-orange.
Attachment #726380 - Flags: review?(bhearsum)
(In reply to Aki Sasaki [:aki] from comment #21)
> Created attachment 726380 [details] [diff] [review]
> disable b2g desktop checktests everywhere
> 
> Haven't been able to figure out why these are on for non-b2g18* branches,
> and they appear to be perma-orange.

Since bug 852320 has now hopefully just been fixed, do we need to turn these off? Should we try to enable them on b2g18 too?
I imagine we'll want that patch to land in b2g18*, and any other fixes that aren't uplifted, before we turn them on there.

I'm happy to do whatever that results in good use of compute time and useful information.  If bug 852320 is fixed on inbound-only, I think that means I should obsolete this patch and leave things the way they are?
(In reply to Aki Sasaki [:aki] from comment #23)
> If bug 852320 is fixed on inbound-only, I think that means I
> should obsolete this patch and leave things the way they are?

I would imagine so; who from the B2G team can we get to weigh in on whether we want them enabled for all trees (not that it need block this bug)?
That was only one of the two failures showing so far, and it remains to be seen whether there were others below that one which put a stop to everything.
(In reply to Ed Morley [:edmorley UTC+0] from comment #24)
> (In reply to Aki Sasaki [:aki] from comment #23)
> > If bug 852320 is fixed on inbound-only, I think that means I
> > should obsolete this patch and leave things the way they are?
> 
> I would imagine so; who from the B2G team can we get to weigh in on whether
> we want them enabled for all trees (not that it need block this bug)?

Sounds like an issue for Jonas.  Jonas, is there value in running 'make check' on B2G desktop builds?  Currently we're not doing so on mozilla-b2g18, and there is a problem or two with these tests on mozilla-inbound, where they've just been enabled.
Flags: needinfo?(jonas)
Comment on attachment 726380 [details] [diff] [review]
disable b2g desktop checktests everywhere

Review of attachment 726380 [details] [diff] [review]:
-----------------------------------------------------------------

It sounds like you probably don't want to land this, given comment #24, but r+ in case you need to.
Attachment #726380 - Flags: review?(bhearsum) → review+
Comment on attachment 726377 [details] [diff] [review]
fix gaia source on try builds

Review of attachment 726377 [details] [diff] [review]:
-----------------------------------------------------------------

I don't see a gecko l10n root being set for try: https://github.com/mozilla/build-buildbot-configs/blob/master/mozilla/b2g_config.py#L926. I think that's going to make this patch fail at runtime.

::: process/factory.py
@@ +1180,1 @@
>          if self.gaiaRepo:

I think it'd be clearer to move this check to addSourceSteps so that we avoid calling addGaiaSourceSteps unless it's actually going to do something.
Attachment #726377 - Flags: review?(bhearsum) → review-
Depends on: 852543
Hidden on m-c due to bug 852543.
Hidden on try due to too many people asking me why there was a red build that had nothing to do with them on their try push.
Good catch.
Attachment #726780 - Flags: review?(bhearsum)
Attachment #726377 - Attachment is obsolete: true
Attachment #726782 - Flags: review?(bhearsum)
Attachment #726780 - Flags: review?(bhearsum) → review+
Attachment #726782 - Flags: review?(bhearsum) → review+
Comment on attachment 726782 [details] [diff] [review]
fix gaia source on try builds take 2

http://hg.mozilla.org/build/buildbotcustom/rev/d18bddd3a1d1
Attachment #726782 - Flags: checked-in+
Reason for b2g18 make check being disabled:
https://bugzilla.mozilla.org/show_bug.cgi?id=821401#c20
Heh, I guess I've forgotten.

Bug 853024 and history working in these 1.0 projects leads me to believe that test failures are going to be low priority compared to shipping features and fixing blocker bugs.  I'm inclined to disable |make check| everywhere until that changes.
Comment on attachment 726380 [details] [diff] [review]
disable b2g desktop checktests everywhere

I'm making a call here in the absence of any other information.
Disabling |make check|, since a broken build would cause dev action; broken tests will just hide broken builds.

Easy enough to reenable should dev priorities change.

http://hg.mozilla.org/build/buildbot-configs/rev/5a8166d1c4bd
Attachment #726380 - Flags: checked-in+
For RyanVM.  Allows devs to green these up without hiding/wasting build cycles on the other branches.
Attachment #727345 - Flags: review?(bhearsum)
Comment on attachment 727345 [details] [diff] [review]
enable make check for try only

Review of attachment 727345 [details] [diff] [review]:
-----------------------------------------------------------------

How long do these tests take? It still seems wasteful to turn these on if no one is _actively_ looking at them.
I'm intending to at least get the broken tests disabled within the next day or two. If I can't run these builds on Try, I don't know how I'll be able to do so.
Comment on attachment 727345 [details] [diff] [review]
enable make check for try only

Review of attachment 727345 [details] [diff] [review]:
-----------------------------------------------------------------

shrug
Attachment #727345 - Flags: review?(bhearsum) → review+
(In reply to Jonathan Griffin (:jgriffin) from comment #26)
> Sounds like an issue for Jonas.  Jonas, is there value in running 'make
> check' on B2G desktop builds?  Currently we're not doing so on
> mozilla-b2g18, and there is a problem or two with these tests on
> mozilla-inbound, where they've just been enabled.

I don't actually know. Needinfo'ing some people that might.
Flags: needinfo?(jonas)
Flags: needinfo?(fabrice)
Flags: needinfo?(21)
The fact that they're failing when desktop Firefox builds aren't is worrying IMO...
(In reply to Ben Hearsum [:bhearsum] from comment #39)
> Comment on attachment 727345 [details] [diff] [review]
> enable make check for try only
> 
> How long do these tests take? It still seems wasteful to turn these on if no
> one is _actively_ looking at them.

Or we could use |try_by_default: False|
I'm perfectly fine with checktests being off by default as long as there's *some* way for me to push with them enabled.
(In reply to Ryan VanderMeulen [:RyanVM] from comment #46)
> I'm perfectly fine with checktests being off by default as long as there's
> *some* way for me to push with them enabled.

try_by_default is at the job level; make check would have to be on for all try B2g desktop builds (which is fine) - I'm just saying that if bhearsum was concerned about load, we could just make the B2G desktop builds not run by default (ie the try feature sfink recently added).
Merged change from this bug and I reconfigured the masters.
I think we're done here, though we could still use further information about whether we care about |make check| on other branches.

-> RESO FIXED; reopen or file new to enable |make check| elsewhere (or disable on try, or w/e).
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Thanks for all the help, aki! Agreed that any follow-up work can be done in other bugs.
Depends on: 853529
Flags: needinfo?(fabrice)
Product: mozilla.org → Release Engineering
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: