New issue
Advanced search Search tips

Issue 804354 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Feature
Proj-XR

Blocking:
issue 801581
issue 808465



Sign in to add a comment

VR: Make assets component available in tests

Project Member Reported by tiborg@chromium.org, Jan 22 2018

Issue description

Currently, all our tests run without the assets component. This is a problem since our performance data is inaccurate and we may also miss other regressions. Thus, use the assets component in tests.

To do this we should copy the assets files into the device prior to the test and point the component updater to those files. By doing so, we would skip downloading the assets component, which we are not interested in testing. This also makes the tests more robust. The flow could look like this:
- Copy asset files to folder we have write access to.
- Start Chrome and let the component updater run.
- Point component updater to the files we copied onto the device previously by overriding the paths in https://cs.chromium.org/chromium/src/components/component_updater/component_updater_paths.cc.
- Register our assets component.
- Component updater should pick up our asset files and make them available to the UI. We can now run tests normally with the assets present.
 
For Telemetry tests, we should be able to just copy the files into the directory Chrome normally uses for components before starting up Chrome, and it'll just work, right?

Comment 2 by tiborg@chromium.org, Jan 23 2018

Yeah. But I thought we don't have write access to this folder?
We should for Telemetry tests. It's during instrumentation tests that we don't have write access to most things.
Cc: waff...@chromium.org
The component updater work is likely a duplicate of issue 311724. Since there is likely additional work for Android and instrumentation tests, this should probably be blocked on it.

Comment 5 by tiborg@chromium.org, Jan 23 2018

Blocking on issue 311724. The steps outlined above are an alternative to a command line argument, which we have a lot of already. Either works for me. And I think it would be good if the solution works for both instrumentation and Telemetry tests.
Blocking: 808465

Comment 7 by tiborg@chromium.org, Feb 26 2018

Labels: -M-66 M-67
Project Member

Comment 8 by bugdroid1@chromium.org, Mar 1 2018

Comment 9 by tiborg@chromium.org, Apr 25 2018

Labels: -M-67 M-68
Components: Internals>XR
Removing Internals>VR component and assigning to Internals>XR
Components: -Internals>VR

Sign in to add a comment