Bug 1618781 - Add toolchains tasks for pdbstr. r=froydnj

Differential Revision: https://phabricator.services.mozilla.com/D67085

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Hommey 2020-03-18 03:34:44 +00:00
parent 87dc9fcfe5
commit deaae0a9f3
3 changed files with 44 additions and 3 deletions

View File

@ -253,3 +253,33 @@ linux64-wine:
fetches:
fetch:
- wine-3.0.3
win32-pdbstr:
description: "pdbstr for 32-bits Windows"
treeherder:
symbol: TW32(pdbstr)
worker-type: b-win2012
worker:
artifacts:
- name: project/gecko/pdbstr/pdbstr.tar.bz2
path: pdbstr.tar.bz2
type: file
run:
script: exfiltrate-pdbstr.sh
arguments: ['x86']
toolchain-artifact: project/gecko/pdbstr/pdbstr.tar.bz2
win64-pdbstr:
description: "pdbstr for 64-bits Windows"
treeherder:
symbol: TW64(pdbstr)
worker-type: b-win2012
worker:
artifacts:
- name: project/gecko/pdbstr/pdbstr.tar.bz2
path: pdbstr.tar.bz2
type: file
run:
script: exfiltrate-pdbstr.sh
arguments: ['x64']
toolchain-artifact: project/gecko/pdbstr/pdbstr.tar.bz2

View File

@ -0,0 +1,9 @@
#!/bin/sh
set -x -e -v
# Copy the file that already exists on Windows workers.
mkdir pdbstr
cp "c:/Program Files (x86)/Windows Kits/10/Debuggers/$1/srcsrv/pdbstr.exe" pdbstr
tar -jcvf pdbstr.tar.bz2 pdbstr

View File

@ -175,10 +175,12 @@ def windows_toolchain(config, job, taskdesc):
worker = taskdesc['worker'] = job['worker']
worker['artifacts'] = [{
# Allow the job to specify where artifacts come from.
worker.setdefault('artifacts', [{
'path': r'public\build',
'type': 'directory',
}]
}])
worker['chain-of-trust'] = True
# There were no caches on generic-worker before bug 1519472, and they cause
@ -186,7 +188,7 @@ def windows_toolchain(config, job, taskdesc):
# tasks are ready.
run['use-caches'] = False
env = worker['env']
env = worker.setdefault('env', {})
env.update({
'MOZ_BUILD_DATE': config.params['moz_build_date'],
'MOZ_SCM_LEVEL': config.params['level'],