Commit Graph

34187 Commits

Author SHA1 Message Date
Zhi Dou
b8024771a9 Merge "Add demo code for testing" into main am: 4db54e9935
Original change: https://android-review.googlesource.com/c/platform/development/+/2712013

Change-Id: Id54918b6efe17c11663562ffd2dd515935e1392d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-18 21:15:34 +00:00
Zhi Dou
4db54e9935 Merge "Add demo code for testing" into main 2023-08-18 20:35:46 +00:00
Zhi Dou
3c4cc122eb Add demo code for testing
This change add demo for using test mode flag lib in
self-instrumentation tests.

There are two options.

The option 1 is to create two versions, prod and test, of the library
using flags. The prod version library uses prod flag lib, and the test
version library uses test flag lib.

The option 2 is to dynamically link to the flag lib in the library. The
flag lib is used as a stub lib and is just used for building purpose.
The in the finally binary which uses the library, the binary should
statically link to the right version of the flag lib.

Bug: 295561701
Test: atest AconfigDemoUnitTests1 && atest AconfigDemoUnitTests2

Change-Id: Ie571a260d9042933032c702095808dbf59d1697c
2023-08-18 19:45:14 +00:00
Treehugger Robot
430cf9bb2b Merge "cherry pick: Create rust codelab via a Rust lib used by a system app" into main am: 4bed088780
Original change: https://android-review.googlesource.com/c/platform/development/+/2711374

Change-Id: Ib2e83a9a8f61f413a5d016477f32e6ae2f60afed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-16 19:58:29 +00:00
Treehugger Robot
4bed088780 Merge "cherry pick: Create rust codelab via a Rust lib used by a system app" into main 2023-08-16 18:52:11 +00:00
Treehugger Robot
48279db136 Merge "Update codelab system app to use native code" into main am: 481b4c64f4
Original change: https://android-review.googlesource.com/c/platform/development/+/2712093

Change-Id: I8acae6bd21cb0ee1d504eacaa672df4e20dbfa14
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-16 18:29:17 +00:00
Treehugger Robot
3115ed1f44 Merge "Rename libsyn to libsyn2" into main am: 8449944a50
Original change: https://android-review.googlesource.com/c/platform/development/+/2601328

Change-Id: Ie6e0ebec2a11488c4c678fe10a94d157d6a24006
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-16 18:28:34 +00:00
Dennis Shen
f422a8b846 cherry pick: Create rust codelab via a Rust lib used by a system app
Bug: b/295875546
Change-Id: I3b0e6133c4c007843d24501476a9d391241019b0
Merged-In: I3b0e6133c4c007843d24501476a9d391241019b0
2023-08-16 18:00:32 +00:00
Treehugger Robot
481b4c64f4 Merge "Update codelab system app to use native code" into main 2023-08-16 17:54:51 +00:00
Dennis Shen
22860d2f33 Update codelab system app to use native code
Bug: b/291771121
Test: tested on local devices
Change-Id: I1532d89ef185c584d3cc76c0541a0f47e622e3fb
Merged-In: I1532d89ef185c584d3cc76c0541a0f47e622e3fb
2023-08-16 17:21:29 +00:00
Treehugger Robot
8449944a50 Merge "Rename libsyn to libsyn2" into main 2023-08-16 17:10:05 +00:00
Treehugger Robot
fe3997ee8c Merge "Make tests configuration option optional." into main am: e64a580e9f
Original change: https://android-review.googlesource.com/c/platform/development/+/2710054

Change-Id: I93edc92b92faafad31727a43cd614295d2856902
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-15 19:55:53 +00:00
Treehugger Robot
a14174c300 Merge "Add test for generating Android.bp from list of crates." into main am: 4266276d42
Original change: https://android-review.googlesource.com/c/platform/development/+/2695088

Change-Id: Idf315debd29afe266b4be40ca7a70a68f3995bca
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-15 19:55:39 +00:00
Treehugger Robot
5a0b334577 Merge "Remove emit_list." into main am: 3c9af85e16
Original change: https://android-review.googlesource.com/c/platform/development/+/2710053

Change-Id: I1899f5b4c7d260169bc0b0cf6baf495385401083
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-15 19:54:17 +00:00
Treehugger Robot
e64a580e9f Merge "Make tests configuration option optional." into main 2023-08-15 18:52:25 +00:00
Treehugger Robot
4266276d42 Merge "Add test for generating Android.bp from list of crates." into main 2023-08-15 18:51:45 +00:00
Treehugger Robot
3c9af85e16 Merge "Remove emit_list." into main 2023-08-15 18:36:13 +00:00
Andrew Walbran
8e86dfe14e Make tests configuration option optional.
Bug: 293289578
Test: atest cargo_embargo.test
Change-Id: Ia35acdcad920e0f585cc5be650f1d1e3b6aa176d
2023-08-15 17:47:06 +01:00
Andrew Walbran
3da057735e Add test for generating Android.bp from list of crates.
Bug: 293289578
Test: atest cargo_embargo.test
Change-Id: I2be01cee617913d429ceb5f41f81126d38301ede
2023-08-15 17:47:06 +01:00
Andrew Walbran
2a4c28bf67 Remove emit_list.
It's not used anywhere.

Bug: 293289578
Test: atest cargo_embargo.test
Change-Id: I8ab1cbec7fe05997c9b24a8e0b658c092a6046ae
2023-08-15 16:54:00 +01:00
Zoe Tsou
fd091be5b2 Merge "The script parse_cts_report.py converts single cts report into \ three files: info.json result.csv summary.csv" into main am: 3492dd1d35
Original change: https://android-review.googlesource.com/c/platform/development/+/2704355

Change-Id: I4481aa6ad1453c1ea03d45457c37c00e9870af71
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-15 10:24:52 +00:00
Zoe Tsou
3492dd1d35 Merge "The script parse_cts_report.py converts single cts report into \ three files: info.json result.csv summary.csv" into main 2023-08-15 09:41:30 +00:00
Zoe Tsou
c864e8880b The script parse_cts_report.py converts single cts report into \
three files:
    info.json
    result.csv
    summary.csv

The class Report() is implemented so that parse_cts_report.py \
can be easily used by another script aggregate_reports.py.

The script aggregate_reports.py converts multiple cts reports into \
three files:
    info.json
    result.csv
    summary.csv

Assumptions:
    1. If the input is a zip file, the struture should be
        abc.zip
        |----abc/
        |    |----test_result.xml
    2. The input file and the output directory must have existed.

Bug: 293809772
Test: `./parse_cts_report.py --report-file [a.zip, test_result.xml] \
    -d output_directory`
Test: `./aggregate_reports.py --report-files a.zip b.zip -d \
    output_directory`
Change-Id: I8e5481ecc1ebf7f370debb59cb3c065cf9edcfad
2023-08-15 08:42:03 +00:00
Dennis Shen
5b7794eec9 Merge "Add the first flag to core_experiments_team_internal" into main am: 6c53c6aab9
Original change: https://android-review.googlesource.com/c/platform/development/+/2705513

Change-Id: I982e4115de814660894b6dd272b2345cc6094d8d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-11 20:53:33 +00:00
Dennis Shen
6c53c6aab9 Merge "Add the first flag to core_experiments_team_internal" into main 2023-08-11 20:08:22 +00:00
Dennis Shen
a117eb53ed Add the first flag to core_experiments_team_internal
Add an internal dir to host an aconfig file that is dedicated to
trunk_stable_workflow testing. We should use this one, instead the one
dedicated to the demo app.

Bug: 294537090
Change-Id: I1a28da8e202f5f454df35f298c8c962d3b9b229b
2023-08-11 14:15:34 +00:00
Zhi Dou
f00e03460b Merge "Rename MockFlagsRule" into main am: 50f1ed2988
Original change: https://android-review.googlesource.com/c/platform/development/+/2694627

Change-Id: I1699b80fd250fdc66558cb687c3c567caa12acfc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-09 20:28:38 +00:00
Zhi Dou
50f1ed2988 Merge "Rename MockFlagsRule" into main 2023-08-09 19:39:31 +00:00
Zoe Tsou
275bf80f1e Merge "Convert single cts report into three files: info.json result.csv summary.csv" into main am: 0a48327c6c
Original change: https://android-review.googlesource.com/c/platform/development/+/2694246

Change-Id: If7660963c0cbdc7bc6332ad248e32e3098672fd7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-09 07:59:32 +00:00
Zoe Tsou
0a48327c6c Merge "Convert single cts report into three files: info.json result.csv summary.csv" into main 2023-08-09 07:21:44 +00:00
Zoe Tsou
82deafccbf Convert single cts report into three files:
info.json
    result.csv
    summary.csv

Assumptions:
    1. If the input is a zip file, the struture should be
        abc.zip
        |----abc/
        |    |----test_result.xml
    2. The input file and the output directory must have existed.

Bug: 293809772
Test: ./parse_cts_report.py --report-file [a.zip, test_result.xml] \
    -d output_directory
Change-Id: I19dabdaed02408b7bf4a030394b99ed42925aa55
2023-08-09 05:48:40 +00:00
Zhi Dou
d20064a3ad Rename MockFlagsRule
The testing rule MockFlagsRule is not a "Mock". Rename the class name.

Bug: 280833463
Test: presubmit
Change-Id: I644537163e07dcf55cd69af3690e435251149349
2023-08-07 15:37:29 +00:00
Treehugger Robot
22ee621b36 Merge "Add tests for crate_to_bp_modules." into main am: 6cfc1eae6d
Original change: https://android-review.googlesource.com/c/platform/development/+/2695086

Change-Id: I600ccad6e3bf212904af9dd7e71cba4b89332a3c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-04 23:21:05 +00:00
Treehugger Robot
6cfc1eae6d Merge "Add tests for crate_to_bp_modules." into main 2023-08-04 22:29:44 +00:00
Andrew Walbran
0277236ce5 Add tests for crate_to_bp_modules.
Bug: 293289578
Test: atest cargo_embargo.test
Change-Id: I9063a2dffea3a716224a1bd6a722e408b5eb0494
2023-08-04 18:02:21 +01:00
Treehugger Robot
595ce1d3e8 Merge "STT: simple build.trace.gz comparison tool" into main am: bedaae5b24
Original change: https://android-review.googlesource.com/c/platform/development/+/2682555

Change-Id: I9a08ef58e6a9d4a2bd03e2d107ffa91eb3664f95
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-03 03:58:11 +00:00
Treehugger Robot
bedaae5b24 Merge "STT: simple build.trace.gz comparison tool" into main 2023-08-03 03:22:35 +00:00
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
Zoe Tsou
218bb3ad3c Merge "migrated the script from python2 to python3." into main am: 4c2345a3c3
Original change: https://android-review.googlesource.com/c/platform/development/+/2670837

Change-Id: I6e7fafd4afa5da1a9688383d8db8cabab9144676
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-02 08:46:40 +00:00
Zoe Tsou
4c2345a3c3 Merge "migrated the script from python2 to python3." into main 2023-08-02 08:08:40 +00:00
Matthias Männich
8e338c3a08 Merge "ndkabidump: switch to .stg format" into main am: b417397c18
Original change: https://android-review.googlesource.com/c/platform/development/+/2646374

Change-Id: I86ee42d60181eeac5587e53d605ac55e5f3b4e7d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-01 22:20:48 +00:00
Matthias Männich
b417397c18 Merge "ndkabidump: switch to .stg format" into main 2023-08-01 21:36:36 +00:00
Frederick Mayle
3ae542d374 Merge "Split out JSON configuration reading to a separate module." into main am: f7f1f74960
Original change: https://android-review.googlesource.com/c/platform/development/+/2677207

Change-Id: Id9dee9fd5d84ee82239d9834010e462e981f9233
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-01 20:34:09 +00:00
Frederick Mayle
f7f1f74960 Merge "Split out JSON configuration reading to a separate module." into main 2023-08-01 19:23:38 +00:00
Matthias Maennich
273a2c88ee ndkabidump: switch to .stg format
Bug: 156513478
Change-Id: I1250aca298894851039b058f286b21d4c1f46716
Signed-off-by: Matthias Maennich <maennich@google.com>
2023-08-01 17:23:22 +00:00
Andrew Walbran
a314f8e3fd Split out JSON configuration reading to a separate module.
Bug: 293289578
Test: m cargo_embargo
Change-Id: I993da0c666a2dd90fa46f697553b9778e1e3ad37
2023-08-01 16:00:29 +01:00
Treehugger Robot
08ce67bec6 Merge "STT build test builds trunk_staging release by default" into main am: b990c79f5c
Original change: https://android-review.googlesource.com/c/platform/development/+/2685448

Change-Id: I74244e81e9342627e02f71c9d70c91948e75b57a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-01 06:21:03 +00:00
Treehugger Robot
b990c79f5c Merge "STT build test builds trunk_staging release by default" into main 2023-08-01 05:42:16 +00: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
Zhi Dou
c85b10c35a Merge "Add usage of test mode" into main am: d9009e5ebe
Original change: https://android-review.googlesource.com/c/platform/development/+/2680978

Change-Id: I01da01fa94e5238b66d6a133b23f82474117c202
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-31 15:59:59 +00:00