commit | 9e4da79b438838e33c9aa32b269a9eaf457c2c70 | [log] [tgz] |
---|---|---|
author | Mark Seaborn <mseaborn@google.com> | Fri Jan 17 20:38:20 2020 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Fri Jan 17 20:38:20 2020 +0000 |
tree | 7fb891c838ce5b17e9daefdd30530ea3f11e139b | |
parent | defa6cb89e58d3aef07beb80a72ff9d9f65ccd46 [diff] |
[benchmarks][scenic] Fix bad testing caused by missing package dependency This fixes a regression introduced by this infra config change in integration.git (only visible in the internal integration.git): [benchmarks] Build "terminal" instead of "core" on peridot-perf and perfcompare (I2dd963926a3c4c445a5b51df74dd8b983ac91382) That change was not directly testable, but it was tested via this CL: https://fuchsia-review.googlesource.com/c/fuchsia/+/350503 That change switched to a much-reduced set of package dependencies, but it removed a package, set_renderer_params, used by the Scenic benchmarks. Before, the logs would contain this: == fuchsia.scenic.hello_scenic: Configuring scenic renderer params... [WARNING:src/ui/tools/set_renderer_params/main.cc(22)] This tool is intended for testing and debugging purposes only and may cause problems if invoked incorrectly. After, they contained this: == fuchsia.scenic.hello_scenic: Configuring scenic renderer params... fuchsia-pkg://fuchsia.com/set_renderer_params#meta/set_renderer_params.cmx: not found That means the variants of the Scenic tests were failing to set different Scenic parameters, and so were failing to test the variants they were intended to test. This explains why the perfcompare trybot's results on https://fuchsia-review.googlesource.com/c/fuchsia/+/350503 showed performance differences on various Scenic tests! I only noticed this cause when adding an SL4F wrapper for these tests and seeing the error message. This mistake is caught by enabling shell error handling, which requires two changes: * Ignore errors from the killall commands using "|| true". This matches garnet/tests/benchmarks/input_latency/*.sh, run by garnet_input_latency_benchmarks_test. * Add the missing package dependency, set_renderer_params. Also, avoid using $1 when it might be undefined. This happens not to be covered by the test cases, because those exit the while loop via the "break" case first. However, it's better to change this, and it also matches garnet/tests/benchmarks/input_latency/*.sh. Bug: 23091 Test: on CQ: terminal-x64-release (newer, SL4F), peridot-perf (older, non-SL4F) * local testing: "fx set terminal.x64", "fx run-e2e-tests scenic_benchmarks_test" Change-Id: Ie0d15a8e522a6b3ab717366bac09249f0e5a0621
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See fuchsia.dev.