Use vuex to store the otaConfig, now the history configurations can be
reused in the job detail page. Also the targetBuilds, incrementalSources
are not stored in vuex as well. Once the targetBuilds are chosen, it
will not lose the states when switching the tab between singleOTA,
batchOTA and chainOTA.
Test: npm run test:unit
Change-Id: I563ac0c79fd0cedd5e71e8722b956545f6624551
The extra space in args['extra'] may cause the ota generation fail.
Test: python test_ota_interface.py -v
Change-Id: Iac6d06a89c52ab7554e54c08e5e04496b3da730a
Add test to two classes: BuildInfo and TargetLib. BuildInfo is a
dataclass which can store and parse Android Build informations from an
OTA package. TargetLib is a database interface which can be used to
store and extract BuildInfo.
Please refer to this CL for more details of these two classes:
https://android-review.googlesource.com/c/platform/development/+/1735315
Test: python test_target_lib.py -v
Change-Id: I3b2143af7f3708207b6c53744d903d3dcee92d55
Python map function returns an iterator that cannot be reused. Convert
it into a list instead to support multiple usages.
Also, add an error message to the ocnsole if no files are returned
Test: run proxy, start/stop trace 2+ times in a row
Change-Id: I09e4a4a28315b28f8d6eabdbfe60890cdfb8510c
Problem was that we were relying on getProperties to iterate through all
the properties to format them, but getProperties would filter out any
falsy value so all properties that had fasly values were pre-filtered out regardless of if show defaults was toggled or not.
We also make sure that null and undefined fields are shown when show
defaults is enabled
Test: Check proto section of entries in winscope to see all missing entries
Fixes: 187463843
Change-Id: Iaf6ef1b855edafb0dfbd324e73bbd5c3ce1b2f59
If a single read request contains the entire manifest, we will return
right after prefixLength is computed, and the UI just hangs there.
Test: load a small OTA pkg
Change-Id: Idb93fdba103f9c6e7b14974b45d1aecdb2ae9168
Store transition types in enum so easier to type check in Typescript if necessary later on.
Bug: b/196203538
Test: check that the tag trace attached to the bug still uploads
correctly
Change-Id: I2994f58ceb1d49bd82af54fb075369bd70dc1394
The ProcessManagement helps initiate OTA generation processes and
monitor those processes. Add some test and comments to this class.
Please refer to:
https://android-review.googlesource.com/c/platform/development/+/1736940
for more details.
Test: python test_ota_interface.py -v
Change-Id: Ib22fca4c5a670f8b55db8a4175fef16d92eaceaf
Add testcases for ota_interface.JobInfo, which is used as object to
store task information and serve/read data to/from database.
Refer to:
https://android-review.googlesource.com/c/platform/development/+/1736940
for more details.
Test: python test_ota_interface.py -v
Change-Id: I74dcb16390078bd9258da490e21cb2b73dd78e81
The os.path.join() will bring in an unwanted backslash.
Test: Tested by starting a new OTA generation process by calling
ota_interface.ota_generate directly.
Test: python test_ota_interface.py -v
Change-Id: I8449eea79303f5aff5188176538eca1291101dff
Jest is a JavaScript test framework. Test-utils is used to test vue
components.
No-Typo-Check: auto-generated artifacts
Test: npm run test.
Change-Id: I2466687120b96a3a393299d127c6d7e1f15204e7
Transition tags with message appearing upon hovering over a transition. Error lines appear on the minimized timeline. Selected entry colour changed to light blue.
Bug: b/195495337
Test: Download the zip, tag and error files from the bug. Upload the traces to the html winscope from the bug. Select Flicker from the navigation options. Some tags and errors should appear and the selected element should turn from red to blue. Hover over tags to see a message describing the transition.
Change-Id: Id1a4e4ac4966b747197c5361c7e75a1021f9182c
Created two tests based on files generated with fake data.
Bug: b/196044201
Test: run `yarn run test` and check that "Tag Transformation" and "Error
Transformation" tests have not failed.
Change-Id: Ic875d8143c94c0d6d9db9c719d6e51cb1769ebc5