Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tree Action Required to Support Testing Modules

17 views
Skip to first unread message

Gregory Szorc

unread,
May 24, 2012, 12:17:11 PM5/24/12
to
tl;dr https://hg.mozilla.org/mozilla-central/rev/71075a6e5d4d needs to
be in your tree or buildbot builds will soon fail.

https://bugzilla.mozilla.org/show_bug.cgi?id=748490 created the concept
"testing JS modules." These are JavaScript files that can be
loaded/imported as modules but are only available in testing code, not
in released packages. While I'm mentioning it, I should say that you
should consider using this instead of "head" files to provide common
functionality to your test code because it is an architecturally
superior solution.
https://developer.mozilla.org/en/Developing_Tests#JavaScript_Test-Only_Modules
has more.

To support this new feature, we need to package these test files in the
tests archive produced during packaging. And, we need to configure
buildbot to extract this directory when it runs tests.

Unfortunately, because of the way things work, if the "modules"
directory is missing from the tests package and buildbot tries to
extract this directory, the command will return a non-0 exit code and
the build step will fail. In
https://bugzilla.mozilla.org/show_bug.cgi?id=755339, we added an empty
"modules" directory to the tests archive. And, that trivial changeset
(https://hg.mozilla.org/mozilla-central/rev/71075a6e5d4d) has been
pushed out to central, inbound, aurora, beta, esr, and release.

Sometime in the near future, buildbot will be updated
(https://bugzilla.mozilla.org/show_bug.cgi?id=757460). Once it is, if
the tree being built does not produce test archives with the "modules"
directory, things will fail when extracting the tests archive.

So, to prevent build breakage, you'll need to ensure your tree picks up
71075a6e5d4d from mozilla-central. If you do nothing, your tree may
appear to break randomly (when buildbot updated are deployed).

Yes, everyone realizes this is a silly hoop to jump through. There are
comments in bug 757460 regarding how this could be eliminated in the
future. They are out of scope for this task, however.

If you have any questions, please direct them to bug 757460.

Gregory/gps

Boris Zbarsky

unread,
May 24, 2012, 12:39:05 PM5/24/12
to
On 5/24/12 12:17 PM, Gregory Szorc wrote:
> tl;dr https://hg.mozilla.org/mozilla-central/rev/71075a6e5d4d needs to
> be in your tree or buildbot builds will soon fail.

What does this mean for pushing older trees to try? Will that break?

-Boris

Gregory Szorc

unread,
May 29, 2012, 9:33:36 AM5/29/12
to
I /think/ it means they will fail, yes.


Justin Lebar

unread,
May 29, 2012, 9:40:15 AM5/29/12
to Gregory Szorc, dev-pl...@lists.mozilla.org
>> What does this mean for pushing older trees to try? Will that break?
>
> I /think/ it means they will fail, yes.

That sounds pretty bad to me.

We push old trees to try for a number of reasons, including trying
patches for beta/aurora/esr.
> _______________________________________________
> dev-planning mailing list
> dev-pl...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-planning

Gregory Szorc

unread,
May 29, 2012, 9:49:45 AM5/29/12
to Justin Lebar
On 5/29/12 3:40 PM, Justin Lebar wrote:
>>> What does this mean for pushing older trees to try? Will that break?
>>
>> I /think/ it means they will fail, yes.
>
> That sounds pretty bad to me.
>
> We push old trees to try for a number of reasons, including trying
> patches for beta/aurora/esr.

{m-c,aurora,beta,esr,release} have all been patched. So, as long as
patches are rebased against a current tree (which they arguably should
be if you are pushing to Try), things should be OK. In the rare case you
*need* to push an outdated tree, you can always cherry pick the trivial
patch to make the tests not fail.

Gregory Szorc

unread,
May 31, 2012, 5:00:45 PM5/31/12
to
On 5/24/12 6:17 PM, Gregory Szorc wrote:
> tl;dr https://hg.mozilla.org/mozilla-central/rev/71075a6e5d4d needs to
> be in your tree or buildbot builds will soon fail.

I crashed and burned the trees the first time through. The follow-up
commit that you need in your trees is
https://hg.mozilla.org/mozilla-central/rev/4411b40ef38e.
0 new messages