[IMPORTANT] Keeping the build green

Hello everyone,

For a while, device builds have been broken badly on both pine and m-c. Pine builds were fixed a few days ago, but m-c is still broken as of now. This means anyone looking at the treeherder status cannot check if B2G is broken or not.

This is about to change, but we will need help from anyone interested in B2G to keep it green.

You can track the current status on pine tree from the URL https://treeherder.mozilla.org/#/jobs?repo=pine&filter-tier=1&filter-tier=2&filter-tier=3&filter-searchStr=device when ā€œBā€ is green it means itā€™s okay. When itā€™s orange, itā€™s broken and we need to fix it ASAP.

Now, on mozilla-central, this is going to be another story. There are multiple issues: build configuration have not been updated for a while and it still references a lot of broken stuff, including: use of stlport, missing build flags, old repos mirrors. The second main issue is that as of now, nobody can push to try with device builds.

What does it means? People can test patches using the TryServer as documented on https://wiki.mozilla.org/Build:TryServer, but the way Docker images for B2G device builds are currently done, we cannot make this possible. It makes merging tedious because one has to build locally to make sure device build works. In https://bugzilla.mozilla.org/show_bug.cgi?id=1282226 which is about to land, this is going to be fixed and this try syntax will work: ā€œ-p aries-eng,nexus-5l-engā€. This will issue a device build for Z3c eng (Kitkat base) and Nexus 5 eng (Lollipop base).

So, now, what can you do to help keeping the builds green? Anybody can do this:

Anything that does not contains a green ā€œBā€ means there is a build failure. Clicking on the ā€œBā€ symbol will give you more details.

It is very important to catch build failure as soon as possible, hence, monitoring the integration branch is the most efficient way: we can issue a fix (often itā€™s very simple, missing includes or similar stuff) in time to land in mozilla-central.

What to do once you have spotted a build failure?

  • File a bug that blocks https://bugzilla.mozilla.org/show_bug.cgi?id=1245091 so that anyone can be aware there is an issue
  • Copy/paste the first line of the error in the bug title
  • If possible, try to find (quickly, donā€™t waste too much time) which change is probably related to this. You can do this by looking at the history of the files impacted in the error and see what changed recently. If you can find a suspect, collect the bug number and also add this in the ā€œblocksā€ field of the bug you filed
  • If you have time/knowledge, you can try to make a patch !

It is very important that more people gets involved in this process:

  1. Itā€™s critical that we keep builds green to be able to continue to hack
  2. Those changes are often simple breakages
  3. Because of (2), it makes those patches often simple to do and thus good first bug
  4. Itā€™s a simple way to contribute efficiently to the codebase and get to learn it

Thanks for anyoneā€™s hep!

1 Like

Hi !

Iā€™ve just read your post and I have few times, so I try what you said. Itā€™s quite clear but I just want to be sure to understand well (and it will help other people to try to follow the building process).

1- Iā€™ve open the device builds on integration branch (https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&filter-tier=1&filter-tier=2&filter-tier=3&filter-searchStr=b2g%20device)
2- Iā€™ve click on a ā€œBā€ of the ā€œFri Jul 1, 11:19:10ā€ B2G Device Image debug ā€œAries[tier 3]ā€.
This is what I have:

[taskcluster:error] Failure to properly start execution environment.
Ā· 1240477 > [taskcluster:error] Failure to properly start execution environment. HTTP code is 500 which indicates error: server error - Cannot start container : [8] System error: read parent: connection reset by peer
[taskcluster:error] HTTP code is 500 which indicates error: server error - Container command not found or does not exist.

What is the first line of the error? ā€œ1240477ā€¦ā€ or ā€œ[taskcluster:error] Failure to properly start execution environment.ā€. In the second case, there are two errors

Thanks in advance for your reply.

Ok, so as I said, patches were on their way to land. One of them was incomplete after I fixed some suggestion from reviewer, hence why. When https://bugzilla.mozilla.org/show_bug.cgi?id=1283452 reaches central/inbound it should be all good.

Also, you should click on the log link to analyze the real issue: treeherder might be unable to catch the proper lines of log. When you click on ā€œBā€, in the panel, you have two icons on the top of that panel, one with ā€œLOGā€. You need to click the one just next to the ā€œLOGā€ icon.

If I understand well, before reporting the problems, we need to wait that the 1283452 bug is land?

Here is an image to illustrate the icons you mention:

Here is the result:

[taskcluster 2016-07-01 09:31:50.929Z] Task ID: ZcF8yU_IRAmAXxhCImil1A
[taskcluster 2016-07-01 09:31:50.929Z] Worker ID: i-01202c729677dde2c
[taskcluster 2016-07-01 09:31:50.929Z] Worker Group: us-east-1c
[taskcluster 2016-07-01 09:31:50.929Z] Worker Type: flame-kk
[taskcluster 2016-07-01 09:31:50.929Z] Public IP: 54.173.240.64
[taskcluster 2016-07-01 09:31:50.929Z] using cache ā€œlevel-3-mozilla-inbound-tc-vcsā€ -> /home/worker/.tc-vcs
[taskcluster 2016-07-01 09:31:50.929Z] using cache ā€œlevel-3-mozilla-inbound-build-aries-debugā€ -> /home/worker/workspace
[taskcluster 2016-07-01 09:31:50.929Z] using cache ā€œlevel-3-mozilla-inbound-build-aries-debug-objdir-geckoā€ -> /home/worker/objdir-gecko

[taskcluster 2016-07-01 09:31:51.602Z] Image ā€˜public/image.tarā€™ from task ā€˜SBInZyb0QK6Cmb0PEkIm1Aā€™ loaded. Using image ID sha256:d6cd1f74d72c5f3fe7f57ea57aa30a17047f4efadcccec1eefb543db958d6dce.
[taskcluster 2016-07-01 09:31:51.616Z] === Task Starting ===
exec: ā€œcheckout-gecko workspace && cd ./workspace/gecko/taskcluster/scripts/phone-builder && buildbot_step ā€˜Buildā€™ ./build-phone.sh $HOME/workspace\nā€: stat checkout-gecko workspace && cd ./workspace/gecko/taskcluster/scripts/phone-builder && buildbot_step ā€˜Buildā€™ ./build-phone.sh $HOME/workspace
: no such file or directory

[taskcluster:error] Failure to properly start execution environment.

[taskcluster:error] HTTP code is 500 which indicates error: server error - Container command not found or does not exist.

[taskcluster 2016-07-01 09:31:52.588Z] === Task Finished ===
[taskcluster 2016-07-01 09:31:52.687Z] Artifact ā€œprivate/buildā€ not found at ā€œ/home/worker/artifacts/ā€
[taskcluster 2016-07-01 09:31:52.758Z] Artifact ā€œpublic/buildā€ not found at ā€œ/home/worker/artifacts-public/ā€
[taskcluster 2016-07-01 09:31:53.237Z] Unsuccessful task run with exit code: -1 completed in 2.308 seconds

In the bug report (I will wait the 1283452 before reporting anything), I should copy/paste:

[taskcluster 2016-07-01 09:31:50.929Z] Task ID: ZcF8yU_IRAmAXxhCImil1A

Is that right?

[EDIT] Bold for the part to copy.

Yeah, this is exactly the bug you need to wait. But what you should copy/paste for reporting this one would be that:

For instance, this would be a good example: https://treeherder.mozilla.org/#/jobs?repo=try&revision=1c4020fc72a5&filter-tier=1&filter-tier=2&filter-tier=3&selectedJob=23218092

Except I donā€™t know why it fails this way :slight_smile:

And today this is paying, we have B2G Device Aries build green on m-c: https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&filter-tier=1&filter-tier=2&filter-tier=3&selectedJob=4222978

Fixes are on their way and we should also have Nexus 5 L eng soon. Then iā€™m cleaning up a little bit the debug variants.

2 Likes

\o/

1 Like

And this reached inbound as well: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&filter-tier=1&filter-tier=2&filter-tier=3&filter-searchStr=b2g

Now itā€™s really time that all people who are interested to contribute start doing it actively: monitoring and fixing build issues will be problem #1.

Itā€™s a shame, the build is already brokenā€¦ :cry:

@lissyx, in your first post you mention 3 links:
[1] Mulet builds on integration branch (mozilla-inbound)
Mulet builds on integration branch (mozilla-inbound)
[2] Device builds on integration branch
Device builds on integration branch
[3] Device builds on mozilla-central
Device builds on mozilla-central

For the [2] and [3], there is no ā€œBā€ (nor green nor orange). Is that normal?

The [1] has a orange B, so the built is brokenā€¦ ā€œBuild ./build-mulet-linux.sh /home/worker/workspace : busted.ā€

Iā€™ve open a bug dans link it to the bug1245091:
Bug 1285210 - Mulet builds on integration branch (mozilla-inbound)
Please, if itā€™s not what you are waiting, sait it and the next time I will try to do the correct thing :wink:

That was a good catch, but your logs were not including the real issue, and no link to a failure job, so itā€™s a bit harder to find from your bug :). Sadly, I already filed the bug 1285157 :slight_smile:

But thatā€™s a good catch anyway, this is what is needed !

Hi!
I know you are working on this bug to make build working.
Just to be sure, we need to ā€œwaitā€ the bug solved before checking regularly that the green is not broke?

What does the differents color means?

  • green: OK
  • orange: broke
  • brown busted (what is it???)

When I look to the the bug 1285157, I really donā€™t understand what you are doing, so I really donā€™t know if you are next to solve the bug or not. Where can I found informations to help me understand how to solve the bug?

https://bugzilla.mozilla.org/show_bug.cgi?id=1285157

I have a patch on that night, it builds and boots. All we need is some
review and then yes we can hope the build is green.

So waiting :-/

<
https://ci3.googleusercontent.com/proxy/07Ul_ILysIPO2Wf2zMgTu2ok0YPwQHyAwtfb-97YDV4wyoMrs8ul0caSkP8YMDetGITsOnsjZXJv1NSkNvyJKsrGZ9t5ONB-K3ldG-DWXEiprh1QHkD4FdgdAQPZp3N_2gLHN3KRJwVUosg=s0-d-e1-ft#https://discourse.mozilla-community.org/letter_avatar_proxy/v2/letter/p/a5b964/45.png>
pl6025
July 8

Hi!
I know you are working on this bug to make build working.
Just to be sure, we need to ā€œwaitā€ the bug solved before checking
regularly that the green is not broke?

What does the differents color means?

  • green: OK
  • orange: broke
  • brown busted (what is it???)

When I look to the the bug 1285157, I really donā€™t understand what you
are doing, so I really donā€™t know if you are next to solve the bug or not.
Where can I found informations to help me understand how to solve the bug?

bugzilla.mozilla.org
<
https://ci3.googleusercontent.com/proxy/WUN2wVWFfmFfOmC-lezieXXHxIRo-04LOC03zj0KhaSnblQcn5s-XdD3JiKCVIJQMGDGqu3Fzy7vDQ44xr6CLU7QTArfQQMsFHPQpLXLRA10pON4SOVtgg=s0-d-e1-ft#https://bugzilla.mozilla.org/extensions/OpenGraph/web/bugzilla.png

1285157 ā€“ dom/ipc/ContentChild.cpp:631:24: error: no matching function
for call to ā€˜mozilla::dom::ContentChild::SetTransport(IPC::Channel*&)ā€™


Visit Topic or reply to this email to respond.


In Reply To

<
https://ci5.googleusercontent.com/proxy/awzTLeZSQ4NoIfBlGZA3lo26kZQVVC_BjmANCNdQ4J3ntLbC3OZJIeAQFM53I2NXMRdNwx5dc_wrzQauIPOWKNBxCWTk2WOuGwsP5-7iO_OBAvvokOOWFV5k6nWiczuxCcFLpgrVlO3SS2U=s0-d-e1-ft#https://discourse.mozilla-community.org/letter_avatar_proxy/v2/letter/l/ecb155/45.png>
lissyx
July 7
That was a good catch, but your logs were not including the real issue,
and no link to a failure job, so itā€™s a bit harder to find from your bug
:). Sadly, I already filed the bug 1285157 :slight_smile: But thatā€™s a good
catch anyway, this is what is needed !

Well it looks like something else landed yesterday evening and broke the
build even worse with something breaking client.mk :frowning:

I have a patch on that night, it builds and boots. All we need is some
review and then yes we can hope the build is green.

So waiting :-/

<
https://ci3.googleusercontent.com/proxy/07Ul_ILysIPO2Wf2zMgTu2ok0YPwQHyAwtfb-97YDV4wyoMrs8ul0caSkP8YMDetGITsOnsjZXJv1NSkNvyJKsrGZ9t5ONB-K3ldG-DWXEiprh1QHkD4FdgdAQPZp3N_2gLHN3KRJwVUosg=s0-d-e1-ft#https://discourse.mozilla-community.org/letter_avatar_proxy/v2/letter/p/a5b964/45.png>
pl6025

July 8

Hi!
I know you are working on this bug to make build working.
Just to be sure, we need to ā€œwaitā€ the bug solved before checking
regularly that the green is not broke?

What does the differents color means?

  • green: OK
  • orange: broke
  • brown busted (what is it???)

When I look to the the bug 1285157, I really donā€™t understand what you
are doing, so I really donā€™t know if you are next to solve the bug or not.
Where can I found informations to help me understand how to solve the bug?

bugzilla.mozilla.org
<
https://ci3.googleusercontent.com/proxy/WUN2wVWFfmFfOmC-lezieXXHxIRo-04LOC03zj0KhaSnblQcn5s-XdD3JiKCVIJQMGDGqu3Fzy7vDQ44xr6CLU7QTArfQQMsFHPQpLXLRA10pON4SOVtgg=s0-d-e1-ft#https://bugzilla.mozilla.org/extensions/OpenGraph/web/bugzilla.png

1285157 ā€“ dom/ipc/ContentChild.cpp:631:24: error: no matching function
for call to ā€˜mozilla::dom::ContentChild::SetTransport(IPC::Channel*&)ā€™


Visit Topic or reply to this email to respond.


In Reply To

<
https://ci5.googleusercontent.com/proxy/awzTLeZSQ4NoIfBlGZA3lo26kZQVVC_BjmANCNdQ4J3ntLbC3OZJIeAQFM53I2NXMRdNwx5dc_wrzQauIPOWKNBxCWTk2WOuGwsP5-7iO_OBAvvokOOWFV5k6nWiczuxCcFLpgrVlO3SS2U=s0-d-e1-ft#https://discourse.mozilla-community.org/letter_avatar_proxy/v2/letter/l/ecb155/45.png>
lissyx

July 7
That was a good catch, but your logs were not including the real issue,
and no link to a failure job, so itā€™s a bit harder to find from your bug
:). Sadly, I already filed the bug 1285157 :slight_smile: But thatā€™s a good
catch anyway, this is what is needed !

For the past days, device builds have been broken because of TaskCluster cache level issues, and I cannot do anything about that: https://bugzilla.mozilla.org/show_bug.cgi?id=1285732

The build are green for the link [1] (see post 11) \o/
But for the two others, the is no ā€œBā€. Is that normal? What do we follow to know if building are running normaly?

Thanks for your hard work on build process.

ā€œBā€ symbol might be missing when: you have filtering NOT including tier 3 ; or the device build have not yet been triggered and/or treeherder is still loading data.

So, if I understand well, for the moment, for the links [2] and [3] (see post 10) the device build have not been triggered. Because, the Tier 3 is include and Threeherder seems to have load all its data.

When I click on the link [2] this is what I have:


Has you can see, Tier 3 is activate.

If this link is not good to follow, can you give a good one? Thanks.

Please give links, itā€™s hard to follow.

I donā€™t see anywhere where it is missing any build.