aboutsummaryrefslogtreecommitdiff
path: root/src/com/android/tradefed/build
AgeCommit message (Collapse)Author
2017-09-21Allow and support <include> inside <device> am: 66ea8af92ajdesprez
am: 8b7d583989 Change-Id: I2efe0817b356345f9b5429ba2e3236c85d78349b
2017-09-21Allow and support <include> inside <device>jdesprez
With more multi devices use cases, it has become convenient to be able to supply and <include> inside a <device> tag for shared boilerplate configs. Adding support for it. Test: unit tests Bug: 65154867 Change-Id: Ib0df72520749314720129a58247afdcd817db3e9
2017-08-09Merge "Fix the bootstrap tests dir to be not null" into oc-dev am: 6bfd87e976Julien Desprez
am: a257c3add1 Change-Id: I7d2a172a6f08caf098faae34dc0e742462a5dc7f
2017-08-08Fix the bootstrap tests dir to be not nulljdesprez
Fix forrest local use cases where we copy the env variable to the tests dir of the build. Test: unit tests, ./tradefed.sh run commandAndExit template/local_min --template:map test=HelloWorldTests Bug: 64399010 Change-Id: I16225003d33fb4cda1569ebdb15da3c8fbe52ada
2017-07-13Ensure OtatoolsBuildInfo is created with buildId.GuangHui Liu
Bug: 63680973 Test: build TF locally and run asit/ota/releasetools_test_all with Forrest. Verify results were uploaded to BlackBox. Change-Id: I708380642293eea1cea25dcd40870575f6358794
2017-07-07Fix serial warningsjdesprez
add the serial uid to fix the warning. Test: local build, unit tests Bug: 63130761 Change-Id: I2791fcaa27faee5fe9a6c6268beb3ff5c572b5f0
2017-06-19Make IBuildInfo serializablejdesprez
Ensure IBuildInfo can be serialized via standard java mechanism so it could be passed to a subprocess and re-loaded there. Test: unit tests Bug: 62720644 Change-Id: I2aeda0c43b5f3f5f8b34ba9ba78fe1a2cc2b7482
2017-06-16Added getFiles method to DeviceFolderBuildInfoJustin Giorgi
Base BuildInfo class is missing device images. Test: Unit test on new method. Bug: b/62223650, b/30815281 Change-Id: Ib63affc488f7c3f231083470da33ff9f25abb998 (cherry picked from commit 8f92eff05258604b253719aa7892079911261890)
2017-06-02DO NOT MERGE: Copy TF master to oc-devjdesprez
Drop master in oc-dev to sync them Test: build tf, pass unit tests Bug: 37211399 Change-Id: Id4f37b037c54f3532fcc19c42b19f69ec117a608
2017-04-21detect existence of Android build tree in LocalDeviceBuildProviderGuang Zhu
Bug: 37421909 Test: tested as part of the gerrit topc Change-Id: I72f8080c002b4109aae17a0d266d8606115d4865
2017-03-02Enforce some basic error prone build rulesJulien Desprez
Start enforcing some basic build rules against TF AOSP for starter. - Fix the string format issue. Test: error prone run Bug: 35864476 Change-Id: Ia6bb9a7acd6883e1240bf83f5451e66b3298c6f8
2017-02-21Fix NPE with cluster invocation and reporterJulien Desprez
- Robustness for invocationComplete callback to ensure FreeDeviceHandler is called. - Use StubBuildProvider to simulate no build to test. Test: unit tests, func tests Bug: 35358410 Change-Id: I951b5aaab53349c9363fde3a7ac028fd077b35b9
2017-02-13Add a reference to baseline build for OtaDeviceBuildInfoJed Estep
Bug: 33778769 Change-Id: I7d44eed8d87249a201e8fa6cbb8f24ee4ab4c216
2017-02-07Fix FileDownloadCacheJulien Desprez
A new File instance was created in some cases resulting in the synchronized block being ignored. Parallel download attemp of the same file would cause issue Test: unit, func, manual sharding of several tests Bug: 35029523 Change-Id: I45629ac08c6f1a899a09f5459608604a7f60a147
2017-01-27Ensure file download cache is cleanedJulien Desprez
When RuntimeException occurs, ensure that we still clean the cache of downloads to ensure future download will properly occur. Test: unit tests Bug: 34757055 Change-Id: I9075676af85b752b1b298d15ba96dbd350aef699
2016-12-21Use FlashingResourcesParser to get bootloader and baseband versions forKevin Lau Fang
local builds. Change-Id: Ifbe219d430788cf00fd8950b2b21e84ee9612f1f
2016-12-19Clean some code base usageJulien Desprez
Bug: 32101899 Change-Id: If900a38f79dfebd709eb7b0ced573a6ebf047570
2016-12-19Merge "Address some code base usage"Julien Desprez
2016-12-14Address some code base usageJulien Desprez
- close utility - cancel utility - deleteFile utility - logging of stacks Bug: 32101899 Change-Id: Id988f12ae6d05456cac3a397c01059b81cf64b02
2016-12-13Continue to retire test-tag where unnecessaryJulien Desprez
Bug: 19801407 Change-Id: I73b422d8c0e150e3a226a0e6d7039aa60951cb22
2016-12-02Address some TF unit tests flaky at low rateJulien Desprez
Couple of TF unit tests are flaky at very low rates, probably due to machine being busy sometimes. Bug: 32300769 Change-Id: Ie4776201c4249d31a14b8d60ea54f03a0d8fdc14
2016-11-22Merge "Add a toString() method to BuildInfo"Julien Desprez
2016-11-21Merge "Adapt the local build provider to handle non-zipped image files."Kevin Lau Fang
2016-11-18Merge "Reduce usage of BuildInfo test tag where unnecessary"Julien Desprez
2016-11-16Add a toString() method to BuildInfoJulien Desprez
Allow a standard printing of build info with the fields that are available. Bug: 32863157 Change-Id: Iaee90091b5096a6f41264bc80cafa59c28b007b3
2016-11-14Adapt the local build provider to handle non-zipped image files.Kevin Lau Fang
This allows handling build artifacts built locally through the `make` command. In addition, it also allows specifying a test directory outside of the build directory (keeping backwards compatibility). Test: Built master. Ran a TF template that uses LocalDeviceBuildProvider and GoogleDeviceFlashPreparer with the output folder as the build-dir. Verified the build was flashed into the device. Change-Id: I2c0319d8134ded5799e463ab95b1c7c9f073d65e
2016-11-10Fix more of the docs related warningsJulien Desprez
Test: build, unit tests Bug: 32651845 Change-Id: I05d9c1103cfa522fe63dcbdb12e996b779268e30
2016-11-01Reduce usage of BuildInfo test tag where unnecessaryJulien Desprez
Bug: 19801407 Change-Id: I6605a430c9d586849c2f252bfd8d352fd5ace0f9
2016-10-07Correctly report various build metrics from OtaDeviceBuildInfoJed Estep
Test: run an OTA test Bug: 32004496 Change-Id: Icddd59ba97182d4448bf4bfb8795d9d2c21c51c1
2016-10-03Target build should never be used to flash the deviceKane Ho
Change-Id: I40f6ec1b5cf509175731773cec4b4baaba287006
2016-09-30Rename setDowngrade -> setReportTargetBuildJed Estep
Test: mm -j32 Change-Id: Ic3fb7d45425f8720411112d40920c50aae3f46d2
2016-09-27Enable OTA build info to report its target buildJed Estep
For some OTA tests, the instance of OtaDeviceBuildInfo needs to report its 'primary' build as the target build rather than the source build. Bug: 31777654 Change-Id: I6ed7f93e558fe740d85b2bbe1c91e6064c40e177
2016-07-28Generalize test-tag usageJulien Desprez
If test-tag was set by build_provider then we don't override it in TestInvocation for now. Bug: 19801407 Change-Id: I4ac59af6bbebe9a30a47b35d833336935645bc0b
2016-07-26Revert "Generalize test-tag usage"Tsu Chiang Chuang
This reverts commit 5ff0aef7601db865ce69a9d4917848f64f79d651. Change-Id: I03dde313571bae0249f58754debac2f0f8b4e2e3
2016-07-20Generalize test-tag usageJulien Desprez
Open the test-tag concept to the invocation and not only the build_provider. Bug: 19801407 Change-Id: I2a6da6e06b5f6c568215b4a913d9b40c96349749
2016-07-04Fix project warnings for easier readabilityJulien Desprez
Fix imports, javadocs, exception warnings to improve the readability of the project in IDE. Bug: 29964378 Change-Id: I5cd325c77f2a5fe8858f59577f4311f50db9d4c2
2016-06-23Add a delete cache entryJulien Desprez
We need to be able to remove a cache entry in case it is corrupted. Bug: 6485734 Change-Id: I1888fc1a7b03e83d32cd86970e5802ebe6280392
2016-06-16Check build flavor against the device build flavorJulien Desprez
In some cases, build flavor was not the one from the device but from the app downloaded first. Bug: 20117149 Change-Id: I095ffaa824ac1db02e9f680262417dfdc37618b8
2016-06-03Add Python test runnerJed Estep
Additionally add a BuildInfo which holds otatools, since the first uses of this testtype will be for testing contents of this zip Bug: 28115108 Change-Id: I52f451165ba5ee1c72c8c50484403ec5b08116cf
2016-05-31DeviceNotAvailable track the serial of the deviceJulien Desprez
Required to track which device throw the exception in a multi device environment. - Deprecate the old constructor. - Update TF code base. Bug: 29043852 Change-Id: Id24fc0f01dd7e96127083b472d0fe0f2763721d0
2016-04-20Enable OtaFaultInjectionPreparer to sign packagesJed Estep
OTA packages need to be re-signed after any modification This requires the following changes to tradefed: * OtaDeviceBuildInfo must be accessible to google_tradefed * A BuildInfo must exist that contains otatools.zip files (signapk.jar) Bug: 28193112 Change-Id: I9ed42ea34634fc20768fbe0d99ebcbf8c07b94d8
2016-01-27check thread ownership of lock before unlockGuang Zhu
Bug: 26837925 Change-Id: Ic3b4784ae41fa5bb96f4515df1598f095d88f089
2016-01-25FileDownloadCache Robustness to release lockJulien Desprez
Ensure lock is always released in file fetch to avoid deadlock. Bug: 26283846 Change-Id: I3cb5a3669105cca4e03afb206c930e2c1c7eb60c
2015-07-30Add setter for build id.Stuart Scott
bug:22830394 Change-Id: I9653c455313750ce5c65e23c197dd7b8b66a96c5
2015-06-08allowing specifying of expanded tests zip from local pathGuang Zhu
Enables BootstrapBuildProvider to provide an instance of DeviceBuildInfo, with tests zip path pointing to an expanded test zip at a local path, as provided via 'tests-dir' option. Change-Id: I7e2c76788edaefc28f5cc1ef67b5ea4b1c9c7c0a
2015-05-11Improve build flavor reportingGuang Zhu
Read the property string ro.build.flavor if available. Change-Id: If555b02d620120981ada9ad7797233e9bdcd3c4f
2014-10-07Clean up after hard link failureStuart Scott
bug: 17796669 Change-Id: I7906bc5a970a42cc71f9a410950aad090611c737
2014-05-16Merge "Various reliability fixes."Brett Chabot
2014-05-16Various reliability fixes.Brett Chabot
- Skip teardowns on DNAE. - wait for boot complete after emulator reboot - support multiple apks for local app builds Change-Id: I730fac5ef0b55dfe5ce22d11dc9699a6c14d5711
2014-05-15Make sure when we clone sdkbuildinfo we make the tools executable in theTsu Chiang Chuang
clone. Bug: 14992709 Change-Id: I2bb980387d5d846e1508e248ebc6c31040bf4c26