aboutsummaryrefslogtreecommitdiff
path: root/node
AgeCommit message (Collapse)Author
2021-03-11prepare_build_config.py: fix the str object has no attribute decode errorHEADmasterYongqin Liu
which was reported like the following: 12:04:37 + /home/buildslave/srv/aosp-master/build-tools/build-scripts/../node/prepare_build_config.py 'MANIFEST_REPO=https://android.googlesource.com/platform/manifest.git 12:04:37 MANIFEST_BRANCH=master 12:04:37 MAKE_JOBS=16 12:04:37 MAKE_TARGETS="dist" 12:04:37 MANIFEST_FILENAME=default.xml 12:04:37 LUNCH=hikey960-userdebug 12:04:37 TARGET_PRODUCT=hikey960 12:04:37 TARGET_SIMULATOR=false 12:04:37 USE_CLANG_PLATFORM_BUILD=true 12:04:37 SKIP_LICENSE_CHECK=1 12:04:37 REWRITE_MANIFEST=0' 12:04:37 Traceback (most recent call last): 12:04:37 File "/home/buildslave/srv/aosp-master/build-tools/build-scripts/../node/prepare_build_config.py", line 123, in <module> 12:04:37 main(args[0], options.base64) 12:04:37 File "/home/buildslave/srv/aosp-master/build-tools/build-scripts/../node/prepare_build_config.py", line 115, in main 12:04:37 config = convert_config_to_shell(config_in, BUILD_CONFIG_FILE) 12:04:37 File "/home/buildslave/srv/aosp-master/build-tools/build-scripts/../node/prepare_build_config.py", line 93, in convert_config_to_shell 12:04:37 for l in config_text.decode().split("\n"): 12:04:37 AttributeError: 'str' object has no attribute 'decode' by making the config_text passed in a str type for both the base64 and non-base64 cases Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Change-Id: I84c7ffabc1a2b6cf035767a6195d6fe53ff5d4cf
2021-01-04prepare_build_config.py: add support for python3Yongqin Liu
to resolve the syntax error reported like the following: 09:50:06 + /home/buildslave/srv/r-lcr-oreo/build-tools/build-scripts/../node/prepare_build_config.py --base64 QlVJTERfQ09ORklHX1JFUE89aHR0cDovL2FuZHJvaWQtZ2l0LmxpbmFyby5vcmcvZ2l0L2FuZHJvaWQtYnVpbGQtY29uZmlncy5naXQKQlVJTERfQ09ORklHX0JSQU5DSD1tYXN0ZXIK 09:50:06 Traceback (most recent call last): 09:50:06 File "/home/buildslave/srv/r-lcr-oreo/build-tools/build-scripts/../node/prepare_build_config.py", line 123, in <module> 09:50:06 main(args[0], options.base64) 09:50:06 File "/home/buildslave/srv/r-lcr-oreo/build-tools/build-scripts/../node/prepare_build_config.py", line 115, in main 09:50:06 config = convert_config_to_shell(config_in, BUILD_CONFIG_FILE) 09:50:06 File "/home/buildslave/srv/r-lcr-oreo/build-tools/build-scripts/../node/prepare_build_config.py", line 93, in convert_config_to_shell 09:50:06 for l in config_text.split("\n"): 09:50:06 TypeError: a bytes-like object is required, not 'str' Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Change-Id: Iea0e56cae01a3ae1a6552151a4cea8ca682dc3b1
2020-12-28prepare_build_config.py: update print to support python3Yongqin Liu
for syntax error reported like the following: 12:26:34 + /home/buildslave/srv/aosp-master/build-tools/build-scripts/../node/prepare_build_config.py --base64 QlVJTERfQ09ORklHX1JFUE89aHR0cDovL2FuZHJvaWQtZ2l0LmxpbmFyby5vcmcvZ2l0L2FuZHJvaWQtYnVpbGQtY29uZmlncy5naXQKQlVJTERfQ09ORklHX0JSQU5DSD1tYXN0ZXIK 12:26:34 File "/home/buildslave/srv/aosp-master/build-tools/build-scripts/../node/prepare_build_config.py", line 98 12:26:34 print "Invalid build config syntax: " + l 12:26:34 ^ 12:26:34 SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Invalid build config syntax: " + l)? Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Change-Id: Ia731a105ffcb3ff1f6e05948fd11d56ef822858c
2016-11-10fix typoVishal Bhoj
Change-Id: Ie2b235c26a2727db069fb692326cdeb68d810f21 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2016-11-10gerrit trigger: handle changes to android-build-configsVishal Bhoj
configs are not part of manifest hence these need to be handled before parsing the variables. Change-Id: I6bedd35e4b8bfcb219ca9ece1f958f7d9f052a2b Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2016-04-18disable slave type checkVishal Bhoj
We no more do restricted builds on a separate jenkins instance. This check was very android-build.linaro.org jenkins instance specific in the way it tried to check the restricted build which breaks things on jobs on ci.linaro.org hence removing this part of the code. Change-Id: Id40b9e014f319a20d98977cc39ce7b8a261df198 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2015-11-18reuse the out dir if presentVishal Bhoj
Change-Id: I535b49d7c98324c798c91f92514baa94c8d9e407 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2015-07-20node/build: Follow redirects when downloading repo tool.Paul Sokolovsky
Default curl behavior of not following redirects breaks infrastructure upgrades, etc. Change-Id: I1bc6006694aa9dd7da61aebacc4a6e466222d27c
2015-07-20Fix repo URLVishal Bhoj
Change-Id: I897d7e9a1f37e3299a6dad9fe5ea5fa17b477370 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2015-04-29Update premerge-ci configs for gerrit triggersVishal Bhoj
Change-Id: Ia109a8fc53350e6f0455a22032b0bf29c0cead7d Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2015-04-08Switch to official build-config repoVishal Bhoj
Change-Id: Iaac5c07639ec429044433fa72c779455f47cf95b Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2015-03-31Switch support to gerrit trigger pluginVishal Bhoj
Change-Id: I1707eda179aadde44db598cde6582701fdd6eeb3 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2014-12-03prepare_build_config.py: Use reliable (external) way to check for EC2.Paul Sokolovsky
Previously, there was a test where to put file being created based on this file existing. Change-Id: I3cfcd610426c1713eaeb0f07979a6337fea79780
2014-12-03Add support to build on VPSVishal Bhoj
Change-Id: I5ee21bb42ccee882de3c852014e7a78d52e424c8 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2014-11-14setup-build-android: Disable ubuntu repos S3 workaround.Paul Sokolovsky
This used to make package fetching more robust, but now just breaks installation - apparently, indexes are stale. Change-Id: I878114b1ddf6a6d963cbc2c6946a49da0e3a19d8
2014-11-14setup-build-android: Move away more old packages.Paul Sokolovsky
Change-Id: I5b723eb41daa94bb0602324b194c57cf2d7f566a
2014-11-14setup-build-android: Update package list for Ubuntu 14.04.Paul Sokolovsky
Change-Id: I3a8bb3ec2e7e3b3a6e4199127f173d69b2f053c5
2014-11-14After switch to Oracle JDK, set java-6-oracle as default (instead of *-sun).Paul Sokolovsky
Change-Id: Idbccf0e949958d530d91c8cb938f2e6e2e4fd0cb
2014-11-14setup-build-android: Install Oracle Java6 package instead of Sun ones.Paul Sokolovsky
Upgrading to Ubuntu 14.04, historical Sun release of JDK 6 no longer can be installed (it conflicts with "apt"). So, switch to recommended way to install Oracle JDK 6. In teh process, refactor license acceptance code a bit. Change-Id: I29fce39c601d093990106a83286fdce697af5b6f
2014-11-11setup-build-android: add to install python-mako moduleYongqin Liu
install the python-mako module on the build slave to compile the piglit project, since the piglit project needs to use this python-mako module to generate some c file and c header files Change-Id: Ibba681666c9284ade64e5194f6730aea83fcd523 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2014-08-08setup-build-android: Install fresh tar from Linaro PPA.Paul Sokolovsky
Change-Id: Id492dccc6779394c027a8b2a7b082ab4b2e4ea8f
2014-08-07Merge "Allow mounting,unmounting partition image files for jenkins-build ↵Fathi Boudra
user and archiving the same."
2014-08-07Allow mounting,unmounting partition image files for jenkins-build user and ↵Vishal Bhoj
archiving the same. This is needed to unpack and repack the image into a tarball. Change-Id: I226e3f98c323542cfa8cc82bff1875cb071c9db3 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2014-07-16Treat projectara-software-dev owned builds as restricted.Paul Sokolovsky
Change-Id: Ief162d697e299a67a68c2c8e9730fe01bdfd9710
2014-06-15Fix REPO_TOOL_URL. The location has changed from http:// to https://Vishal Bhoj
Change-Id: I05c425245e5b67aaf664546ea6744a9424b2cab7 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2014-05-23Update path to update-java-alternatives.Paul Sokolovsky
Change-Id: I7117034a49b901998fde987033bd6c6a84f2ffae
2014-05-23Allow to select java version fot build using USE_JAVA_6 or USE_JAVA_7 vars.Paul Sokolovsky
Change-Id: I5ea2bf75bd0900fae5f1df0e5611ec0be1277c3f
2014-05-23Set java6 as default after all, as that's what most builds require so far.Paul Sokolovsky
Change-Id: If2a8a0ec064d2d780e98c40b74d2a1c403c8191b
2014-05-23Fix java deployment name for update-java-alternatives.Paul Sokolovsky
Change-Id: I94692b829cf7c488578e19c70b3932216746d30f
2014-05-23Reinstate installing java6-sun, but set java7 as default.Paul Sokolovsky
Change-Id: Iee31a977ccf65238dba95b112a229d4a346cd96d
2014-05-20Install openjdk-7 be default.Milo Casagrande
* AOSP now needs openjdk-7 to compile. Change-Id: Ifc8828b64f20c02e605022aea5219e52cfb73905
2014-01-27Add libmpfr-dev package, trying to resolve gcc build failures.Paul Sokolovsky
Change-Id: I1941b7bb3f3f75c506e7ee58ccba74220cb34788
2014-01-03There should be one and only BUILD-INFO.txt per build.Paul Sokolovsky
Change-Id: I890772a5cba42e339ec99e17b21b144785a69998
2013-11-26Add acpica-tools which is a dependency for UEFI nowVishal Bhoj
2013-10-04Update repo tool to the latestGeorgy Redkozubov
2013-08-22Don't match slave type on exact OS release.Paul Sokolovsky
2013-08-16Replace lib32readline5-dev with lib32readline-gplv2-dev for precise.Paul Sokolovsky
2013-08-16lp:1212474 Install SVN on android builders.Paul Sokolovsky
2013-06-03Add build type build-android-testsuite-restrictedAxel Fagerstedt
2013-05-10Update restrictedness checks to handle multiple restricted groups.Paul Sokolovsky
2013-04-23Workaround BUILD-INFO.txt merging issuesGeorgy Redkozubov
2013-04-17build type name changedAxel Fagerstedt
2013-04-09Add build type build-testsuite-restrictedAxel Fagerstedt
2013-01-28lp:1099901: Add also autoconf & autoconf to Android build image.Paul Sokolovsky
2013-01-18[bug #1099901] Install libtool on build slaves.Paul Sokolovsky
2013-01-09Add new build type: build-android-toolchain-linaro-restricted .Paul Sokolovsky
2012-10-10Further adjustments for permission skew in ec2 plugin 1.17 .Paul Sokolovsky
2012-10-10chown build*, required for ec2 plugin 1.17 upgrade.Paul Sokolovsky
2012-08-24ramdisk_size defaults to 0James Tunnicliffe
2012-08-07USe -y for apt-get install linaro-image-toolsPaul Sokolovsky