Closed Bug 841836 Opened 11 years ago Closed 11 years ago

Update the b2g emulator for bug 716859

Categories

(Release Engineering :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jrmuizel, Assigned: jgriffin)

References

Details

Attachments

(3 files, 2 obsolete files)

There's a bad bug in the qemu emulator that's causing crashes when trying to land bug 716859.
Component: Release Engineering: Platform Support → Release Engineering: Automation (General)
QA Contact: coop → catlee
Component: Release Engineering: Automation (General) → Release Engineering: Platform Support
QA Contact: catlee → coop
According to Jeff, the change that needs to get picked up is just landing.  Jeff, which commit do we need for this?
Component: Release Engineering: Platform Support → Release Engineering: Automation (General)
QA Contact: coop → catlee
I'm starting a new emulator build now, will post the url in this bug once it's ready (~1 hr)
(In reply to Jonathan Griffin (:jgriffin) from comment #3)
> I'm starting a new emulator build now, will post the url in this bug once
> it's ready (~1 hr)

that won't include the fix, unless your b2g-manifest repo has c0d63f006c810942716dcdf48584c5f1947c2ba9
Blocks: 716859
The manifest being used in the current build contains this line:

<project path="development" name="android-development" remote="b2ggithub" revision="5a439240bc3d4143981b9e690c41ccafe9f67537"/>

so I think it's ok.
Releng, I don't know if you are building the emulator and no one could help me figure that out, so please make sure it's with sources that are pulled down by running against b2g-manifest@c0d63f006c810942716dcdf48584c5f1947c2ba9 if you do build the emulator.
(In reply to Jonathan Griffin (:jgriffin) from comment #6)
> The manifest being used in the current build contains this line:
> 
> <project path="development" name="android-development" remote="b2ggithub"
> revision="5a439240bc3d4143981b9e690c41ccafe9f67537"/>
> 
> so I think it's ok.

yup, it's k
Dumb question: why do we not use a branch name there?  Especially on our github version?  That way we don't have to screw with commit IDs..
(In reply to Vladimir Vukicevic [:vlad] [:vladv] from comment #9)
> Dumb question: why do we not use a branch name there?  Especially on our
> github version?  That way we don't have to screw with commit IDs..

Because it's not a dumb question.  I'm going to change that at the same time as switching to git.mozilla.org, b4da957f393674849b5b9e21411aabc9f52420f6
Updated emulator available:  http://ec2-107-20-108-245.compute-1.amazonaws.com/jenkins/job/b2g-build/1545/artifact/package.zip

aki or armenzg, can you upload to tooltool?
Do I assume that a code landing needs to happen? (Passing it back)


[armenzg@relengweb1.dmz.scl3 ~]$ curl -u b2g -o emulator.zip http://ec2-107-20-108-245.compute-1.amazonaws.com/jenkins/job/b2g-build/1545/artifact/package.zip
Enter host password for user 'b2g':
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  605M  100  605M    0     0  32.6M      0  0:00:18  0:00:18 --:--:-- 37.1M
[armenzg@relengweb1.dmz.scl3 ~]$ export SHA512=`openssl sha512 emulator.zip | cut -d' ' -f2`
[armenzg@relengweb1.dmz.scl3 ~]$ sudo mv ~/emulator.zip /var/www/html/runtime-binaries/tooltool/sha512/${SHA512}
[armenzg@relengweb1.dmz.scl3 ~]$ chmod 644 /var/www/html/runtime-binaries/tooltool/sha512/${SHA512}
[armenzg@relengweb1.dmz.scl3 ~]$ ls -l /var/www/html/runtime-binaries/tooltool/sha512/${SHA512}
-rw-r--r-- 1 armenzg armenzg 634898569 Feb 15 13:02 /var/www/html/runtime-binaries/tooltool/sha512/3b143cbf9093f81b33e36f3c74819ef52e77d4c0304da0d55b700c97cc8f52870c29f143ff9a638a746f4c15acaf476de66de03ec104c45cc30b6bf85fdfaf5a


Armens-MacBook-Air ~ $ curl -I http://runtime-binaries.pvt.build.mozilla.org/tooltool/sha512/3b143cbf9093f81b33e36f3c74819ef52e77d4c0304da0d55b700c97cc8f52870c29f143ff9a638a746f4c15acaf476de66de03ec104c45cc30b6bf85fdfaf5a
HTTP/1.1 200 OK
Date: Fri, 15 Feb 2013 21:03:55 GMT
Server: Apache
Last-Modified: Fri, 15 Feb 2013 21:02:56 GMT
ETag: "25d7c889"
Accept-Ranges: bytes
Content-Length: 634898569
Connection: close
Content-Type: text/plain; charset=UTF-8
Assignee: nobody → jmuizelaar
I'll update the in-tree emulator manifest now.
Assignee: jmuizelaar → jgriffin
Attached patch Update emulator,Splinter Review
Attachment #714557 - Flags: review?(armenzg)
Attachment #714557 - Flags: review?(armenzg) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/727072808d9f

Jeff, do we need this same emulator used in the b2g18 branches?
(In reply to Jonathan Griffin (:jgriffin) from comment #15)
> https://hg.mozilla.org/integration/mozilla-inbound/rev/727072808d9f
> 
> Jeff, do we need this same emulator used in the b2g18 branches?

It wouldn't hurt, but we don't need it right away.
per  irc w/jgriffin:

1) jgriffin has built new emulator
2) armenzg has landed the new emulator in tooltool, so production RelEng systems can use it.
3) jgriffin has landed this change in mozilla-inbound. Once this change lands on mozilla-central, we'll be all done here, and jgriffin will close this bug.
Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/25f6e7b84a8c for the mochitest-1 failures in https://tbpl.mozilla.org/php/getParsedLog.php?id=19793312&tree=Mozilla-Inbound (he said casually, as though that didn't take two people six hours to retrigger down to the cause).
We need someone (overholt, can you recommend a person?) to look at the failures in https://tbpl.mozilla.org/php/getParsedLog.php?id=19793312&tree=Mozilla-Inbound.  We'll either need to fix these or disable these tests in order to update the emulator.
So ignoring the webgl failure, what we seem to have (talking with jeff):

- emulator built from master revision WITHOUT jeff's patch
-- shows permissions failures in tests

- emulator built from master revision WITH jeff's patch
-- shows permissions failures in tests

- emulator built from v1-train manifest WITHOUT jeff's patch
-- does NOT show permissions failures in tests

- emulator built from v1-train manifests WITH jeff's patch
-- (pretty sure) does NOT show permissions failures in tests

We know that the emulator that's being used *right now* on m-c for b2g testing is not the one specified by the emulator.xml manifest in master, because that one still points to one with Jeff's fix.  (That's bad, but irrelevant.)

Can we confirm that the emulator that is being used on m-c is from the manifest immediately previous to Jeff's fix?  The manifest just specifies "master" for a lot of things, so any repo could have been updated since the last time the emulator was built, giving us an environment broken in some way that we haven't detected since we haven't changed it on the tinderboxes.  That seems like the most likely scenario currently (it's not qemu, we checked that one).
ATM we are using the emulator updated in bug 836644, and it doesn't look like android-development is in the zip file (no such entry in b2g-distro/out/target/product/generic/system/sources.xml), while the latest emulator build has this:

<project name="android-development" path="development" remote="b2g" revision="5a439240bc3d4143981b9e690c41ccafe9f67537"/>
Does updating the emulator also update the associated gaia?
It seems like the permissions problems come from a gaia change. i.e. If I run with gaia master locally I can reproduce the permissions problems. If I run against v1-train gaia I can not.
Attached file current sources.xml
Currently used emulator's source.xml file
Depends on: 842634
I've built another emulator, this one using the same Gaia as the previous one.  Aki or armenzg, can you upload to tooltool?

http://ec2-107-20-108-245.compute-1.amazonaws.com/jenkins/job/b2g-build/1564/artifact/package.zip
(In reply to Jonathan Griffin (:jgriffin) from comment #25)
> I've built another emulator, this one using the same Gaia as the previous
> one.  Aki or armenzg, can you upload to tooltool?
> 
> http://ec2-107-20-108-245.compute-1.amazonaws.com/jenkins/job/b2g-build/1564/
> artifact/package.zip

Done:

[jwood@relengweb1.dmz.scl3 ~]$ ls -l /var/www/html/runtime-binaries/tooltool/sha512/${SHA512}
-rw-r--r-- 1 jwood jwood 635042567 Feb 19 12:09 /var/www/html/runtime-binaries/tooltool/sha512/483f049896bf0828b9c0dbe0c387e10cc28cfbd6cdda7ced2d02e9bf690ebe47ef51507ec5cc8bc5e31705b7d4b7ace8b1266c0a283dc93047c8229829f6eda1
Attached patch Update emulator for bug 716859, (obsolete) — Splinter Review
Attachment #715675 - Flags: review?(bugspam.Callek)
Comment on attachment 715675 [details] [diff] [review]
Update emulator for bug 716859,

Suggest a run through try before inbound/etc.
Attachment #715675 - Flags: review?(bugspam.Callek) → review+
I'll let jrmuizel make the call.  Do we have time for a try run?  It won't be all in until late tonight or tomorrow, probably.
Attached patch Update emulator for bug 716859, (obsolete) — Splinter Review
Here's a version that applies cleanly to current inbound.
This emulator build somehow picked up the latest gaia, which wasn't intended.  I'm manually rebuilding another...
Updated emulator:  http://ec2-107-20-108-245.compute-1.amazonaws.com/jenkins/job/b2g-build/1565/artifact/package.zip

Callek, aki, or armenzg, can you upload to tooltool?
Uploaded.

606070399 
3d3899e2537bee5e3f969bb6d0e90fed93345512123e3133b1de793d59a8993d8174d9456cb92d86a880f6813d6049933de924cd522a433ef26c4bfa997777a7
Updated emulator
Attachment #715675 - Attachment is obsolete: true
Attachment #715806 - Flags: review?(aki)
Attachment #715748 - Attachment is obsolete: true
Attachment #715806 - Flags: review?(aki) → review+
Guess what? We're still failing B2G tests! Since this and bug 716859 landed so close together, I can't separate which actually broke them, so I backed both out.
https://hg.mozilla.org/integration/mozilla-inbound/rev/f04919e7789f
The try run above was green, so it may have been something related to the patch for bug 716859.
https://hg.mozilla.org/mozilla-central/rev/fec94a52b86f
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
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: