Closed
Bug 755835
Opened 12 years ago
Closed 12 years ago
Specify full path to buildprops.json
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jhopkins, Assigned: jhopkins)
References
Details
Attachments
(2 files, 3 obsolete files)
1.54 KB,
patch
|
rail
:
review+
jhopkins
:
checked-in+
|
Details | Diff | Splinter Review |
5.16 KB,
patch
|
jhopkins
:
checked-in+
|
Details | Diff | Splinter Review |
buildprops.json cannot be found when doing Thunderbird repacks because the file is in the parent of the working directory and we don't pass in any path details. Rather than add another 'if thunderbird' condition, I'd rather just pass in the full path to the buildprops.json.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #624455 -
Flags: review?(rail)
Comment 2•12 years ago
|
||
Comment on attachment 624455 [details] [diff] [review] buildbotcustom patch Review of attachment 624455 [details] [diff] [review]: ----------------------------------------------------------------- ::: process/factory.py @@ +8412,5 @@ > value=lambda b: b.builder.botmaster.parent.buildbotURL > )) > + self.addStep(SetProperty( > + name='get_workdir', > + property='working_dir', Could you use "basedir" for consistency here? @@ +8413,5 @@ > )) > + self.addStep(SetProperty( > + name='get_workdir', > + property='working_dir', > + command=['pwd'], Please use the following, since pwd is a builtin command (windows may fail) command=['bash', '-c', 'pwd'] @@ +8416,5 @@ > + property='working_dir', > + command=['pwd'], > + workdir='.', > + alwaysRun=True, > + flunkOnFailure=True, You can drop alwaysRun=True and flunkOnFailure=True @@ +8418,5 @@ > + workdir='.', > + alwaysRun=True, > + flunkOnFailure=True, > + )) > + self.env = {'PROPERTIES_FILE': WithProperties('%(working_dir)s/buildprops.json')} %(basedir) for consistency, please. @@ +8427,5 @@ > )) > if extra_data: > self.addStep(JSONStringDownload( > extra_data, > name="download_extra", Can you also add the same trick to self.env['EXTRA_DATA'] = 'data.json' to be safe?
Attachment #624455 -
Flags: review?(rail)
Assignee | ||
Comment 3•12 years ago
|
||
addressed rail's review comments
Attachment #624455 -
Attachment is obsolete: true
Attachment #624471 -
Flags: review?(rail)
Updated•12 years ago
|
Attachment #624471 -
Flags: review?(rail) → review+
Assignee | ||
Comment 4•12 years ago
|
||
Comment on attachment 624471 [details] [diff] [review] buildbotcustom patch Review of attachment 624471 [details] [diff] [review]: ----------------------------------------------------------------- Landed in https://hg.mozilla.org/build/buildbotcustom/rev/7168d3acbcb4 Per IRC conversation, added haltOnFailure=True in case the 'pwd' call fails.
Attachment #624471 -
Flags: checked-in+
Assignee | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 5•12 years ago
|
||
Looks like this is causing bug 757708. We need to fix or back out.
Blocks: 757708
Updated•12 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 6•12 years ago
|
||
Can you point me to a failed log? Why isn't bash available on those systems?
Comment 7•12 years ago
|
||
https://tbpl.mozilla.org/php/getParsedLog.php?id=12156017&tree=Firefox&full=1 These are test boxes, not sure why it's not in the path.
Assignee | ||
Comment 8•12 years ago
|
||
We may be able to work around this problem. Pseudocode: if platform is windows: cmd = ['cmd', '/C', 'pwd'] else: cmd = ['bash', '-c', 'pwd']
Comment 9•12 years ago
|
||
(In reply to John Hopkins (:jhopkins) from comment #8) > We may be able to work around this problem. Pseudocode: > > if platform is windows: > cmd = ['cmd', '/C', 'pwd'] > else: > cmd = ['bash', '-c', 'pwd'] see http://hg.mozilla.org/build/buildbotcustom/file/4a25912f0f4b/process/factory.py#l935
Comment 10•12 years ago
|
||
Something similar might fix bug 724221 too.
Assignee | ||
Comment 11•12 years ago
|
||
Here's a proposed patch that could work but needs some testing.
Attachment #628034 -
Flags: feedback?(aki)
Assignee | ||
Comment 12•12 years ago
|
||
attaching the correct patch
Attachment #628034 -
Attachment is obsolete: true
Attachment #628034 -
Flags: feedback?(aki)
Attachment #628036 -
Flags: review?(aki)
Comment 13•12 years ago
|
||
Comment on attachment 628036 [details] [diff] [review] proposed (but untested) patch >diff --git a/misc.py b/misc.py >--- a/misc.py >+++ b/misc.py >@@ -411,18 +411,19 @@ def generateTestBuilder(config, branch_n > # suites is a dict! > extra_args = suites.get('extra_args', []) > factory = ScriptFactory( > interpreter=mozharness_python, > scriptRepo=suites['mozharness_repo'], > scriptName=suites['script_path'], > hg_bin=suites['hg_bin'], > extra_args=suites.get('extra_args', []), > reboot_command=suites.get('reboot_command'), >+ platform=platform, I think this is the only required change in misc.py. >@@ -1759,18 +1762,19 @@ def generateBranchObjects(config, name, > if config['enable_weekly_bundle']: > stageBasePath = '%s/%s' % (config['stage_base_path'], > pf['stage_product']) > bundle_factory = ScriptFactory( > config['hgurl'] + config['build_tools_repo_path'], > 'scripts/bundle/hg-bundle.sh', > interpreter='bash', > script_timeout=3600, > script_maxtime=3600, >+ platform=platform, This one is actually problematic. It comes *after* a |for platform in enabled_platforms:| loop ends. So platform shouldn't be in scope, but it will be. The value of |platform| here won't have anything to do with this ScriptFactory. >>> for i in ('a', 'b', 'c'): ... pass ... >>> i 'c' >@@ -3052,18 +3058,19 @@ def generateCCBranchObjects(config, name > if config['enable_weekly_bundle']: > stageBasePath = '%s/%s' % (config['stage_base_path'], > pf['stage_product']) > bundle_factory = ScriptFactory( > config['hgurl'] + config['build_tools_repo_path'], > 'scripts/bundle/hg-bundle.sh', > interpreter='bash', > script_timeout=3600, > script_maxtime=3600, >+ platform=platform, Here too. I'm not 100% sure about the platform in the other locations, but they look right. r- as is; r+ if we either remove those two lines or limit the misc.py changes to the first chunk.
Attachment #628036 -
Flags: review?(aki) → review+
Comment 14•12 years ago
|
||
Comment on attachment 628036 [details] [diff] [review] proposed (but untested) patch >+ cmd = ['bash', '-c', 'for file in `ls -1`; do cat $file; done'] >+ if self.platform and 'win' in self.platform: >+ # note: prefixing 'type' command with '@' to suppress extraneous output >+ self.get_basedir_cmd = ['cmd', '/C', 'for', '%f', 'in', '(*)', 'do', '@type', '%f'] >+ Also, could we get rid of all the trailing whitespace on the final line here?
Assignee | ||
Comment 15•12 years ago
|
||
removed all but 1st hunk in misc.py
Attachment #628036 -
Attachment is obsolete: true
Assignee | ||
Comment 16•12 years ago
|
||
Comment on attachment 628750 [details] [diff] [review] updated patch Landed in http://hg.mozilla.org/build/buildbotcustom/rev/a553eb666d62
Attachment #628750 -
Flags: checked-in+
Comment 17•12 years ago
|
||
(In reply to John Hopkins (:jhopkins) from comment #16) > Landed in http://hg.mozilla.org/build/buildbotcustom/rev/a553eb666d62 Reconfig for this just happened.
Comment 18•12 years ago
|
||
...and I see a green win64 peptest run. Thanks all!
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
Updated•6 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•