arc: Stabilize ureadahead environment for data collector

This fixes HOST side ureadahead generation by:
1) Explicitly clears tracing buffer in order to prevent ureadahead
accesses previous session data.
2) Explicitly open system and vendor images for ARCVM to let them appear
in tracing buffer. Mounting block device may not be traced as file open.

BUG=b:188000184
BUG=b:188119522
TEST=tast ${DUT} arc.DataCollector.vm_local using last failed PFQ kohaku
image. Could repro the problem per environment b:188000184. After
applying this fix ureadahead host generation is stable, multiple passes
show no failure. Note, there is some flakiness for guest side ureadahead
generation. However this is KI and should be resolved by retry (guest
flakiness rate is relatively low, ~10%).

Change-Id: I6a2999df21e5457f5a7eebfb78e06f1882e0c7d4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/2897274
Commit-Queue: Yury Khmel <khmel@chromium.org>
Tested-by: Yury Khmel <khmel@chromium.org>
Reviewed-by: Ricardo Quesada <ricardoq@chromium.org>
(cherry picked from commit d1440f9e1c9b6ce39170cdeb26339bdf37f1f653)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/2916964
Commit-Queue: Yury Khmel <khmel@google.com>
Auto-Submit: Yury Khmel <khmel@chromium.org>
Reviewed-by: Yury Khmel <khmel@google.com>
1 file changed
tree: ce16fd389af82e752c3db1aa2aa7a231ad45e8ca
  1. android/
  2. helpers/
  3. src/
  4. tools/
  5. vars/
  6. .gitignore
  7. LICENSE
  8. OWNERS
  9. PRESUBMIT.cfg
  10. PRESUBMIT.py
  11. README.md
  12. unblocked_terms.txt
README.md

Tast (tests)

This repository contains integration tests that are run by Tast.

Directory structure

  • helpers/ - Source code for binaries executed by tests.
    • local/ - Helpers for local tests that are compiled and installed to /usr/local/libexec/tast/helpers/local/cros by the tast-local-helpers-cros package.
  • src/chromiumos/tast/
    • local/ - Code related to local (i.e. on-device or “client”) tests.
      • bundles/ - Local test bundles.
        • cros/ - The “cros” local test bundle, containing standard Chrome OS tests. Tests are packaged by category.
      • ... - Packages used only by local tests.
    • remote/ - Code related to remote (i.e. off-device or “server”) tests.
      • bundles/ - Remote test bundles.
        • cros/ - The “cros” remote test bundle, containing standard Chrome OS tests. Tests are packaged by category.
      • ... - Packages used only by remote tests.

Shared code, the main tast executable, the local_test_runner and remote_test_runner executables responsible for running bundles, and documentation are located in the tast repository.

GoDoc