Closed
Bug 931718
Opened 11 years ago
Closed 11 years ago
Multiple XULRunner SDK breaks mochitest-remote
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gerard-majax, Assigned: gerard-majax)
References
Details
Attachments
(2 files, 1 obsolete file)
Follow up of bug 906316: running ./mach mochitest-remote ends up in:
$ ./mach mochitest-remote layout/base/tests/
From _tests: Kept 9140 existing; Added/updated 0; Removed 0 files and 0 directories.
waiting for system-message-listener-ready...
done
Usage: mach [options]
mach: error: --xre-path '/media/alex/FirefoxOS/Emulator/B2G/gaia/xulrunner-sdk-26/bin' is not a directory
Assignee | ||
Comment 1•11 years ago
|
||
Please find attached a link to the Github pull request that addresses this issue.
Assignee: nobody → lissyx+mozillians
Status: NEW → ASSIGNED
Attachment #823245 -
Flags: review?(halbersa)
Comment 2•11 years ago
|
||
Comment on attachment 823245 [details] [review]
Link to Github https://github.com/mozilla-b2g/B2G/pull/292
Lgtm, thanks!
Attachment #823245 -
Flags: review?(halbersa) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 4•11 years ago
|
||
Question: the B2G repository does not have any branches, and therefore this will now fail for 1.2 and 1.1 and etc.
Therefore I think the patch should first look in xulrunner-sdk-26/xulrunner-sdk if it exists, and then fallback on xulrunner-sdk...
Flags: needinfo?(lissyx+mozillians)
Flags: needinfo?(ahalberstadt)
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #4)
> Question: the B2G repository does not have any branches, and therefore this
> will now fail for 1.2 and 1.1 and etc.
>
> Therefore I think the patch should first look in
> xulrunner-sdk-26/xulrunner-sdk if it exists, and then fallback on
> xulrunner-sdk...
Then we should backout and I'll fix it in a better way!
Flags: needinfo?(lissyx+mozillians)
Comment 6•11 years ago
|
||
As you wish.
I'm reopening this, you can either back out and do a new patch, or do a follow-up patch, I don't really mind (unless someone has a point towards one way or the other).
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 7•11 years ago
|
||
Assignee | ||
Comment 8•11 years ago
|
||
Assignee | ||
Comment 9•11 years ago
|
||
Please find attached a new pull request that should work on both master and older branches of Gaia.
Attachment #823245 -
Attachment is obsolete: true
Attachment #824002 -
Flags: review?(ahalberstadt)
Comment 10•11 years ago
|
||
Reading [1] I wonder if an easy way could be to have a Gaia Makefile target that would just output XULRUNNER_DIRECTORY, so that the python script would just need to run it and get/parse its output ?
And we just have it now ;) "make install-xulrunner-sdk" is actually outputting:
XULrunner directory: xulrunner-sdk-26/xulrunner-sdk
So might be a good idea to get it like this, and fallback on the old function if the target is inexistant.
"make install-xulrunner-sdk" is actually downloading and unzipping xulrunner if it's not here, so if we don't want this, we might just create a new target that would just output this var?
Andrew, any thought?
[1] https://github.com/lissyx/B2G/blob/edd999da421c44d8cde92978b744b58dfc586d3a/tools/mach_b2g_bootstrap.py#L99-L100
Comment 11•11 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #10)
> Reading [1] I wonder if an easy way could be to have a Gaia Makefile target
> that would just output XULRUNNER_DIRECTORY, so that the python script would
> just need to run it and get/parse its output ?
>
> And we just have it now ;) "make install-xulrunner-sdk" is actually
> outputting:
>
> XULrunner directory: xulrunner-sdk-26/xulrunner-sdk
>
> So might be a good idea to get it like this, and fallback on the old
> function if the target is inexistant.
>
> "make install-xulrunner-sdk" is actually downloading and unzipping xulrunner
> if it's not here, so if we don't want this, we might just create a new
> target that would just output this var?
>
> Andrew, any thought?
That would be the best way forward I think. Does make install-xulrunner-sdk do the download/unzip even if the sdk directory already exists? If so then yes, we'd need a way to get the output without doing the download (a flag to the target might be enough).
Flags: needinfo?(ahalberstadt)
Comment 12•11 years ago
|
||
Andrew: nope, it's doing nothing if it exists already and is the correct version.
Assignee | ||
Comment 13•11 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #12)
> Andrew: nope, it's doing nothing if it exists already and is the correct
> version.
Then I just have to issue a make subprocess and if it fails, fallback to the old code. Are you both okay with this ?
Comment 14•11 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #13)
> (In reply to Julien Wajsberg [:julienw] from comment #12)
> > Andrew: nope, it's doing nothing if it exists already and is the correct
> > version.
>
> Then I just have to issue a make subprocess and if it fails, fallback to the
> old code. Are you both okay with this ?
I wouldn't mind just letting install-xulrunner-sdk do it's thing in the event that it doesn't exist or needs an update, and removing the old method completely. That's assuming there aren't other ways it can fail.
Comment 15•11 years ago
|
||
(In reply to Andrew Halberstadt [:ahal] from comment #14)
> I wouldn't mind just letting install-xulrunner-sdk do it's thing in the
> event that it doesn't exist or needs an update, and removing the old method
> completely. That's assuming there aren't other ways it can fail.
I should clarify I mean ways it can fail where the old method wouldn't.
Comment 16•11 years ago
|
||
Well, it can fail because while "install-xulrunner-sdk" exists for a long time, it doesn't output the location since bug 906316 landed :)
So to support the previous situation (expecially 1.2, 1.1) we unfortunately need to keep the old solution too.
Assignee | ||
Comment 17•11 years ago
|
||
I personnally don't really like the fact that we might end up running some make step to download the SDK when we just want to evaluate a value ; I'd prefer adding a print-xulrunner-sdk target that just prints the value, and make use of it.
Comment 18•11 years ago
|
||
Good for me :) just do it ;)
Assignee | ||
Comment 19•11 years ago
|
||
Please find attached a link to the github pull request that introduces the print-xulrunner-sdk target. Please keep in mind that this patch must land before the other one.
Attachment #824528 -
Flags: review?(jlal)
Comment 20•11 years ago
|
||
Comment on attachment 824528 [details] [review]
Adding print-xulrunner-sdk make target in Gaia
This looks fine (and works for me) but I really do hate our ever expanding Makefile
Attachment #824528 -
Flags: review?(jlal) → review+
Comment 21•11 years ago
|
||
Assignee | ||
Comment 22•11 years ago
|
||
Thanks !
Comment 23•11 years ago
|
||
Comment on attachment 824002 [details] [review]
Link to Github https://github.com/mozilla-b2g/B2G/pull/294
This looks good to me, and works locally. For now I'm fine leaving the old method for compatibility with older versions of gaia, but might be nice to leave a TODO comment to delete it once it's no longer necessary.
Attachment #824002 -
Flags: review?(ahalberstadt) → review+
Assignee | ||
Comment 24•11 years ago
|
||
(In reply to Andrew Halberstadt [:ahal] from comment #23)
> Comment on attachment 824002 [details] [review]
> Link to Github https://github.com/mozilla-b2g/B2G/pull/294
>
> This looks good to me, and works locally. For now I'm fine leaving the old
> method for compatibility with older versions of gaia, but might be nice to
> leave a TODO comment to delete it once it's no longer necessary.
Thanks. Julien noticed some enhancement we can apply to the make call, I've updated it.
Assignee | ||
Comment 25•11 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•