New issue
Advanced search Search tips

Issue 900291 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 14
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

memd: add autotest

Project Member Reported by semenzato@chromium.org, Oct 30

Issue description

Several bugs from seccomp, minijail, and kernel variations could have been avoided by an autotest in the canary builders.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Nov 1

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform2/+/c1fcde698293d01fe52ca20fc6dc1212fd4996d7

commit c1fcde698293d01fe52ca20fc6dc1212fd4996d7
Author: Luigi Semenzato <semenzato@chromium.org>
Date: Thu Nov 01 04:59:39 2018

system_api: generate Go bindings for MetricsEvent

These are used by the platform.Memd tast test.

BUG= chromium:900291 
TEST=compiled and ran platform.Memd

Change-Id: I4111c87e1f779160d97c595a497b818fa883a7e0
Reviewed-on: https://chromium-review.googlesource.com/1308497
Commit-Ready: Luigi Semenzato <semenzato@chromium.org>
Tested-by: Luigi Semenzato <semenzato@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>

[modify] https://crrev.com/c1fcde698293d01fe52ca20fc6dc1212fd4996d7/system_api/system_api.gyp

Project Member

Comment 2 by bugdroid1@chromium.org, Nov 6

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/tast-tests/+/cfc4746fb566c2904410cb5407e47bcb8be9fce6

commit cfc4746fb566c2904410cb5407e47bcb8be9fce6
Author: Luigi Semenzato <semenzato@chromium.org>
Date: Tue Nov 06 01:28:30 2018

add platform.Memd tast-test

This test checks that memd is running and responding to
events of interest by creating clip files.

The events of interest are faked.  A tab discard is simulated
by sending a D-Bus message that looks as if it came from Chrome.
A kernel OOM kill is simulated by producing a syslog line that
is recognized by the anomaly_collector daemon.  Thus this also
tests the OOM-kill reporting functionality of the anomaly collector.

BUG= chromium:900291 
TEST=ran the test
CQ-DEPEND=CL:1308497,CL:1308673

Change-Id: Ibd278e4afe346dacd3ac37f8b10ce5a62d00a445
Reviewed-on: https://chromium-review.googlesource.com/1306913
Commit-Ready: Luigi Semenzato <semenzato@chromium.org>
Tested-by: Luigi Semenzato <semenzato@chromium.org>
Reviewed-by: Luigi Semenzato <semenzato@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>

[add] https://crrev.com/cfc4746fb566c2904410cb5407e47bcb8be9fce6/src/chromiumos/tast/local/bundles/cros/platform/memd.go

Status: Fixed (was: Started)
This seems to work.

Sign in to add a comment