Commit Graph

10 Commits

Author SHA1 Message Date
Justin Yun
512af8216c STT: simple build.trace.gz comparison tool
compare_build_trace.py finds additional modules that exists in the
target_build.trace.gz file compared to the ref_build.trace.gz file.

Bug: 289003298
Test: compare_build_trace.py build.trace.gz target_name \
                             ref_build.trace.gz ref_name \
                             ignore_text
Change-Id: Ib6b17b8107583ecd76a0e1216293ac903e0b54b9
2023-08-03 11:23:14 +09:00
Justin Yun
db03719264 STT build test builds trunk_staging release by default
Add `TARGET_RELEASE=trunk_staging` for the base build command to
build the trunk_staging targets for the STT build tests.

Bug: 293964685
Test: combined_build_test.sh -t <target> -v <variant>
Change-Id: I1bc449ad6790dc56860983ae80c4beb20c0621aa
2023-08-01 11:39:27 +09:00
Justin Yun
884015b708 STT: fix build error for the ninja explain argument
The command must be in quotations. Use eval to run commands.

Bug: 284915566
Test: combined_build_test.sh -t cf_x86_64_phone -v userdebug \
                   -d out/dist -a cf_x86_64_foldable -o -c droid
Change-Id: I41881527434a05736224de502ff6b09dcc45a55c
2023-06-29 23:15:39 +09:00
Justin Yun
dde502b9de STT: Stop the test run if any builds fail
The script must fail and be excluded from the build stats if any
build run fails.

Bug: 284915566
Test: run_command with fault command
Change-Id: I0bc8d14286ebce52036f45ba4dee675f333a3ff0
2023-06-29 09:09:22 +09:00
Justin Yun
523397cba8 STT: add ninja "explain" to see the reason of build triggers
verbose.log.gz includes the logs for the ninja explain.
The logs will be automatically cached to verbose.log.gz,
verbose.log.2.gz, and verbose.log.4.gz.

Bug: 284915566
Test: combined_build_test.sh -t cf_x86_64_phone -v userdebug \
                   -d out/dist -a cf_x86_64_foldable -o -c -r droid
Change-Id: Ib722a7c331cfe6b034ab4812b85504d2f5161881
2023-06-28 18:14:38 +09:00
Justin Yun
b178c4c900 STT: Remove some dist artifacts from test build
They consume much disk space even though they are not used.

Bug: 284915566
Test: combined_build_test.sh -t cf_x86_64_phone -v userdebug \
                     -d out/dist -a cf_x86_64_foldable -o -c droid
Change-Id: I4fd5e9326e5c77c28c5e178f63ba396c9e462cbd
2023-06-21 15:23:49 +09:00
Justin Yun
a21f7f598d STT: Add encoding option to read trace files
Bug: 284915566
Test: read_build_trace_gz.py build.trace.gz
Change-Id: I90dc3e7c70cecf63ab1a29d972bf8333423436e7
2023-06-16 15:52:42 +09:00
Justin Yun
e2d794cff0 STT: Generate output result from the test builds
Enable multiple test builds in one command and collect the results
from the build.trace.gz files.

Bug: 284915566
Test: combined_build_test.sh -t cf_x86_64_phone -v userdebug \
                     -d out/dist -a cf_x86_64_foldable -o -c droid
Change-Id: Ie566fd76463aa615c37130f4c4c7b8287fd8c447
2023-06-13 18:48:12 +09:00
Justin Yun
b931ab1e4c Test script for source tree treble build
The script tests building two targets with a sigle build artifact
path.
Give two targets A and B, build A and then build B without cleaning
the out directory. After that, build the A again.

Bug: 284915566
Test: combined_build_test.sh -t cf_x86_64_phone \
             -a cf_x86_64_foldable -v userdebug -c -d out/dist droid
Change-Id: I143412ca67717a5ee3b437c84b230a58a00b065e
2023-06-07 17:45:21 +09:00
Kiyoung Kim
c981a31234 Create a new build script for builds using SSI artifact
Build using SSI artifact from the chained build may require extra
arguments from the build. This new script will handle all required
arguments with those new build targets.

Bug: 269977324
Test: N/A
Change-Id: Ia7b1f3c838433d4d51a98be875ac32da88ccbb79
2023-03-23 14:53:25 +09:00