Commit Graph

3664 Commits

Author SHA1 Message Date
Priyanka
a286cf0d50 Fix missing timeline due to unexpected navigation type.
Added fallback to global timeline instead of throwing a error if
navigation type is unexpected.

Bug: b/195738728

Test: Open x20 file winscope-staging-priyankaspatel and select Flicker
mode from navigation options, then open local Winscope and check that
the global timeline still appears after running/uploading a trace.

Change-Id: I9ea336c31fa1f5c752eb4a30f55f08a3ee595811
2021-08-06 12:56:47 +00:00
Nataniel Borges
6c2ff5fcd3 Merge "Introduce a .winscope extension for all winscope files" 2021-08-02 08:07:20 +00:00
Kelvin Zhang
4b3a0ebcf2 Merge "Support docker for ota generator" am: 091a8fb955 am: d2f6d63acd am: 7c43b85a08 am: 630328e5f0
Original change: https://android-review.googlesource.com/c/platform/development/+/1780768

Change-Id: I4679588af18c643fc5865f13b7491f180b08273f
2021-07-29 13:45:06 +00:00
Kelvin Zhang
630328e5f0 Merge "Support docker for ota generator" am: 091a8fb955 am: d2f6d63acd am: 7c43b85a08
Original change: https://android-review.googlesource.com/c/platform/development/+/1780768

Change-Id: Ifcd34220ce47ffaba25c8fa91f33dc11ad63ac6a
2021-07-29 13:34:18 +00:00
Kelvin Zhang
7c43b85a08 Merge "Support docker for ota generator" am: 091a8fb955 am: d2f6d63acd
Original change: https://android-review.googlesource.com/c/platform/development/+/1780768

Change-Id: Ie625a23636a1c9a58d31ac37bbe2f285d00ef671
2021-07-29 13:22:08 +00:00
Kelvin Zhang
d689350756 Support docker for ota generator
Test: docker run -it -p 8000:8000 -v target:/app/target -v
output:/app/output zhangxp1998/test:latest

Change-Id: Ife050e6a8c85f2d40aff82a752b19f27c2ab23c5
2021-07-28 22:44:34 -04:00
Treehugger Robot
4b6103adbe Merge "Speed up the payload.bin read in process." am: 1a86d98b6e am: 261de8cf63 am: d60a7bf334 am: 562c9f6ba8
Original change: https://android-review.googlesource.com/c/platform/development/+/1777971

Change-Id: I9fdd5fe84ecc7838d1a143317dfcc432853968cc
2021-07-29 02:34:54 +00:00
Treehugger Robot
562c9f6ba8 Merge "Speed up the payload.bin read in process." am: 1a86d98b6e am: 261de8cf63 am: d60a7bf334
Original change: https://android-review.googlesource.com/c/platform/development/+/1777971

Change-Id: I2b0859351eae1fe3d5e5b88d8f229b4dfb11d2f6
2021-07-29 02:17:16 +00:00
Treehugger Robot
d60a7bf334 Merge "Speed up the payload.bin read in process." am: 1a86d98b6e am: 261de8cf63
Original change: https://android-review.googlesource.com/c/platform/development/+/1777971

Change-Id: Id3330ed4f450df68740ff88feff51c35e37ab1c1
2021-07-29 02:03:36 +00:00
Kelvin Zhang
e5eb5c9d38 Speed up the payload.bin read in process.
A 700MiB OTA package now takes only 100ms to read in, compared with
7000ms previously. That's 70x faster.

When parsing the update_metadata in payload.bin, the entire file has to
be read in previously, because zip.js does not support partial read-in.
In fact, only a small portion of the payload.bin is update_metadata.
Reading the entire payload.bin not only slows down the process but also
occupy excessive memory.

The new class OTAPayloadBlobWriter (inherited from zip.Writer) will read
in the metadata (header, manifest, signature) and throw an StopIteration
exception when finished.

Test: open a large OTA package
Change-Id: Iebf8045325dae9a118d9d8ea5674872aa7c280c4
2021-07-28 23:38:51 +00:00
Treehugger Robot
7d0ceb5a5a Merge "Fix a compatibility issue: getBigUint64." am: 74232e7a3f am: 2daf325668 am: 97c97755ba am: 6030866ba7
Original change: https://android-review.googlesource.com/c/platform/development/+/1781348

Change-Id: Ie8543fd940787b6b1ef73a4cb2e49cdd8faf771d
2021-07-28 22:40:38 +00:00
Treehugger Robot
6030866ba7 Merge "Fix a compatibility issue: getBigUint64." am: 74232e7a3f am: 2daf325668 am: 97c97755ba
Original change: https://android-review.googlesource.com/c/platform/development/+/1781348

Change-Id: Ib2e718f45ed0087ddd7b990fd7c1d8ede1fb62a5
2021-07-28 22:29:40 +00:00
Treehugger Robot
97c97755ba Merge "Fix a compatibility issue: getBigUint64." am: 74232e7a3f am: 2daf325668
Original change: https://android-review.googlesource.com/c/platform/development/+/1781348

Change-Id: I7ac345518e30dcc8cb7929e89518ab6b160b3442
2021-07-28 22:15:34 +00:00
Treehugger Robot
44cb105810 Merge changes I36beff43,Iab7275b9 am: 503e12a866 am: 4d21078ab9 am: e71ef39842 am: f3510f9a09
Original change: https://android-review.googlesource.com/c/platform/development/+/1781347

Change-Id: I477f89063adfacb1f94ea0bdc2e7b6f33f995b39
2021-07-28 20:48:54 +00:00
Treehugger Robot
c308068550 Merge "Add prebuild and postbuild info to OTA_analysis." am: afcbcc7149 am: 2b8dd5e2b4 am: 49da6642eb am: 7d4570f234
Original change: https://android-review.googlesource.com/c/platform/development/+/1779885

Change-Id: I0c437c2e2b9d74f283d0a5feee767f3c087db815
2021-07-28 20:48:37 +00:00
Treehugger Robot
f3510f9a09 Merge changes I36beff43,Iab7275b9 am: 503e12a866 am: 4d21078ab9 am: e71ef39842
Original change: https://android-review.googlesource.com/c/platform/development/+/1781347

Change-Id: I2ec3798e17b285a94a6462f8ff32e1f2c6d924af
2021-07-28 20:34:48 +00:00
Treehugger Robot
7d4570f234 Merge "Add prebuild and postbuild info to OTA_analysis." am: afcbcc7149 am: 2b8dd5e2b4 am: 49da6642eb
Original change: https://android-review.googlesource.com/c/platform/development/+/1779885

Change-Id: Ice2dc514981ea936f4773bfa398922dec025bdcc
2021-07-28 20:34:34 +00:00
lishutong
ff2b99cd89 Fix a compatibility issue: getBigUint64.
The method getBigUint64 is not supported by safari until version 15:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getBigUint64
This CL mannual reload this method.

Test: Mannual tested.
Change-Id: I1d967eda93f9f628fb7f0f5d9f90efb92429ed5e
2021-07-28 20:31:37 +00:00
Treehugger Robot
e71ef39842 Merge changes I36beff43,Iab7275b9 am: 503e12a866 am: 4d21078ab9
Original change: https://android-review.googlesource.com/c/platform/development/+/1781347

Change-Id: Ibc02cc4e8879b290f5826f691a21f8bf400cb291
2021-07-28 20:10:50 +00:00
Treehugger Robot
49da6642eb Merge "Add prebuild and postbuild info to OTA_analysis." am: afcbcc7149 am: 2b8dd5e2b4
Original change: https://android-review.googlesource.com/c/platform/development/+/1779885

Change-Id: I12447e612c6e8191feadf72482a9edf8aefadd1b
2021-07-28 20:10:43 +00:00
lishutong
30f991bf6e Fix a bug: redirect to homepage for some url.
In a single page application, the url sometimes does not correspond to
the actual resources on the server. Thus, it might cause 404 when users
refresh the page. By redirecting this kind of url back to the homepage,
the proper page can be rendered. If the url does not exist, the front
end will redirect to a Not Found page.

Test: mannual tested.
Change-Id: I36beff436a450ae7fcabe9172df9c7cc217d7305
2021-07-28 18:14:35 +00:00
lishutong
c4b3dd1aef Fix a bug: multiple flags in ota generator.
Previously, when multiple extra flags are set, the subprocess.run
can start generation properly. Now this is fixed.

Test: mannual tested.
Change-Id: Iab7275b9058a088d1fafd8c445c7f0775626c1ba
2021-07-28 17:51:31 +00:00
lishutong
ad6b75df3d Add prebuild and postbuild info to OTA_analysis.
The metadata file in ota package contains prebuild and postbuild info,
now the basic info section will display those.

Test: mannual tested.
Change-Id: I264fe656ff6fab42d5161100c04210ab9a94c7a0
2021-07-28 17:51:29 +00:00
TreeHugger Robot
8241f29105 Merge "Add a seek timestamp searchbar." 2021-07-27 18:25:26 +00:00
Priyanka
baa6a95f78 Add a seek timestamp searchbar.
A timestamp can now be searched for in -d-h-m-ms form or in nanoseconds - clicking the search button should select the closest timestamp in the timeline and change the traces.
Test: search for a timestamp and ensure the traces change accordingly.
Bug: 194275191

Change-Id: If2e5cb5863f9a59bc88acbb63f259818b7b624cc
2021-07-27 16:27:18 +00:00
Treehugger Robot
186c2cb6b1 Merge changes I5801bcc3,Ib2290546 am: 1584123dbb am: 9bca36aeee am: 235a534f1b am: 5749a89bc8
Original change: https://android-review.googlesource.com/c/platform/development/+/1779346

Change-Id: If308dfd729bdc2992bda4946340b6dcc6061fcd0
2021-07-27 15:02:56 +00:00
Treehugger Robot
5749a89bc8 Merge changes I5801bcc3,Ib2290546 am: 1584123dbb am: 9bca36aeee am: 235a534f1b
Original change: https://android-review.googlesource.com/c/platform/development/+/1779346

Change-Id: I88595702a3dbba37e1b2f861c63bbae34aeb61b7
2021-07-27 14:42:25 +00:00
Treehugger Robot
235a534f1b Merge changes I5801bcc3,Ib2290546 am: 1584123dbb am: 9bca36aeee
Original change: https://android-review.googlesource.com/c/platform/development/+/1779346

Change-Id: I158327aac40b17d516c7a721dadd788e85ae63d9
2021-07-27 14:23:45 +00:00
lishutong
2232234d48 Remove the look behind regex for Safari.
The lookbehind/lookahead regular expression is not supported in safari
yet. (https://caniuse.com/js-regexp-lookbehind) Removed it for
compatibility reason.

Test: manual tested.
Change-Id: I5801bcc389b20df31175adbb8a841eb1d31703aa
2021-07-27 03:40:33 +00:00
lishutong
a3c85492cc Change the url to lowercase.
Test: mannual tested.
Change-Id: Ib22905462aa47aeaa700407fe5b90e3261d0b3a3
2021-07-27 03:33:48 +00:00
Treehugger Robot
cd330b324f Merge "Add a demo page in OTA_analyzer." am: ceadd4cff1 am: 4c11f8c6e0 am: 0a461d9383 am: c0188deceb
Original change: https://android-review.googlesource.com/c/platform/development/+/1778765

Change-Id: I053dcb6f2d7152c9ca4b6399c98a652a844acd56
2021-07-26 21:48:52 +00:00
Treehugger Robot
c0188deceb Merge "Add a demo page in OTA_analyzer." am: ceadd4cff1 am: 4c11f8c6e0 am: 0a461d9383
Original change: https://android-review.googlesource.com/c/platform/development/+/1778765

Change-Id: I3c5b262dc3622c0c83835dd9c9f8e73d4b1455bf
2021-07-26 21:32:55 +00:00
Treehugger Robot
0a461d9383 Merge "Add a demo page in OTA_analyzer." am: ceadd4cff1 am: 4c11f8c6e0
Original change: https://android-review.googlesource.com/c/platform/development/+/1778765

Change-Id: I258169f4a44674e835ef8b1f38dec5f2b6249dbc
2021-07-26 21:14:57 +00:00
Treehugger Robot
ceadd4cff1 Merge "Add a demo page in OTA_analyzer." 2021-07-26 20:39:20 +00:00
Treehugger Robot
a1c3c9659b Merge "Add support for chain OTA generation." am: 4895d0a8b4 am: d5b6e875b0 am: da5830d990 am: e8e04e2b76
Original change: https://android-review.googlesource.com/c/platform/development/+/1776605

Change-Id: I9e8aa953790840346c16aa2aa17abead360aa60a
2021-07-26 17:53:33 +00:00
lishutong
cdf499330d Add a demo page in OTA_analyzer.
Please put an ota package and its target build as cf_x86_demo.zip and
cf_x86_target_file_demo into this directory: /public/files/

This OTA package and target build do not have to be complete - only the
manifest part in OTA package and .map files in target build are
necessary. The previous one can be generated using:
https://source.corp.google.com/android/vendor/google_tradefederation/contrib/src/com/google/android/tradefed/ota/util/PayloadUtil.java;l=196;bpv=1;bpt=1?q=PayloadUtil&sq=package:android
The following one can be generated by unzip and keep the .map files
only, zip again.

Add a demo page, now the user can view the complete function of
OTA_analyzer without uploading their own ota packages / android build.

Test: Mannual tested.
Change-Id: I7552e0222fc40e9a4b1aff9750f74cd3ed3f4feb
2021-07-26 17:51:51 +00:00
Treehugger Robot
e8e04e2b76 Merge "Add support for chain OTA generation." am: 4895d0a8b4 am: d5b6e875b0 am: da5830d990
Original change: https://android-review.googlesource.com/c/platform/development/+/1776605

Change-Id: If9c48597aae1d2da8f4d26668cd1ac375df6ff87
2021-07-26 17:42:07 +00:00
Treehugger Robot
da5830d990 Merge "Add support for chain OTA generation." am: 4895d0a8b4 am: d5b6e875b0
Original change: https://android-review.googlesource.com/c/platform/development/+/1776605

Change-Id: I629768bbec7e0d9f7ae4ad47c697c70ab3ab89d1
2021-07-26 17:29:50 +00:00
Nataniel Borges
2aa5a1d15e Introduce a .winscope extension for all winscope files
This extension will be used to better integrate winscope traces and ABT, allowing trace files to be opened directly from ABT or buganizer

Bug: 192663722
Bug: 162813517
Test: (for winscope) build winscope, record traces, download traces, check if traces have the .winscope extension. (for flicker) run atest Flickertests. (for abt) on new extension, check if .winscope files show as "open in winscope" on buganizer

Change-Id: Iab7a80d0675aefe1a80d10a0f8b512506d063bba
2021-07-26 14:56:36 +02:00
Priyanka Patel
54abaae192 Merge "Property changes now show up on hierarchy view." 2021-07-26 08:33:17 +00:00
Treehugger Robot
cbb527debe Merge "Add batch generation to OTAGUI." am: 2e1cfae4fd am: 2f8719ccad am: b7b945a034 am: 90f26c90c1
Original change: https://android-review.googlesource.com/c/platform/development/+/1775726

Change-Id: I452e06108a30cc0c633141641fec0e282c7c21f8
2021-07-23 23:34:32 +00:00
Treehugger Robot
90f26c90c1 Merge "Add batch generation to OTAGUI." am: 2e1cfae4fd am: 2f8719ccad am: b7b945a034
Original change: https://android-review.googlesource.com/c/platform/development/+/1775726

Change-Id: I1a9e33977fb225538911cdbd49d4c7c94446401c
2021-07-23 23:24:54 +00:00
Treehugger Robot
b7b945a034 Merge "Add batch generation to OTAGUI." am: 2e1cfae4fd am: 2f8719ccad
Original change: https://android-review.googlesource.com/c/platform/development/+/1775726

Change-Id: I8a58ce94715ee7034827c6a4bf0b6e0a0f60edd7
2021-07-23 23:07:22 +00:00
lishutong
bb3bc961d4 Add support for chain OTA generation.
To upgrade from the Android version A to Android version D, one could
directly generate an OTA package from A to D. But chances are (a) this
OTA package can be large and unstable (b) there are multiple other
devices are on version B or C. So generation of chain OTA packages
(A-->B-->C-->D) can help life easier.

Users will be able to select and sort the Android build in
`ChainOTAOptions.vue` component, and submit multiple jobs at the same
time using a OTAConfiguration from `JobSubmission.js`.

Test: Mannual tested.
Change-Id: I9f16f981af80900c18a571162146ce218ea96387
2021-07-23 19:52:28 +00:00
lishutong
c4b6c3a7dd Add batch generation to OTAGUI.
Batch generation of OTA packages is a important feature
requested by googler and partners: please refer to go/ota-dashboard-doc.
Given n incremental source builds and m target builds,
batch generation will generate n x m OTA packages in total.
If n=0, full OTA package will be generated.

The front end will be taking in the source/target lists and send the
request to backend one-by-one.

Test: mannual tested.

Change-Id: I769359ee69c7aa8c71704c4e119c374635554dfb
2021-07-23 19:18:52 +00:00
Treehugger Robot
1c64159b84 Merge "Refactor the frontend for batch generation." am: 89e47defef am: 8f08ab906f am: dd360e3272 am: 29fcd6e3de
Original change: https://android-review.googlesource.com/c/platform/development/+/1775725

Change-Id: I577539b29927b06f03f64b0456ad42d7fe7011f8
2021-07-23 18:54:26 +00:00
Treehugger Robot
29fcd6e3de Merge "Refactor the frontend for batch generation." am: 89e47defef am: 8f08ab906f am: dd360e3272
Original change: https://android-review.googlesource.com/c/platform/development/+/1775725

Change-Id: Ia7570629a41ccde69538a7f1bc4c22eb618b0831
2021-07-23 18:38:10 +00:00
Treehugger Robot
dd360e3272 Merge "Refactor the frontend for batch generation." am: 89e47defef am: 8f08ab906f
Original change: https://android-review.googlesource.com/c/platform/development/+/1775725

Change-Id: I16cc34cf94fc78d7e0e5e741b7295aeb7dfc04a3
2021-07-23 18:17:50 +00:00
lishutong
aaf2c7a933 Refactor the frontend for batch generation.
Following part has been modified:

1. Add tabs for selection between single generation and batch
generation. (src/components/JobConfigure.vue)

2. Change the data structure of OTAConfiguration, now it only records
the flags. The source/target build will be provided when submit jobs.
(src/services/JobSubmission.js)

3. Seperate the OTAOptions as a single component, which only takes in
the flags for backend. The selection of source/target build will be in a
seperate component. (src/components/OTAOptions.vue,
src/components/SingleOTAOptions.vue).

4. Now the partition selection can takes in more than one build, but
only show the partition list of first one. Later on, this will be able
to show the intersection of the partition lists from all given builds.
(src/components/PartialCheckbox.vue)

Point 1 enables the possibility of the dynamical loading of single/batch
ota generation pages. Point 2,3,4 allow the OTAOptions components to
be reused for batch generation.

Test: Mannual tested.
Change-Id: I1a29fa7c605596d717d19da25d31b81ce5b8fcba
2021-07-23 15:09:31 +00:00
Shashwat Kansal
82755572da Merge "Fix [Object object] appearing on surfaceflinger trace" 2021-07-23 10:15:57 +00:00