Closed
Bug 985546
Opened 11 years ago
Closed 11 years ago
B2G desktop builds with git tryserver syntax in gaia.json
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jgriffin, Assigned: jgriffin)
Details
Attachments
(1 file)
1.81 KB,
patch
|
mozilla
:
review+
jgriffin
:
checked-in+
|
Details | Diff | Splinter Review |
When someone uses the git tryserver syntax in gaia.json and specified a revision (instead of a branch), the B2G desktop build jobs fail because they pick up the git commit and try to use it to clone from gaia-central.
The build jobs should just ignore the git tryserver syntax, since the gaia test jobs clone their own gaia.
Example:
https://hg.mozilla.org/try/rev/6deb2175a4a9
leads to this in the log:
{
"git": {
"remote": "https://github.com/kevingrandon/gaia.git",
"branch": "bug_967516_enable_device_debug_default",
"revision": "c1d77100e693a4df0215a6b05940fd7d692eb275"
},
"revision": "ca4f67df676ef3ab0072b9e3fb97baee4d4bde36",
"repo_path": "/integration/gaia-central"
}
program finished with exit code 0
elapsedTime=0.002286
gaiaRepoPath: '/integration/gaia-central'
gaiaRevision: 'c1d77100e693a4df0215a6b05940fd7d692eb275'
It should be using a revision of ca4f67df676ef3ab0072b9e3fb97baee4d4bde36, rather than c1d77100e693a4df0215a6b05940fd7d692eb275.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
This comes from: http://hg.mozilla.org/build/buildbotcustom/file/8de255d9e176/process/factory.py#l1203
We're doing a regex on the JSON file instead of parsing the JSON; apparently this caused a crash in the past, which seems odd...maybe we can try doing it the right way again. Unfortunately, I have no way to test changes to this code.
Alternately, we could attempt to make the regex smarter, or change the git try attribute name for 'revision'. Aki, any opinions?
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(aki)
Comment 3•11 years ago
|
||
I would like to do this the right way (json parsing), but practically I think buildbot will make this harder/more time consuming than it should be. Without knowing details about the git try stuff, I think the easiest solution would be to change the git "revision" to "git_revision" or something... which I would guess would require
* renaming here: http://hg.mozilla.org/build/mozharness/file/9876018e8c38/scripts/b2g_bumper.py#l338
* updating whatever uses that file for gaia try
* updating any docs
Flags: needinfo?(aki)
Comment 4•11 years ago
|
||
Hm, evidently http://hg.mozilla.org/build/mozharness/file/9876018e8c38/scripts/bump_gaia_json.py#l164 as well until b2g_bumper is run on all branches.
Assignee | ||
Comment 5•11 years ago
|
||
Ok, I'll handle it in mozharness and docs.
Assignee: nobody → jgriffin
Assignee | ||
Comment 6•11 years ago
|
||
I'll need to update the docs after this lands.
Attachment #8396630 -
Flags: review?(aki)
Updated•11 years ago
|
Attachment #8396630 -
Flags: review?(aki) → review+
Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 8396630 [details] [diff] [review]
Use git_revision in gaia.json's git dict,
https://hg.mozilla.org/build/mozharness/rev/697e4c1601f1
Attachment #8396630 -
Flags: checked-in+
Assignee | ||
Comment 8•11 years ago
|
||
in production
Assignee | ||
Comment 9•11 years ago
|
||
here's a try run to test this: https://tbpl.mozilla.org/?tree=Try&rev=c1c8ad5a0226
Assignee | ||
Comment 10•11 years ago
|
||
try is good and docs have been updated!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•