summaryrefslogtreecommitdiff
path: root/ci/optimized_targets_test.py
AgeCommit message (Collapse)Author
2025-03-23For test mapping config append modified path Julien Desprez
Test: presubmit Bug: 405154519 Change-Id: I4a2bc3806722be9322f0d40070d00c3fafc9faa3
2025-03-19Rework general-tests optimization Luca Farsi
Rework general-tests optimization to use the test discovery agent to determine the modules that are needed to be included in general-tests.zip. Also start reporting optimization decisions silently. Test: atest build_test_suites_test; atest optimized_targets_test Bug: 358215235 Change-Id: Iabff6729e5743805167eed87d7ef5d901b255a61
2025-03-12Keep track of which test infos use which target Luca Farsi
Modify build script to keep track of which test info uses which target, which will be necessary for intra-zip test discovery later Test: test Bug: 358215235 Change-Id: I3d51d6527396fc1538d51602ad84084dbcdc7b0e
2024-09-19Fix packaging outputs commands Luca Farsi
There were a few issues with the output packaging process that were found during testing of the general-tests optimization. First and foremost is that the packaging commands were trying to be created before the build ran, when the outputs don't exist. I've changed the logic to just collect the methods themselves which will then be run during build plan execution after the build has completed. A few other smaller issues include fixing the path to the soong_zip binary, incorrect execution of the soong dumpvars command, and not building the shared libs zip. Test: atest build_test_suites_test; atest optimized_targets_test Bug: 358215235 Change-Id: I8a3f54738f8bb5d871aadf7423844076c38b54a6
2024-09-12Implement package_outputs in GeneralTestsOptimizer Luca Farsi
Implement the output packaging step in the GeneralTestsOptimizer. This step takes all the outputs built by the general-tests target (in the case where it was optimized) and packages them into the necessary zips generated by the target normally. Test: atest build_test_suites_test; atest optimized_targets_test Bug: 358215235 Change-Id: I5d27eef4e37137cc9b6e235f52f3856ba0b30460
2024-08-27Implement get_build_targets_impl in GeneralTestsOptimizer Luca Farsi
Implement functionality in GeneralTestsOptimizer to find what targets to build. This logic is fairly complex and involves checking for test configs that download general-tests.zip. Then the configs are checked to see if they're proper test mapping tests (if they use the 'test-mapping-test-group' option). If they are, then TEST_MAPPING modules are scanned to see if the list of changed files would cause any test mapping modules to run. The tests are then further filtered by test-mapping-test-groups used in the test configs. In case that a test uses general-tests.zip but does not specify 'test-mapping-test-group' then all bets are off and general-tests.zip is built in its entirety. package_outputs is still unimplemented so this will need to be implemented before the optimization can be enabled. Test: atest build_test_suites_test && atest optimized_targets_test Bug: 358215235 Change-Id: I6a7eebfd1b06b380799292eb2019ac17c9af5367