config.json/utils: Allow buildhistory to be configurable and disable for oe-selftest in qemu-arch
PATCH 1/40 config.json/utils: Allow buildhistory to be configurable and disable for oe-selftest in qemu-arch
--- config.json | 4 +++- scripts/run-config | 2 +- scripts/setup-config | 2 +- scripts/utils.py | 6 +++--- 4 files changed, 8 insertions(+), 6 deletions(-)
config.json +3 -1
@@ -3,7 +3,6 @@ "BASE_SHAREDDIR" : "/srv/autobuilder/autobuilder.yoctoproject.org", "BASE_PUBLISHDIR" : "/srv/autobuilder/downloads.yoctoproject.org", - "build-history-targets" : ["qemuarm64", "qemuarm", "qemuarm-alt", "qemumips64", "qemumips", "qemumips-alt", "qemuppc", "qemuppc-alt", "qemux86-64", "qemux86-64-alt", "qemux86", "qemux86-alt"], "BUILD_HISTORY_DIR" : "buildhistory", "BUILD_HISTORY_REPO" : "ssh://[email protected]/poky-buildhistory", "BUILD_HISTORY_DIRECTPUSH" : ["poky:morty", "poky:pyro", "poky:rocko", "poky:sumo", "poky:thud", "poky:master"],
@@ -31,6 +30,7 @@ "SSTATEDIR_RELEASE" : ["SSTATE_MIRRORS += 'file://.* file://${BASE_SHAREDDIR}/pub/sstate/PATH'", "SSTATE_DIR ?= '${BASE_PUBLISHDIR}/sstate/@RELEASENUM@'"], "SDKEXTRAS" : ["SSTATE_MIRRORS += '\\", "file://.* http://sstate.yoctoproject.org/dev/@RELEASENUM@PATH;downloadfilename=PATH'"], "BUILDINFO" : false, + "BUILDHISTORY" : false, "BUILDINFOVARS" : ["INHERIT += 'image-buildinfo'", "IMAGE_BUILDINFO_VARS_append = ' IMAGE_BASENAME IMAGE_NAME'"], "WRITECONFIG" : true, "SENDERRORS" : true,
@@ -56,6 +56,7 @@ "templates" : { "arch-qemu" : { "BUILDINFO" : true, + "BUILDHISTORY" : true, "step1" : { "BBTARGETS" : "core-image-sato core-image-sato-dev core-image-sato-sdk core-image-minimal core-image-minimal-dev core-image-sato:do_populate_sdk", "SANITYTARGETS" : "core-image-minimal:do_testimage core-image-sato:do_testimage core-image-sato-sdk:do_testimage core-image-sato:do_testsdk"
@@ -69,6 +70,7 @@ "lsb-qemu" : { "DISTRO" : "poky-lsb", "BUILDINFO" : true, + "BUILDHISTORY" : true, "step1" : { "BBTARGETS" : "core-image-lsb core-image-lsb-dev core-image-lsb-sdk", "SANITYTARGETS" : "core-image-lsb:do_testimage core-image-lsb-sdk:do_testimage"
scripts/run-config +1 -1
@@ -151,7 +151,7 @@ def runcmd(cmd, *args, **kwargs): except subprocess.CalledProcessError: print("ERROR: Command %s failed" % cmd) -bh_path, remoterepo, remotebranch, baseremotebranch = utils.getbuildhistoryconfig(ourconfig, args.builddir, args.target, args.reponame, args.branchname) +bh_path, remoterepo, remotebranch, baseremotebranch = utils.getbuildhistoryconfig(ourconfig, args.builddir, args.target, args.reponame, args.branchname, stepnum) if bh_path: runcmd([os.path.join(scriptsdir, "buildhistory-init"), bh_path, remoterepo, remotebranch, baseremotebranch])
scripts/setup-config +1 -1
@@ -92,7 +92,7 @@ extravars = utils.getconfiglistfilter("extravars", ourconfig, args.target, stepn if extravars: variables.extend(extravars) -bh_path, remoterepo, remotebranch, baseremotebranch = utils.getbuildhistoryconfig(ourconfig, args.builddir, args.target, args.reponame, args.branchname) +bh_path, remoterepo, remotebranch, baseremotebranch = utils.getbuildhistoryconfig(ourconfig, args.builddir, args.target, args.reponame, args.branchname, stepnum) if bh_path: variables.append('INHERIT += "buildhistory"') variables.append('BUILDHISTORY_DIR = "%s"' % bh_path)
scripts/utils.py +3 -3
@@ -194,9 +194,9 @@ def loadconfig(): # # Common function to determine if buildhistory is enabled and what the parameters are # -def getbuildhistoryconfig(ourconfig, builddir, target, reponame, branchname): - if contains(["BUILD_HISTORY_DIR", "build-history-targets", "BUILD_HISTORY_REPO"], ourconfig): - if target in getconfig("build-history-targets", ourconfig): +def getbuildhistoryconfig(ourconfig, builddir, target, reponame, branchname, stepnum): + if contains(["BUILD_HISTORY_DIR", "BUILD_HISTORY_REPO"], ourconfig): + if utils.getconfigvar("BUILDHISTORY", ourconfig, target, stepnum): base = None if "/" in reponame: reponame = reponame.rsplit("/", 1)[1]
Signature · 1 line
2.25.1
PATCH 2/40 run-config: Fix uninitalized variable problem
--- scripts/run-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/run-config +1 -1
@@ -151,7 +151,7 @@ def runcmd(cmd, *args, **kwargs): except subprocess.CalledProcessError: print("ERROR: Command %s failed" % cmd) -bh_path, remoterepo, remotebranch, baseremotebranch = utils.getbuildhistoryconfig(ourconfig, args.builddir, args.target, args.reponame, args.branchname, stepnum) +bh_path, remoterepo, remotebranch, baseremotebranch = utils.getbuildhistoryconfig(ourconfig, args.builddir, args.target, args.reponame, args.branchname, 1) if bh_path: runcmd([os.path.join(scriptsdir, "buildhistory-init"), bh_path, remoterepo, remotebranch, baseremotebranch])
Signature · 1 line
2.25.1
PATCH 3/40 scripts/send-qa-email: Allow force pushing of basebranch based comparisions
In reply to Richard Purdie--- scripts/send-qa-email | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
scripts/send-qa-email +6 -2
@@ -61,8 +61,12 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir: try: subprocess.check_call(["git", "clone", "[email protected]:yocto-testresults", tempdir]) subprocess.check_call([resulttool, "store", args.results_dir, tempdir]) - subprocess.check_call(["git", "push", "--all"], cwd=tempdir) - subprocess.check_call(["git", "push", "--tags"], cwd=tempdir) + if basebranch: + subprocess.check_call(["git", "push", "--all", "--force"], cwd=tempdir) + subprocess.check_call(["git", "push", "--tags", "--force"], cwd=tempdir) + else: + subprocess.check_call(["git", "push", "--all"], cwd=tempdir) + subprocess.check_call(["git", "push", "--tags"], cwd=tempdir) regreport = subprocess.check_output([resulttool, "regression-git", tempdir] + extraopts.split()) with open(args.results_dir + "/testresult-regressions-report.txt", "wb") as f:
Signature · 1 line
2.25.1
PATCH 4/40 send-qa-email/utils: Improve new branch regression script handling
In reply to Richard PurdieThere are several issues:
* New branches don't currently have git regression history
* The regression tool errors if there isn't anything to compare against
To fix this, create a branch with history and only generate a regression report if there are commits to compare against.
--- scripts/build-perf-test-wrapper | 2 +- scripts/send-qa-email | 24 +++++++++++++++++++----- scripts/utils.py | 8 +++++--- 3 files changed, 25 insertions(+), 9 deletions(-)
scripts/build-perf-test-wrapper +1 -1
@@ -182,7 +182,7 @@ if git_repo: extraopts = " --branch %s --commit %s" % (branch, gitrevfull) if args.repo and args.branch: - comparebranch = utils.getcomparisonbranch(ourconfig, args.repo, args.branch) + basebranch, comparebranch = utils.getcomparisonbranch(ourconfig, args.repo, args.branch) if comparebranch: extraopts = extraopts + " --branch2 %s" % (comparebranch)
scripts/send-qa-email +19 -5
@@ -48,8 +48,10 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir: branch = repos['poky']['branch'] repo = repos['poky']['url'] - extraopts = " --branch %s --commit %s" % (branch, revision) - comparebranch = utils.getcomparisonbranch(ourconfig, repo, branch) + extraopts = None + basebranch, comparebranch = utils.getcomparisonbranch(ourconfig, repo, branch) + if basebranch: + extraopts = " --branch %s --commit %s" % (branch, revision) if comparebranch: extraopts = extraopts + " --branch2 %s" % (comparebranch)
@@ -60,6 +62,17 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir: tempdir = tempfile.mkdtemp(prefix='sendqaemail.') try: subprocess.check_call(["git", "clone", "[email protected]:yocto-testresults", tempdir]) + + # If the base comparision branch isn't present regression comparision won't work + # at least until we can tell the tool to ignore internal branch information + if basebranch: + try: + subprocess.check_call(["git", "rev-parse", "--verify", basebranch], cwd=tempdir) + except subprocess.CalledProcessError: + # Doesn't exist so base it off master + subprocess.check_call(["git", "branch", "master", basebranch], cwd=tempdir) + extraopts = None + subprocess.check_call([resulttool, "store", args.results_dir, tempdir]) if basebranch: subprocess.check_call(["git", "push", "--all", "--force"], cwd=tempdir)
@@ -68,9 +81,10 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir: subprocess.check_call(["git", "push", "--all"], cwd=tempdir) subprocess.check_call(["git", "push", "--tags"], cwd=tempdir) - regreport = subprocess.check_output([resulttool, "regression-git", tempdir] + extraopts.split()) - with open(args.results_dir + "/testresult-regressions-report.txt", "wb") as f: - f.write(regreport) + if extraopts: + regreport = subprocess.check_output([resulttool, "regression-git", tempdir] + extraopts.split()) + with open(args.results_dir + "/testresult-regressions-report.txt", "wb") as f: + f.write(regreport) finally: subprocess.check_call(["rm", "-rf", tempdir])
scripts/utils.py +5 -3
@@ -347,11 +347,10 @@ class ArgParser(argparse.ArgumentParser): # # Figure out which branch we might need to compare against +# Also return whether this is a forked branch or not. # def getcomparisonbranch(ourconfig, reponame, branchname): print("Working off %s:%s\n" % (reponame, branchname)) - base = None - basebranch = None if "/" in reponame: reponame = reponame.rsplit("/", 1)[1] if reponame.endswith(".git"):
@@ -361,4 +360,7 @@ def getcomparisonbranch(ourconfig, reponame, branchname): if base: baserepo, basebranch = base.split(":") print("Comparing to %s\n" % (basebranch)) - return basebranch + return branchname, basebranch + if (reponame + ":" + branchname) in getconfig("BUILD_HISTORY_DIRECTPUSH", ourconfig): + return branchname, None + return None, None
Signature · 1 line
2.25.1
PATCH 5/40 scripts/send-qa-email: Handle older git clients
In reply to Richard Purdie--- scripts/send-qa-email | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
scripts/send-qa-email +4 -1
@@ -70,7 +70,10 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir: subprocess.check_call(["git", "rev-parse", "--verify", basebranch], cwd=tempdir) except subprocess.CalledProcessError: # Doesn't exist so base it off master - subprocess.check_call(["git", "branch", "master", basebranch], cwd=tempdir) + # some older hosts don't have git branch old new + subprocess.check_call(["git", "checkout", "master"], cwd=tempdir) + subprocess.check_call(["git", "branch", basebranch], cwd=tempdir) + subprocess.check_call(["git", "checkout", basebranch], cwd=tempdir) extraopts = None subprocess.check_call([resulttool, "store", args.results_dir, tempdir])
Signature · 1 line
2.25.1
PATCH 6/40 utils: Fix incorrect module usage
In reply to Richard Purdie--- scripts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/utils.py +1 -1
@@ -196,7 +196,7 @@ def loadconfig(): # def getbuildhistoryconfig(ourconfig, builddir, target, reponame, branchname, stepnum): if contains(["BUILD_HISTORY_DIR", "BUILD_HISTORY_REPO"], ourconfig): - if utils.getconfigvar("BUILDHISTORY", ourconfig, target, stepnum): + if getconfigvar("BUILDHISTORY", ourconfig, target, stepnum): base = None if "/" in reponame: reponame = reponame.rsplit("/", 1)[1]
Signature · 1 line
2.25.1
PATCH 7/40 config.json: Disable PRSERV
In reply to Richard PurdieThis was copied from the old autobuilder configuration without much thought. It would only be effective if we had a common PRSERV or saved the database but we don't. It therefore makes sense to disable it.
One problem it was causing was inconsistency in the buildhistory output as PKGR would change "r0" to "r0.0" and vice versa. The issue depended on whether the build has coming from sstate or not and the settings the sstate had been built with.
--- config.json | 4 ---- 1 file changed, 4 deletions(-)
config.json +0 -4
@@ -24,7 +24,6 @@ "DISTRO" : "poky", "SDKMACHINE" : "i686", "PACKAGE_CLASSES" : "package_rpm package_deb package_ipk", - "PRSERV" : "PRSERV_HOST = 'localhost:0'", "DLDIR" : "DL_DIR = '${BASE_SHAREDDIR}/current_sources'", "SSTATEDIR" : ["SSTATE_DIR ?= '${BASE_SHAREDDIR}/pub/sstate-thud'"], "SSTATEDIR_RELEASE" : ["SSTATE_MIRRORS += 'file://.* file://${BASE_SHAREDDIR}/pub/sstate/PATH'", "SSTATE_DIR ?= '${BASE_PUBLISHDIR}/sstate/@RELEASENUM@'"],
@@ -109,7 +108,6 @@ "MACHINE" : "qemux86-64", "SDKMACHINE" : "x86_64", "PACKAGE_CLASSES" : "package_rpm", - "PRSERV" : false, "extravars" : [ "RPM_GPG_SIGN_CHUNK = '1'" ],
@@ -201,7 +199,6 @@ "MACHINE" : "qemux86-64", "SDKMACHINE" : "x86_64", "PACKAGE_CLASSES" : "package_rpm", - "PRSERV" : false, "extravars" : [ "RPM_GPG_SIGN_CHUNK = '1'" ],
@@ -564,7 +561,6 @@ "MACHINE" : "qemux86", "SDKMACHINE" : "x86_64", "BBTARGETS" : "universe:do_checkuri", - "PRSERV" : false, "extravars" : [ "SOURCE_MIRROR_FETCH = '1'", "BB_NUMBER_THREADS = '1'",
Signature · 1 line
2.25.1
PATCH 8/40 config.json: Hide WARNINGS we don't care about for meta-gplv2 testing
In reply to Richard PurdieWe're not interested in these warnings, the license incompatibility is expected. By hiding these, we'll notice when warnings we do care about appear.
--- config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
config.json +2 -1
@@ -523,7 +523,8 @@ "MACHINE" : "qemux86", "BBTARGETS" : "core-image-minimal core-image-full-cmdline", "extravars" : [ - "INCOMPATIBLE_LICENSE = '*GPLv3'" + "INCOMPATIBLE_LICENSE = '*GPLv3'", + "WARN_QA_remove = 'incompatible-license'" ], "EXTRACMDS" : [ "../../yocto-autobuilder-helper/scripts/check-gplv3"
Signature · 1 line
2.25.1
PATCH 9/40 README: Add pointer to the mailing list for patches
In reply to Richard Purdie--- README | 5 +++++ 1 file changed, 5 insertions(+)
README +5 -0
@@ -25,3 +25,8 @@ would also allow customisation. Authors: Richard Purdie <[email protected]> Joshua Lock <[email protected]> + +Contributions: + +Patches for this code should be sent to the [email protected] mailing list +with [yocto-autobuilder-helper] in the subject.
Signature · 1 line
2.25.1
PATCH 10/40 layer-config: fixing silent failures from always exiting '0'
In reply to Richard PurdieFrom: Thomas Goodwin <[email protected]>
The return value from bitbakecmd was not being returned when errors occurred which allowed shared-repo-unpack to succeed despite the failure. This fix changes to check_call and a try-catch when attempting to add repos that fail for whatever reason during add-layer, like a missing conf/layer.conf at the top level or a previously-added layer breaks parsing because of missing dependencies.
--- scripts/layer-config | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
scripts/layer-config +6 -5
@@ -24,9 +24,7 @@ args = parser.parse_args() ourconfig = utils.loadconfig() def bitbakecmd(targetdir, cmd): - ret = subprocess.call(". ./oe-init-build-env; %s" % cmd, shell=True, cwd=targetdir) - if ret: - utils.printheader("ERROR: Command %s failed with exit code %d, see errors above." % (cmd, ret)) + subprocess.check_call(". ./oe-init-build-env; %s" % cmd, shell=True, cwd=targetdir) needrepos = utils.getconfigvar("NEEDREPOS", ourconfig, args.target, None)
@@ -51,5 +49,8 @@ if callinit: for repo in needrepos: if repo in repos and "no-layer-add" in repos[repo] and repos[repo]["no-layer-add"]: continue - bitbakecmd(args.abworkdir, "bitbake-layers add-layer %s" % (args.abworkdir + "/" + repo)) - + try: + bitbakecmd(args.abworkdir, "bitbake-layers add-layer %s" % (args.abworkdir + "/" + repo)) + except subprocess.CalledProcessError as e: + utils.printheader("ERROR: Command %s failed with exit code %d, see errors above." % (e.cmd, e.returncode)) + sys.exit(e.returncode)
Signature · 1 line
2.25.1
PATCH 11/40 layer-config, shared-repo-unpack: Sub-repos in NEEDREPOS
In reply to Richard PurdieFrom: Thomas Goodwin <[email protected]>
The previous fixes requires the user to set "no-layer-add" for a repo and then use ADDLAYER to insert the sub-repos (e.g., meta-openmbedded/meta-oe) as a two-part process. This means that you would also have to specify that flag if a repo that is a layer with dependencies is in the list so that it can be inserted in the correct order later via ADDLAYER to avoid parsing problems. This fix allows for specifying a NEEDREPOS with the subdirectory of the target layer (e.g., meta-openembedded/meta-oe) so that there is no need for the "no-layer-add" followed by ADDLAYER combination. The entire meta-openembedded repo would be moved into place, and the sublayer added to bblayers.conf.
--- scripts/layer-config | 24 +++++++++++++++--------- scripts/shared-repo-unpack | 4 ++-- 2 files changed, 17 insertions(+), 11 deletions(-)
scripts/layer-config +15 -9
@@ -33,21 +33,27 @@ callinit = False repos = utils.getconfig("repo-defaults", ourconfig) for repo in needrepos: - checkdir = repo - if repo in repos: - if "call-init" in repos[repo] and repos[repo]["call-init"]: + repo_basename = repo.split('/')[0] + checkdir = repo_basename + if repo_basename in repos: + if "call-init" in repos[repo_basename] and repos[repo_basename]["call-init"]: callinit = True - if "checkout-dirname" in repos[repo]: - checkdir = repos[repo]["checkout-dirname"] - utils.mkdir(args.abworkdir + "/" + checkdir) - for f in os.listdir(args.abworkdir + "/repos/" + repo): - subprocess.check_call(['mv', args.abworkdir + "/repos/" + repo + "/" + f, args.abworkdir + "/" + checkdir + "/"]) + if "checkout-dirname" in repos[repo_basename]: + checkdir = repos[repo_basename]["checkout-dirname"] + + source = args.abworkdir + "/repos/" + repo_basename + destination = args.abworkdir + "/" + checkdir + if not os.path.isdir(destination) or callinit: + utils.mkdir(destination) + for f in os.listdir(source): + subprocess.check_call(['mv', source + "/" + f, destination + "/"]) if callinit: subprocess.check_call(". ./oe-init-build-env", shell=True, cwd=args.abworkdir) for repo in needrepos: - if repo in repos and "no-layer-add" in repos[repo] and repos[repo]["no-layer-add"]: + repo_basename = repo.split('/')[0] + if repo_basename in repos and "no-layer-add" in repos[repo_basename] and repos[repo_basename]["no-layer-add"]: continue try: bitbakecmd(args.abworkdir, "bitbake-layers add-layer %s" % (args.abworkdir + "/" + repo))
scripts/shared-repo-unpack +2 -2
@@ -46,9 +46,9 @@ with open(args.repojson) as f: repos = json.load(f) targetsubdir = args.abworkdir + "/repos" - +needrepos_baseddirs = [r.split('/')[0] for r in needrepos] for repo in sorted(repos.keys()): - if repo not in needrepos: + if repo not in needrepos_baseddirs: continue targetrepodir = "%s/%s" % (targetsubdir, repo) if args.cache_dir:
Signature · 1 line
2.25.1
PATCH 12/40 prepare-shared-repos: Use temporary non-NFS directory for layer clones for speed
In reply to Richard Purdie--- scripts/prepare-shared-repos | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
scripts/prepare-shared-repos +9 -5
@@ -8,6 +8,7 @@ import os import sys import subprocess import errno +import tempfile import utils
@@ -31,8 +32,11 @@ with open(args.repojson) as f: stashdir = utils.getconfig("REPO_STASH_DIR", ourconfig) -for repo in sorted(repos.keys()): - utils.printheader("Intially fetching repo %s" % repo) - utils.fetchgitrepo(args.sharedsrcdir, repo, repos[repo], stashdir) - if args.publish_dir: - utils.publishrepo(args.sharedsrcdir, repo, args.publish_dir) +with tempfile.TemporaryDirectory(prefix="shared-repo-temp-", dir="/tmp") as tempdir: + for repo in sorted(repos.keys()): + utils.printheader("Intially fetching repo %s" % repo) + utils.fetchgitrepo(tempdir, repo, repos[repo], stashdir) + if args.publish_dir: + utils.publishrepo(tempdir, repo, args.publish_dir) + + subprocess.check_call(["rsync", "-a", tempdir + "/*", args.sharedsrcdir])
Signature · 1 line
2.25.1
PATCH 13/40 prepare-shared-repos: UAllow shell globing to fix failure
In reply to Richard Purdie--- scripts/prepare-shared-repos | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/prepare-shared-repos +1 -1
@@ -39,4 +39,4 @@ with tempfile.TemporaryDirectory(prefix="shared-repo-temp-", dir="/tmp") as temp if args.publish_dir: utils.publishrepo(tempdir, repo, args.publish_dir) - subprocess.check_call(["rsync", "-a", tempdir + "/*", args.sharedsrcdir]) + subprocess.check_call(["rsync", "-a", tempdir + "/*", args.sharedsrcdir], shell=True)
Signature · 1 line
2.25.1
PATCH 14/40 prepare-shared-repos: Really fix shell globbing
In reply to Richard Purdie--- scripts/prepare-shared-repos | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/prepare-shared-repos +1 -1
@@ -39,4 +39,4 @@ with tempfile.TemporaryDirectory(prefix="shared-repo-temp-", dir="/tmp") as temp if args.publish_dir: utils.publishrepo(tempdir, repo, args.publish_dir) - subprocess.check_call(["rsync", "-a", tempdir + "/*", args.sharedsrcdir], shell=True) + subprocess.check_call("rsync -a " + tempdir + "/* " + args.sharedsrcdir, shell=True)
Signature · 1 line
2.25.1
PATCH 15/40 config.json: Replaced occurrencies of /home/pokybuild with ${BASE_HOMEDIR}
In reply to Richard PurdieFrom: Marco Cavallini <[email protected]>
--- config.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
config.json +3 -3
@@ -16,8 +16,8 @@ "WEBPUBLISH_DIR" : "${BASE_SHAREDDIR}/", "WEBPUBLISH_URL" : "https://autobuilder.yocto.io/", - "BUILDPERF_STATEDIR" : "/home/pokybuild/buildperf", - "BUILDPERF_RESULTSDIR" : "/home/pokybuild/buildperf-results", + "BUILDPERF_STATEDIR" : "${BASE_HOMEDIR}/buildperf", + "BUILDPERF_RESULTSDIR" : "${BASE_HOMEDIR}/buildperf-results", "defaults" : { "NEEDREPOS" : ["poky"],
@@ -95,7 +95,7 @@ "SSTATEDIR_RELEASE" : ["SSTATE_DIR ?= '${HELPERBUILDDIR}/sstate'"], "PACKAGE_CLASSES" : "package_rpm", "EXTRAPLAINCMDS" : [ - "${SCRIPTSDIR}/build-perf-test-wrapper -r ${BUILDPERF_RESULTSDIR} -E [email protected] -d ${BUILDPERF_STATEDIR}/downloads -w /home/pokybuild/build-perf-test -p ${HELPERRESULTSDIR}/${HELPERTARGET} -R ${HELPERREPONAME} -b ${HELPERBRANCHNAME} --push [email protected]:yocto-buildstats" + "${SCRIPTSDIR}/build-perf-test-wrapper -r ${BUILDPERF_RESULTSDIR} -E [email protected] -d ${BUILDPERF_STATEDIR}/downloads -w ${BASE_HOMEDIR}/build-perf-test -p ${HELPERRESULTSDIR}/${HELPERTARGET} -R ${HELPERREPONAME} -b ${HELPERBRANCHNAME} --push [email protected]:yocto-buildstats" ], "extravars" : [ "BB_NUMBER_THREADS = '24'",
Signature · 1 line
2.25.1
PATCH 16/40 shared-repo-unpack: suppressing exception, returning exit code
In reply to Richard PurdieFrom: Thomas Goodwin <[email protected]>
The preceeding errors that would be shown should be enough to identify the problem since it would have been a problem running bitbake-layers add-layer, indicating a misconfiguration of config.json.
--- scripts/shared-repo-unpack | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
scripts/shared-repo-unpack +4 -1
@@ -61,4 +61,7 @@ for repo in sorted(repos.keys()): if args.publish_dir: utils.publishrepo(targetsubdir, repo, args.publish_dir) -subprocess.check_call([scriptsdir + "/layer-config", args.abworkdir, args.target]) +try: + subprocess.check_call([scriptsdir + "/layer-config", args.abworkdir, args.target]) +except subprocess.CalledProcessError as e: + sys.exit(e.returncode)
Signature · 1 line
2.25.1
PATCH 17/40 run-config: Preface log output with auto.conf settings to aid debugging
In reply to Richard Purdie--- scripts/run-config | 8 ++++++++ 1 file changed, 8 insertions(+)
scripts/run-config +8 -0
@@ -121,6 +121,14 @@ def bitbakecmd(builddir, cmd, report, stepnum, logsuffix, oeenv=True): print("Running '%s' with output to %s" % (cmd, log)) flush() + autoconf = builddir + "/conf/auto.conf" + if os.path.exists(autoconf): + with open(autoconf, "r") as inf, open(log, "a") as outf: + outf.write("auto.conf settings:\n") + for line in inf.readlines(): + outf.write(line) + outf.write("\n") + with subprocess.Popen(cmd, shell=True, cwd=builddir + "/..", stdout=subprocess.PIPE, stderr=subprocess.STDOUT, bufsize=1) as p, open(log, 'ab') as f: for line in p.stdout: if not args.quietlogging:
Signature · 1 line
2.25.1
PATCH 18/40 run-config: Add support for wrapping builds in a buildtools tarball
In reply to Richard Purdie--- scripts/run-config | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)
scripts/run-config +30 -0
@@ -8,6 +8,8 @@ import os import sys import subprocess import errno +import fnmatch +import glob import utils
@@ -80,6 +82,34 @@ if args.target in ourconfig['overrides']: hp.printheader("Target task %s has %d steps" % (args.target, maxsteps)) +bttarball = None +if "buildtools" in ourconfig and args.workername: + btcfg = utils.getconfig("buildtools", ourconfig) + for entry in btcfg: + if fnmatch.fnmatch(args.workername, entry): + bttarball = btcfg[entry] + break + +btenv = None +if bttarball: + btdir = args.builddir + "../buildtools" + if not os.path.exists(btdir): + btdlpath = utils.getconfig("BASE_SHAREDDIR", ourconfig) + "/buildtools/" + os.path.basename(bttarball) + if not os.path.exists(btdlpath): + os.makedirs(os.path.dirname(btdlpath), exist_ok=True) + subprocess.check_call(["wget", "-O", btdlpath, bttarball]) + os.chmod(btdlpath, 0o775) + subprocess.check_call(["bash", btdlpath, "-d", btdir, "-y"]) + btenv = glob.glob(btdir + "/environment-setup*") + # We either parse or wrap all our execution calls, rock and a hard place :( + with open(btenv[0], "r") as f: + for line in f.readlines(): + if line.startswith("export "): + line = line.split(" ", 1)[1].split("=", 1) + if "$PATH" in line[1]: + line[1] = line[1].replace("$PATH", os.environ["PATH"]) + os.environ[line[0]] = line[1] + finalret = 0 def flush():
Signature · 1 line
2.25.1
PATCH 19/40 scripts/run-config: Fix buildtools path
In reply to Richard Purdie--- scripts/run-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/run-config +1 -1
@@ -92,7 +92,7 @@ if "buildtools" in ourconfig and args.workername: btenv = None if bttarball: - btdir = args.builddir + "../buildtools" + btdir = args.builddir + "/../buildtools" if not os.path.exists(btdir): btdlpath = utils.getconfig("BASE_SHAREDDIR", ourconfig) + "/buildtools/" + os.path.basename(bttarball) if not os.path.exists(btdlpath):
Signature · 1 line
2.25.1
PATCH 20/40 send-qa-email: Limit results clone to shallow depth to avoid timeouts
In reply to Richard Purdie--- scripts/send-qa-email | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/send-qa-email +1 -1
@@ -61,7 +61,7 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir: tempdir = tempfile.mkdtemp(prefix='sendqaemail.') try: - subprocess.check_call(["git", "clone", "[email protected]:yocto-testresults", tempdir]) + subprocess.check_call(["git", "clone", "[email protected]:yocto-testresults", tempdir, "--depth", "5"]) # If the base comparision branch isn't present regression comparision won't work # at least until we can tell the tool to ignore internal branch information
Signature · 1 line
2.25.1
PATCH 21/40 scripts/run-config: Handle multiple builds racing with lockfile for buildtools
In reply to Richard Purdie--- scripts/run-config | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
scripts/run-config +9 -3
@@ -10,6 +10,7 @@ import subprocess import errno import fnmatch import glob +import fcntl import utils
@@ -95,10 +96,15 @@ if bttarball: btdir = args.builddir + "/../buildtools" if not os.path.exists(btdir): btdlpath = utils.getconfig("BASE_SHAREDDIR", ourconfig) + "/buildtools/" + os.path.basename(bttarball) - if not os.path.exists(btdlpath): + btlock = btdlpath + ".lock" + if not os.path.exists(os.path.dirname(btdlpath)): os.makedirs(os.path.dirname(btdlpath), exist_ok=True) - subprocess.check_call(["wget", "-O", btdlpath, bttarball]) - os.chmod(btdlpath, 0o775) + with open(btlock, 'a+') as lf: + fileno = lf.fileno() + fcntl.flock(fileno, fcntl.LOCK_EX) + if not os.path.exists(btdlpath): + subprocess.check_call(["wget", "-O", btdlpath, bttarball]) + os.chmod(btdlpath, 0o775) subprocess.check_call(["bash", btdlpath, "-d", btdir, "-y"]) btenv = glob.glob(btdir + "/environment-setup*") # We either parse or wrap all our execution calls, rock and a hard place :(
Signature · 1 line
2.25.1
PATCH 22/40 scripts/run-config: Handle quoting issues in buildtools environment files
In reply to Richard Purdie--- scripts/run-config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
scripts/run-config +3 -1
@@ -111,9 +111,11 @@ if bttarball: with open(btenv[0], "r") as f: for line in f.readlines(): if line.startswith("export "): - line = line.split(" ", 1)[1].split("=", 1) + line = line.strip().split(" ", 1)[1].split("=", 1) if "$PATH" in line[1]: line[1] = line[1].replace("$PATH", os.environ["PATH"]) + if line[1].startswith(("'", '"')): + line[1] = line[1][1:-1] os.environ[line[0]] = line[1] finalret = 0
Signature · 1 line
2.25.1
PATCH 23/40 scripts/run-config: Add support for local filesystem buildtools urls
In reply to Richard Purdie--- scripts/run-config | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
scripts/run-config +4 -1
@@ -103,7 +103,10 @@ if bttarball: fileno = lf.fileno() fcntl.flock(fileno, fcntl.LOCK_EX) if not os.path.exists(btdlpath): - subprocess.check_call(["wget", "-O", btdlpath, bttarball]) + if bttarball.startswith("/"): + subprocess.check_call(["cp", bttarball, btdlpath]) + else: + subprocess.check_call(["wget", "-O", btdlpath, bttarball]) os.chmod(btdlpath, 0o775) subprocess.check_call(["bash", btdlpath, "-d", btdir, "-y"]) btenv = glob.glob(btdir + "/environment-setup*")
Signature · 1 line
2.25.1
PATCH 24/40 scripts/run-config: Ensure racing for the lockfile doesn't traceback
In reply to Richard PurdieTraceback (most recent call last):
File "yocto-autobuilder-helper/scripts/run-config", line 116, in <module>
fcntl.flock(fileno, fcntl.LOCK_EX)
OSError: [Errno 22] Invalid argument
--- scripts/run-config | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-)
scripts/run-config +14 -9
@@ -99,15 +99,20 @@ if bttarball: btlock = btdlpath + ".lock" if not os.path.exists(os.path.dirname(btdlpath)): os.makedirs(os.path.dirname(btdlpath), exist_ok=True) - with open(btlock, 'a+') as lf: - fileno = lf.fileno() - fcntl.flock(fileno, fcntl.LOCK_EX) - if not os.path.exists(btdlpath): - if bttarball.startswith("/"): - subprocess.check_call(["cp", bttarball, btdlpath]) - else: - subprocess.check_call(["wget", "-O", btdlpath, bttarball]) - os.chmod(btdlpath, 0o775) + while True: + try: + with open(btlock, 'a+') as lf: + fileno = lf.fileno() + fcntl.flock(fileno, fcntl.LOCK_EX) + if not os.path.exists(btdlpath): + if bttarball.startswith("/"): + subprocess.check_call(["cp", bttarball, btdlpath]) + else: + subprocess.check_call(["wget", "-O", btdlpath, bttarball]) + os.chmod(btdlpath, 0o775) + except OSError: + # We raced with someone else, try again + pass subprocess.check_call(["bash", btdlpath, "-d", btdir, "-y"]) btenv = glob.glob(btdir + "/environment-setup*") # We either parse or wrap all our execution calls, rock and a hard place :(
Signature · 1 line
2.25.1
PATCH 25/40 run-config: Fix lockfile loop handling
In reply to Richard Purdie--- scripts/run-config | 1 + 1 file changed, 1 insertion(+)
scripts/run-config +1 -0
@@ -110,6 +110,7 @@ if bttarball: else: subprocess.check_call(["wget", "-O", btdlpath, bttarball]) os.chmod(btdlpath, 0o775) + break except OSError: # We raced with someone else, try again pass
Signature · 1 line
2.25.1
PATCH 26/40 scripts/utils.py: Fix confusing naming of getcomparisonbranch() return value
In reply to Richard PurdieFrom: Steve Sakoman <[email protected]>
This code was copy/pasted but in this case the variables should be called "compare", not base.
--- scripts/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
scripts/utils.py +3 -3
@@ -358,9 +358,9 @@ def getcomparisonbranch(ourconfig, reponame, branchname): if (reponame + ":" + branchname) in getconfig("BUILD_HISTORY_FORKPUSH", ourconfig): base = getconfig("BUILD_HISTORY_FORKPUSH", ourconfig)[reponame + ":" + branchname] if base: - baserepo, basebranch = base.split(":") - print("Comparing to %s\n" % (basebranch)) - return branchname, basebranch + comparerepo, comparebranch = base.split(":") + print("Comparing to %s\n" % (comparebranch)) + return branchname, comparebranch if (reponame + ":" + branchname) in getconfig("BUILD_HISTORY_DIRECTPUSH", ourconfig): return branchname, None return None, None
Signature · 1 line
2.25.1
PATCH 27/40 scripts/send-qa-email: fix bug in git push logic for yocto-testresults
In reply to Richard PurdieFrom: Steve Sakoman <[email protected]>
We were mistakenly doing a force push if the branch was in either BUILD_HISTORY_FORKPUSH or BUILD_HISTORY_DIRECTPUSH.
Now we force push for branches in BUILD_HISTORY_FORKPUSH, regular push for branches in BUILD_HISTORY_DIRECTPUSH, and no push if the branch is in neither list.
--- scripts/send-qa-email | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/send-qa-email +2 -2
@@ -77,10 +77,10 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir: extraopts = None subprocess.check_call([resulttool, "store", args.results_dir, tempdir]) - if basebranch: + if comparebranch: subprocess.check_call(["git", "push", "--all", "--force"], cwd=tempdir) subprocess.check_call(["git", "push", "--tags", "--force"], cwd=tempdir) - else: + elif basebranch: subprocess.check_call(["git", "push", "--all"], cwd=tempdir) subprocess.check_call(["git", "push", "--tags"], cwd=tempdir)
Signature · 1 line
2.25.1
PATCH 28/40 scripts/run-config: Add extra debug about buildtools to show when active
In reply to Richard Purdie--- scripts/run-config | 2 ++ 1 file changed, 2 insertions(+)
scripts/run-config +2 -0
@@ -96,6 +96,7 @@ if bttarball: btdir = args.builddir + "/../buildtools" if not os.path.exists(btdir): btdlpath = utils.getconfig("BASE_SHAREDDIR", ourconfig) + "/buildtools/" + os.path.basename(bttarball) + print("Extracting buildtools %s" % bttarball) btlock = btdlpath + ".lock" if not os.path.exists(os.path.dirname(btdlpath)): os.makedirs(os.path.dirname(btdlpath), exist_ok=True)
@@ -116,6 +117,7 @@ if bttarball: pass subprocess.check_call(["bash", btdlpath, "-d", btdir, "-y"]) btenv = glob.glob(btdir + "/environment-setup*") + print("Using buildtools %s" % btenv) # We either parse or wrap all our execution calls, rock and a hard place :( with open(btenv[0], "r") as f: for line in f.readlines():
Signature · 1 line
2.25.1
PATCH 29/40 scripts/run-config: Share buildtools setup code with shared-repo-unpack
In reply to Richard Purdie--- scripts/run-config | 49 +------------------------------------ scripts/shared-repo-unpack | 2 ++ scripts/utils.py | 50 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 48 deletions(-)
scripts/run-config +1 -48
@@ -8,9 +8,6 @@ import os import sys import subprocess import errno -import fnmatch -import glob -import fcntl import utils
@@ -83,51 +80,7 @@ if args.target in ourconfig['overrides']: hp.printheader("Target task %s has %d steps" % (args.target, maxsteps)) -bttarball = None -if "buildtools" in ourconfig and args.workername: - btcfg = utils.getconfig("buildtools", ourconfig) - for entry in btcfg: - if fnmatch.fnmatch(args.workername, entry): - bttarball = btcfg[entry] - break - -btenv = None -if bttarball: - btdir = args.builddir + "/../buildtools" - if not os.path.exists(btdir): - btdlpath = utils.getconfig("BASE_SHAREDDIR", ourconfig) + "/buildtools/" + os.path.basename(bttarball) - print("Extracting buildtools %s" % bttarball) - btlock = btdlpath + ".lock" - if not os.path.exists(os.path.dirname(btdlpath)): - os.makedirs(os.path.dirname(btdlpath), exist_ok=True) - while True: - try: - with open(btlock, 'a+') as lf: - fileno = lf.fileno() - fcntl.flock(fileno, fcntl.LOCK_EX) - if not os.path.exists(btdlpath): - if bttarball.startswith("/"): - subprocess.check_call(["cp", bttarball, btdlpath]) - else: - subprocess.check_call(["wget", "-O", btdlpath, bttarball]) - os.chmod(btdlpath, 0o775) - break - except OSError: - # We raced with someone else, try again - pass - subprocess.check_call(["bash", btdlpath, "-d", btdir, "-y"]) - btenv = glob.glob(btdir + "/environment-setup*") - print("Using buildtools %s" % btenv) - # We either parse or wrap all our execution calls, rock and a hard place :( - with open(btenv[0], "r") as f: - for line in f.readlines(): - if line.startswith("export "): - line = line.strip().split(" ", 1)[1].split("=", 1) - if "$PATH" in line[1]: - line[1] = line[1].replace("$PATH", os.environ["PATH"]) - if line[1].startswith(("'", '"')): - line[1] = line[1][1:-1] - os.environ[line[0]] = line[1] +utils.setup_buildtools_tarball(ourconfig, args.workername, args.builddir + "/../buildtools") finalret = 0
scripts/shared-repo-unpack +2 -0
@@ -61,6 +61,8 @@ for repo in sorted(repos.keys()): if args.publish_dir: utils.publishrepo(targetsubdir, repo, args.publish_dir) +utils.setup_buildtools_tarball(ourconfig, args.workername, args.abworkdir + "/buildtools") + try: subprocess.check_call([scriptsdir + "/layer-config", args.abworkdir, args.target]) except subprocess.CalledProcessError as e:
scripts/utils.py +50 -0
59 lines not on this page · raw message
Signature · 1 line
2.25.1
PATCH 30/40 scripts/publish-artefacts: Convert md5sum to sha256sum
In reply to Richard Purdie--- scripts/publish-artefacts | 88 +++++++++++++++++++-------------------- 1 file changed, 44 insertions(+), 44 deletions(-)
scripts/publish-artefacts +44 -44
@@ -3,11 +3,11 @@ WORKDIR=$1 DEST=$2 target=$3 -md5sums(){ +sha256sums(){ dest=$1 - for x in `find $dest -maxdepth 5 -type f`; do - if [ ${x##*.} != md5sum ]; then - md5sum $x >> $x.md5sum + for x in `find $dest -maxdepth 5 -type f`; do + if [ ${x##*.} != sha256sum ]; then + sha256sum $x >> $x.sha256sum fi done }
@@ -18,7 +18,7 @@ case "$target" in "qemuarm"|"qemuarm64"|"qemumips64"|"qemumips"|"qemuppc"|"qemux86"|"qemux86-64"|"edgerouter"|"mpc8315e-rdb"|"genericx86"|"genericx86-64"|"beaglebone") mkdir -p $DEST/toolchain/i686 mkdir -p $DEST/toolchain/x86_64 - md5sums $TMPDIR/deploy/sdk + sha256sums $TMPDIR/deploy/sdk cp -R --no-dereference --preserve=links $TMPDIR/deploy/sdk/poky-*i686-core-image* $DEST/toolchain/i686 cp -R --no-dereference --preserve=links $TMPDIR/deploy/sdk/poky-*x86_64-core-image* $DEST/toolchain/x86_64 ;;
@@ -33,172 +33,172 @@ case "$target" in mkdir -p $DEST/buildtools mkdir -p $DEST/toolchain/i686 mkdir -p $DEST/toolchain/x86_64 - md5sums $TMPDIR/deploy/sdk + sha256sums $TMPDIR/deploy/sdk cp -R --no-dereference --preserve=links $TMPDIR/deploy/sdk/*buildtools* $DEST/buildtools cp -R --no-dereference --preserve=links $TMPDIR/deploy/sdk/i686-nativesdk-libc* $DEST/toolchain/i686 cp -R --no-dereference --preserve=links $TMPDIR/deploy/sdk/x86_64-nativesdk-libc* $DEST/toolchain/x86_64 ;; "qemuarm64") mkdir -p $DEST/machines/qemu/qemuarm64 - md5sums $TMPDIR/deploy/images/qemuarm64 + sha256sums $TMPDIR/deploy/images/qemuarm64 cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/qemuarm64/*qemuarm64* $DEST/machines/qemu/qemuarm64 cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/qemuarm64/*Image* $DEST/machines/qemu/qemuarm64 ;; "qemuarm") mkdir -p $DEST/machines/qemu/qemuarm - md5sums $TMPDIR/deploy/images/qemuarm + sha256sums $TMPDIR/deploy/images/qemuarm cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/qemuarm/*qemuarm* $DEST/machines/qemu/qemuarm cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/qemuarm/*Image* $DEST/machines/qemu/qemuarm ;; "beaglebone") mkdir -p $DEST/machines/beaglebone-yocto - md5sums $TMPDIR/deploy/images/beaglebone-yocto + sha256sums $TMPDIR/deploy/images/beaglebone-yocto cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/beaglebone-yocto/*Image* $DEST/machines/beaglebone-yocto cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/beaglebone-yocto/*u-boot* $DEST/machines/beaglebone-yocto cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/beaglebone-yocto/*beaglebone-yocto* $DEST/machines/beaglebone-yocto ;; "qemuarm-alt") mkdir -p $DEST/machines/qemu/qemuarm-lsb - md5sums $TMPDIR/deploy/images/qemuarm + sha256sums $TMPDIR/deploy/images/qemuarm cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/qemuarm/*qemuarm* $DEST/machines/qemu/qemuarm-lsb cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/qemuarm/*Image* $DEST/machines/qemu/qemuarm-lsb ;; "beaglebone-alt") mkdir -p $DEST/machines/beaglebone-yocto-lsb - md5sums $TMPDIR/deploy/images/beaglebone-yocto + sha256sums $TMPDIR/deploy/images/beaglebone-yocto cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/beaglebone-yocto/*Image* $DEST/machines/beaglebone-yocto-lsb cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/beaglebone-yocto/*u-boot* $DEST/machines/beaglebone-yocto-lsb cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/beaglebone-yocto/*beaglebone-yocto* $DEST/machines/beaglebone-yocto-lsb ;; "qemumips64") mkdir -p $DEST/machines/qemu/qemumips64 - md5sums $TMPDIR/deploy/images/qemumips64 + sha256sums $TMPDIR/deploy/images/qemumips64 cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/qemumips64/*qemumips64* $DEST/machines/qemu/qemumips64 ;; "qemumips") mkdir -p $DEST/machines/qemu/qemumips - md5sums $TMPDIR/deploy/images/qemumips + sha256sums $TMPDIR/deploy/images/qemumips cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/qemumips/*qemumips* $DEST/machines/qemu/qemumips ;; "edgerouter") mkdir -p $DEST/machines/edgerouter - md5sums $TMPDIR/deploy/images/edgerouter + sha256sums $TMPDIR/deploy/images/edgerouter cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/edgerouter/*edgerouter* $DEST/machines/edgerouter ;; "qemumips-alt") mkdir -p $DEST/machines/qemu/qemumips-lsb - md5sums $TMPDIR/deploy/images/qemumips + sha256sums $TMPDIR/deploy/images/qemumips cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/qemumips/*qemumips* $DEST/machines/qemu/qemumips-lsb ;; "edgerouter-alt") mkdir -p $DEST/machines/edgerouter-lsb - md5sums $TMPDIR/deploy/images/edgerouter + sha256sums $TMPDIR/deploy/images/edgerouter cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/edgerouter/*edgerouter* $DEST/machines/edgerouter-lsb ;; "qemuppc") mkdir -p $DEST/machines/qemu/qemuppc - md5sums $TMPDIR/deploy/images/qemuppc + sha256sums $TMPDIR/deploy/images/qemuppc cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/qemuppc/*qemuppc* $DEST/machines/qemu/qemuppc ;; "mpc8315e-rdb") mkdir -p $DEST/machines/mpc8315e-rdb - md5sums $TMPDIR/deploy/images/mpc8315e-rdb + sha256sums $TMPDIR/deploy/images/mpc8315e-rdb cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/mpc8315e-rdb/*mpc8315* $DEST/machines/mpc8315e-rdb ;; "qemuppc-alt") mkdir -p $DEST/machines/qemu/qemuppc-lsb - md5sums $TMPDIR/deploy/images/qemuppc + sha256sums $TMPDIR/deploy/images/qemuppc cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/qemuppc/*qemuppc* $DEST/machines/qemu/qemuppc-lsb ;; "mpc8315e-rdb-alt") mkdir -p $DEST/machines/mpc8315e-rdb-lsb - md5sums $TMPDIR/deploy/images/mpc8315e-rdb + sha256sums $TMPDIR/deploy/images/mpc8315e-rdb cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/mpc8315e-rdb/*mpc8315* $DEST/machines/mpc8315e-rdb-lsb ;; "wic") mkdir -p $DEST/machines/qemu/qemux86 - md5sums $TMPDIR/deploy/wic_images/qemux86 + sha256sums $TMPDIR/deploy/wic_images/qemux86 cp -R --no-dereference --preserve=links $TMPDIR/deploy/wic_images/qemux86/*/*/*.direct $DEST/machines/qemu/qemux86 - cp -R --no-dereference --preserve=links $TMPDIR/deploy/wic_images/qemux86/*/*/*.direct.md5sum $DEST/machines/qemu/qemux86 + cp -R --no-dereference --preserve=links $TMPDIR/deploy/wic_images/qemux86/*/*/*.direct.sha256sum $DEST/machines/qemu/qemux86 mkdir -p $DEST/machines/genericx86 - md5sums $TMPDIR/deploy/wic_images/genericx86 + sha256sums $TMPDIR/deploy/wic_images/genericx86 cp -R --no-dereference --preserve=links $TMPDIR/deploy/wic_images/genericx86/*/*/*.direct $DEST/machines/genericx86 - cp -R --no-dereference --preserve=links $TMPDIR/deploy/wic_images/genericx86/*/*/*.direct.md5sum $DEST/machines/genericx86 + cp -R --no-dereference --preserve=links $TMPDIR/deploy/wic_images/genericx86/*/*/*.direct.sha256sum $DEST/machines/genericx86 mkdir -p $DEST/machines/qemu/qemux86-64 - md5sums $TMPDIR/deploy/wic_images/qemux86-64 + sha256sums $TMPDIR/deploy/wic_images/qemux86-64 cp -R --no-dereference --preserve=links $TMPDIR/deploy/wic_images/qemux86-64/*/*/*.direct $DEST/machines/qemu/qemux86-64 - cp -R --no-dereference --preserve=links $TMPDIR/deploy/wic_images/qemux86-64/*/*/*.direct.md5sum $DEST/machines/qemu/qemux86-64 + cp -R --no-dereference --preserve=links $TMPDIR/deploy/wic_images/qemux86-64/*/*/*.direct.sha256sum $DEST/machines/qemu/qemux86-64 mkdir -p $DEST/machines/genericx86-64 - md5sums $TMPDIR/deploy/wic_images/genericx86-64 + sha256sums $TMPDIR/deploy/wic_images/genericx86-64 cp -R --no-dereference --preserve=links $TMPDIR/deploy/wic_images/genericx86-64/*/*/*.direct $DEST/machines/genericx86-64 - cp -R --no-dereference --preserve=links $TMPDIR/deploy/wic_images/genericx86-64/*/*/*.direct.md5sum $DEST/machines/genericx86-64 + cp -R --no-dereference --preserve=links $TMPDIR/deploy/wic_images/genericx86-64/*/*/*.direct.sha256sum $DEST/machines/genericx86-64 ;; "qemux86-64") mkdir -p $DEST/machines/qemu/qemux86-64 - md5sums $TMPDIR/deploy/images/qemux86-64 + sha256sums $TMPDIR/deploy/images/qemux86-64 cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/qemux86-64/*qemux86-64* $DEST/machines/qemu/qemux86-64 ;; "genericx86-64") mkdir -p $DEST/machines/genericx86-64 - md5sums $TMPDIR/deploy/images/genericx86-64 + sha256sums $TMPDIR/deploy/images/genericx86-64 cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/genericx86-64/*genericx86-64* $DEST/machines/genericx86-64 ;; "qemux86-64-alt") mkdir -p $DEST/machines/qemu/qemux86-64-lsb - md5sums $TMPDIR/deploy/images/qemux86-64 + sha256sums $TMPDIR/deploy/images/qemux86-64 cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/qemux86-64/*qemux86-64* $DEST/machines/qemu/qemux86-64-lsb ;; "genericx86-64-alt") mkdir -p $DEST/machines/genericx86-64-lsb - md5sums $TMPDIR/deploy/images/genericx86-64 + sha256sums $TMPDIR/deploy/images/genericx86-64 cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/genericx86-64/*genericx86-64* $DEST/machines/genericx86-64-lsb ;; "nightly-x86-64-bsp") rm -rf $DEST/$target/images/intel-corei7-64/* mkdir -p $DEST/$target/images/intel-corei7-64 - md5sums $TMPDIR/deploy/images/intel-corei7-64 + sha256sums $TMPDIR/deploy/images/intel-corei7-64 cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/intel-corei7-64/bzImage* $DEST/$target/images/intel-corei7-64 cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/intel-corei7-64/*core-image-sato-sdk-intel-corei7-64*tar* $DEST/$target/images/intel-corei7-64 cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/intel-corei7-64/*modules-* $DEST/$target/images/intel-corei7-64 ;; "qemux86") mkdir -p $DEST/machines/qemu/qemux86 - md5sums $TMPDIR/deploy/images/qemux86 + sha256sums $TMPDIR/deploy/images/qemux86 cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/qemux86/*qemux86* $DEST/machines/qemu/qemux86 ;; "genericx86") mkdir -p $DEST/machines/genericx86 - md5sums $TMPDIR/deploy/images/genericx86 + sha256sums $TMPDIR/deploy/images/genericx86 cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/genericx86/*genericx86* $DEST/machines/genericx86 ;; "qemux86-alt") mkdir -p $DEST/machines/qemu/qemux86-lsb - md5sums $TMPDIR/deploy/images/qemux86 + sha256sums $TMPDIR/deploy/images/qemux86 cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/qemux86/*qemux86* $DEST/machines/qemu/qemux86-lsb ;; "genericx86-alt") mkdir -p $DEST/machines/genericx86-lsb - md5sums $TMPDIR/deploy/images/genericx86 + sha256sums $TMPDIR/deploy/images/genericx86 cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/genericx86/*genericx86* $DEST/machines/genericx86-lsb ;; "poky-tiny") mkdir -p $DEST/machines/qemu/qemu-tiny - md5sums $TMPDIR/deploy/images/qemux86 + sha256sums $TMPDIR/deploy/images/qemux86 cp -R --no-dereference --preserve=links $TMPDIR/deploy/images/qemux86/*qemux86* $DEST/machines/qemu/qemu-tiny ;; "eclipse-plugin-neon") DIR=$WORKDIR/../scripts - # create md5sums only for the zip files - for x in `ls $DIR/*.zip`; do md5sum $x >> $x.md5sum; done + # create sha256sums only for the zip files + for x in `ls $DIR/*.zip`; do sha256sum $x >> $x.sha256sum; done mkdir -p $DEST/eclipse-plugin/neon - cp --no-dereference --preserve=links $DIR/org.*.zip $DIR/org.*.md5sum $DEST/eclipse-plugin/neon + cp --no-dereference --preserve=links $DIR/org.*.zip $DIR/org.*.sha256sum $DEST/eclipse-plugin/neon ;; "eclipse-plugin-oxygen") DIR=$WORKDIR/../scripts - # create md5sums only for the zip files - for x in `ls $DIR/*.zip`; do md5sum $x >> $x.md5sum; done + # create sha256sums only for the zip files + for x in `ls $DIR/*.zip`; do sha256sum $x >> $x.sha256sum; done mkdir -p $DEST/eclipse-plugin/oxygen - cp --no-dereference --preserve=links $DIR/org.*.zip $DIR/org.*.md5sum $DEST/eclipse-plugin/oxygen + cp --no-dereference --preserve=links $DIR/org.*.zip $DIR/org.*.sha256sum $DEST/eclipse-plugin/oxygen ;; esac
Signature · 1 line
2.25.1
PATCH 31/40 publish-artefacts: Improve sha256 checksum handling
In reply to Richard PurdieFrom: "Tummalapalli, Vineela" <[email protected]>
The existing checksum files were encoding full paths. This patch changes this to use just the filename which allows relocation of the directories and is more appropriate for sharing over http.
--- scripts/publish-artefacts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
scripts/publish-artefacts +8 -4
@@ -5,10 +5,14 @@ target=$3 sha256sums(){ dest=$1 - for x in `find $dest -maxdepth 5 -type f`; do - if [ ${x##*.} != sha256sum ]; then - sha256sum $x >> $x.sha256sum - fi + for x in `find -L $dest -maxdepth 5 -type f`; do + for w in $x;do + if [ ${w##*.} != sha256sum ]; then + shasum=`sha256sum $w | awk '{print $1}'` + filename=${w##*/} + echo $shasum $filename >> $w.sha256sum + fi + done done }
Signature · 1 line
2.25.1
PATCH 32/40 scripts/utils.py: Convert md5sum to sha256sum for layer tarballs
In reply to Richard PurdieFrom: Vineela <[email protected]>
--- scripts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/utils.py +1 -1
@@ -251,7 +251,7 @@ def publishrepo(clonedir, repo, publishdir): revision = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=sharedrepo).decode('utf-8').strip() archive_name = repo + "-" + revision + ".tar.bz2" subprocess.check_call("git archive --format=tar HEAD --prefix=" + repo + "/ | bzip2 -c > " + archive_name, shell=True, cwd=sharedrepo) - subprocess.check_call("md5sum " + archive_name + " >> " + archive_name + ".md5sum", shell=True, cwd=sharedrepo) + subprocess.check_call("sha256sum " + archive_name + " >> " + archive_name + ".sha256sum", shell=True, cwd=sharedrepo) mkdir(publishdir) subprocess.check_call("rsync -av " + archive_name + "* " + publishdir, shell=True, cwd=sharedrepo)
Signature · 1 line
2.25.1
PATCH 33/40 build-perf/send-qa-email: Fallback to master as a comparision branch
In reply to Richard Purdie--- scripts/build-perf-test-wrapper | 3 +++ scripts/send-qa-email | 3 +++ 2 files changed, 6 insertions(+)
scripts/build-perf-test-wrapper +3 -0
@@ -185,6 +185,9 @@ if git_repo: basebranch, comparebranch = utils.getcomparisonbranch(ourconfig, args.repo, args.branch) if comparebranch: extraopts = extraopts + " --branch2 %s" % (comparebranch) + else: + print("No comparision branch found, comparing to master") + extraopts = extraopts + " --branch2 master" print("\nGenerating test report") open(report_txt, "w").close()
scripts/send-qa-email +3 -0
@@ -54,6 +54,9 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir: extraopts = " --branch %s --commit %s" % (branch, revision) if comparebranch: extraopts = extraopts + " --branch2 %s" % (comparebranch) + elif basebranch: + print("No comparision branch found, comparing to master") + extraopts = extraopts + " --branch2 master" report = subprocess.check_output([resulttool, "report", args.results_dir]) with open(args.results_dir + "/testresult-report.txt", "wb") as f:
Signature · 1 line
2.25.1
PATCH 34/40 send-qa-email: Fix stable branch test result history issues
In reply to Richard PurdieOn stable release branch builds, it will clone "master" since comparebranch is None. It will then fail to push since there is already a dunfell branch upstream with changes on which it needs to rebase on top of. The change to use shallow clones significantly increases this problem.
To fix this, fall back to cloning basebranch by name, then master if it doesn't exist.
--- scripts/send-qa-email | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-)
scripts/send-qa-email +12 -3
@@ -55,8 +55,8 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir: if comparebranch: extraopts = extraopts + " --branch2 %s" % (comparebranch) elif basebranch: - print("No comparision branch found, comparing to master") - extraopts = extraopts + " --branch2 master" + print("No comparision branch found, comparing to %s" % basebranch) + extraopts = extraopts + " --branch2 %s" % basebranch report = subprocess.check_output([resulttool, "report", args.results_dir]) with open(args.results_dir + "/testresult-report.txt", "wb") as f:
@@ -64,7 +64,16 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir: tempdir = tempfile.mkdtemp(prefix='sendqaemail.') try: - subprocess.check_call(["git", "clone", "[email protected]:yocto-testresults", tempdir, "--depth", "5"]) + cloneopts = [] + if comparebranch: + cloneopts = ["--branch", comparebranch] + elif basebranch: + cloneopts = ["--branch", basebranch] + try: + subprocess.check_call(["git", "clone", "[email protected]:yocto-testresults", tempdir, "--depth", "5"] + cloneopts) + except subprocess.CalledProcessError: + print("No comparision branch found, falling back to master") + subprocess.check_call(["git", "clone", "[email protected]:yocto-testresults", tempdir, "--depth", "5"]) # If the base comparision branch isn't present regression comparision won't work # at least until we can tell the tool to ignore internal branch information
Signature · 1 line
2.25.1
PATCH 35/40 scripts/utils: Ensure buildtools tarball hash matches any supplied value
In reply to Richard Purdie--- scripts/utils.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
scripts/utils.py +26 -0
@@ -368,6 +368,25 @@ def getcomparisonbranch(ourconfig, reponame, branchname): return branchname, None return None, None +def sha256_file(filename): + """ + Return the hex string representation of the 256-bit SHA checksum of + filename. + """ + import hashlib + import mmap + + method = hashlib.sha256() + with open(filename, "rb") as f: + try: + with mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) as mm: + for chunk in iter(lambda: mm.read(8192), b''): + method.update(chunk) + except ValueError: + # You can't mmap() an empty file so silence this exception + pass + return method.hexdigest() + def setup_buildtools_tarball(ourconfig, workername, btdir): bttarball = None if "buildtools" in ourconfig and workername:
@@ -379,6 +398,9 @@ def setup_buildtools_tarball(ourconfig, workername, btdir): btenv = None if bttarball: + sha256 = None + if ";" in bttarball: + bttarball, sha256 = bttarball.split(";") btdir = os.path.abspath(btdir) if not os.path.exists(btdir): btdlpath = getconfig("BASE_SHAREDDIR", ourconfig) + "/buildtools/" + os.path.basename(bttarball)
@@ -391,6 +413,10 @@ def setup_buildtools_tarball(ourconfig, workername, btdir): with open(btlock, 'a+') as lf: fileno = lf.fileno() fcntl.flock(fileno, fcntl.LOCK_EX) + if sha256 and os.path.exists(btdlpath): + dl_sha256 = sha256_file(btdlpath) + if dl_sha256 != sha256: + os.unlink(btdlpath) if not os.path.exists(btdlpath): if bttarball.startswith("/"): subprocess.check_call(["cp", bttarball, btdlpath])
Signature · 1 line
2.25.1
PATCH 36/40 config.json: Use thud created buildtools-extended-tarball
In reply to Richard Purdie--- config.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
config.json +14 -0
@@ -8,6 +8,9 @@ "BUILD_HISTORY_DIRECTPUSH" : ["poky:morty", "poky:pyro", "poky:rocko", "poky:sumo", "poky:thud", "poky:master"], "BUILD_HISTORY_FORKPUSH" : {"poky-contrib:ross/mut" : "poky:master", "poky:master-next" : "poky:master"}, + "BUILDTOOLS_URL" : "/srv/autobuilder/autobuilder.yoctoproject.org/pub/non-release/20200909-7/buildtools/x86_64-buildtools-nativesdk-standalone-2.6.4.sh;233bc5da08cf4d7044cdb500c896e9ccdae9debc550784d5a5a756849c4bc8c1", + "BUILDTOOLS_URL_EXT" : "/srv/autobuilder/autobuilder.yoctoproject.org/pub/non-release/20200909-7/buildtools/x86_64-buildtools-extended-nativesdk-standalone-2.6.4.sh;23ebf9b3ee97fc0351ea1952077664bec06fa27e716c3c4d8d9ef7f12662063d", + "REPO_STASH_DIR" : "${BASE_HOMEDIR}/git/mirror", "TRASH_DIR" : "${BASE_HOMEDIR}/git/trash",
@@ -816,5 +819,16 @@ "branch" : "master", "revision" : "HEAD" } + }, + "buildtools" : { + "debian8*" : "${BUILDTOOLS_URL}", + "centos7*" : "${BUILDTOOLS_URL}", + "centos8*" : "${BUILDTOOLS_URL_EXT}", + "debian10*" : "${BUILDTOOLS_URL_EXT}", + "tumbleweed*" : "${BUILDTOOLS_URL_EXT}", + "fedora31*" : "${BUILDTOOLS_URL_EXT}", + "fedora32*" : "${BUILDTOOLS_URL_EXT}", + "perf-centos7*" : "${BUILDTOOLS_URL}", + "perf-ubuntu1604*" : "${BUILDTOOLS_URL}" } }
Signature · 1 line
2.25.1
PATCH 37/40 config.json: Build buildtools-extended-tarball for x86_64 and aarch64
In reply to Richard Purdie--- config.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
config.json +2 -2
@@ -493,7 +493,7 @@ "MACHINE" : "qemux86-64", "step1" : { "SDKMACHINE" : "x86_64", - "BBTARGETS" : "buildtools-tarball uninative-tarball" + "BBTARGETS" : "buildtools-tarball buildtools-extended-tarball uninative-tarball" }, "step2" : { "SDKMACHINE" : "i686",
@@ -501,7 +501,7 @@ }, "step3" : { "SDKMACHINE" : "aarch64", - "BBTARGETS" : "uninative-tarball" + "BBTARGETS" : "buildtools-tarball buildtools-extended-tarball uninative-tarball" } }, "build-appliance" : {
Signature · 1 line
2.25.1
PATCH 38/40 scripts/send-qa-email: Update to dedicated push capable domain
In reply to Richard PurdieFrom: Michael Halstead <[email protected]>
--- scripts/send-qa-email | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/send-qa-email +2 -2
@@ -70,10 +70,10 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir: elif basebranch: cloneopts = ["--branch", basebranch] try: - subprocess.check_call(["git", "clone", "[email protected]:yocto-testresults", tempdir, "--depth", "5"] + cloneopts) + subprocess.check_call(["git", "clone", "[email protected]:yocto-testresults", tempdir, "--depth", "5"] + cloneopts) except subprocess.CalledProcessError: print("No comparision branch found, falling back to master") - subprocess.check_call(["git", "clone", "[email protected]:yocto-testresults", tempdir, "--depth", "5"]) + subprocess.check_call(["git", "clone", "[email protected]:yocto-testresults", tempdir, "--depth", "5"]) # If the base comparision branch isn't present regression comparision won't work # at least until we can tell the tool to ignore internal branch information
Signature · 1 line
2.25.1
PATCH 39/40 scripts/utils: Add more logging for fetchgitrepo
In reply to Richard Purdie--- scripts/utils.py | 4 ++++ 1 file changed, 4 insertions(+)
scripts/utils.py +4 -0
@@ -232,13 +232,17 @@ def fetchgitrepo(clonedir, repo, params, stashdir): sharedrepo = "%s/%s" % (clonedir, repo) branch = params["branch"] revision = params["revision"] + print("Checking for stash at: " + stashdir + "/" + repo) if os.path.exists(stashdir + "/" + repo): + print("Cloning from stash to %s..." % sharedrepo) subprocess.check_call(["git", "clone", "file://%s/%s" % (stashdir, repo), "%s/%s" % (clonedir, repo)]) subprocess.check_call(["git", "remote", "rm", "origin"], cwd=sharedrepo) subprocess.check_call(["git", "remote", "add", "origin", params["url"]], cwd=sharedrepo) + print("Updating from origin...") subprocess.check_call(["git", "fetch", "origin"], cwd=sharedrepo) subprocess.check_call(["git", "fetch", "origin", "-t"], cwd=sharedrepo) else: + print("Cloning from origin to %s..." % sharedrepo) subprocess.check_call(["git", "clone", params["url"], sharedrepo]) subprocess.check_call(["git", "checkout", branch], cwd=sharedrepo)
Signature · 1 line
2.25.1
PATCH 40/40 scripts/utils: Ensuring new logging is flushed from buffers
In reply to Richard Purdie--- scripts/utils.py | 6 ++++++ 1 file changed, 6 insertions(+)
scripts/utils.py +6 -0
@@ -233,18 +233,24 @@ def fetchgitrepo(clonedir, repo, params, stashdir): branch = params["branch"] revision = params["revision"] print("Checking for stash at: " + stashdir + "/" + repo) + flush() if os.path.exists(stashdir + "/" + repo): print("Cloning from stash to %s..." % sharedrepo) + flush() subprocess.check_call(["git", "clone", "file://%s/%s" % (stashdir, repo), "%s/%s" % (clonedir, repo)]) subprocess.check_call(["git", "remote", "rm", "origin"], cwd=sharedrepo) subprocess.check_call(["git", "remote", "add", "origin", params["url"]], cwd=sharedrepo) print("Updating from origin...") + flush() subprocess.check_call(["git", "fetch", "origin"], cwd=sharedrepo) subprocess.check_call(["git", "fetch", "origin", "-t"], cwd=sharedrepo) else: print("Cloning from origin to %s..." % sharedrepo) + flush() subprocess.check_call(["git", "clone", params["url"], sharedrepo]) + print("Updating checkout...") + flush() subprocess.check_call(["git", "checkout", branch], cwd=sharedrepo) # git reset revision==HEAD won't help, we need to reset onto the potentially fetched origin branch subprocess.check_call(["git", "reset", "origin/" + branch, "--hard"], cwd=sharedrepo)
Signature · 1 line
2.25.1