New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 875167 link

Starred by 1 user

Issue metadata

Status: Started
Owner:
Last visit > 30 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Feature



Sign in to add a comment

factory: Verify component test improvement

Project Member Reported by yysung@chromium.org, Aug 17

Issue description

This bug aims to track the progress of the ApproxMatchFunction and the improvement of the verify component test.

The verify component can verify the number and the status of peripheral components now.
We should add a new function to probe framework that can find the closest hardware that don't match any rule in the probe statement.

we can implement the work by the following steps.
1. Implement the ApproxMatchFunction in the probe framework.
2. Improve the verify component test by showing the results from the ApproxMatchFunction.
 

Comment 1 Deleted

Description: Show this description
Description: Show this description
Project Member

Comment 4 by bugdroid1@chromium.org, Aug 30

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/02acc2ec7d6fd8c860c8a4556caa2899cb36f7f7

commit 02acc2ec7d6fd8c860c8a4556caa2899cb36f7f7
Author: Yuan-Yao Sung <yysung@google.com>
Date: Thu Aug 30 16:53:05 2018

probe: Add function ApproxMatchFunction

- Add options "--approx-match" and "--mismatch-num" to the command
  "probe probe" to find the closest hardware.
- Implement the function ApproxMatchFunction.
- Change the return of MatchFunction from [{},...] to [{'values':
  {}}...].

BUG=chromium:875167
TEST=make test

Change-Id: I266b320c0d8a5cf76d58961bf612d30c5aef4996
Reviewed-on: https://chromium-review.googlesource.com/1179517
Commit-Ready: Yuan-Yao Sung <yysung@google.com>
Tested-by: Yuan-Yao Sung <yysung@google.com>
Reviewed-by: Yong Hong <yhong@google.com>

[modify] https://crrev.com/02acc2ec7d6fd8c860c8a4556caa2899cb36f7f7/py/probe/common_unittest.py
[add] https://crrev.com/02acc2ec7d6fd8c860c8a4556caa2899cb36f7f7/py/probe/functions/approx_match.py
[modify] https://crrev.com/02acc2ec7d6fd8c860c8a4556caa2899cb36f7f7/py/probe/probe_cmdline.py
[modify] https://crrev.com/02acc2ec7d6fd8c860c8a4556caa2899cb36f7f7/py/probe/common.py
[modify] https://crrev.com/02acc2ec7d6fd8c860c8a4556caa2899cb36f7f7/py/probe/functions/match.py
[add] https://crrev.com/02acc2ec7d6fd8c860c8a4556caa2899cb36f7f7/py/probe/functions/approx_match_unittest.py
[modify] https://crrev.com/02acc2ec7d6fd8c860c8a4556caa2899cb36f7f7/py/probe/probe_utils.py

Project Member

Comment 5 by bugdroid1@chromium.org, Sep 3

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/1deff1326587d7f9e810dd22867ba4c6909c8ae5

commit 1deff1326587d7f9e810dd22867ba4c6909c8ae5
Author: Yuan-Yao Sung <yysung@google.com>
Date: Mon Sep 03 09:20:52 2018

pytest: Add approx match to verify component test

- Show the closest hardwares when the number of components from probed
  results and from device data are mismatched.

BUG=chromium:875167
Test=manually run on device

Change-Id: I8239e0f37be2695ee5bb440a635d58c1ac66b9ed
Reviewed-on: https://chromium-review.googlesource.com/1183054
Commit-Ready: Yuan-Yao Sung <yysung@google.com>
Tested-by: Yuan-Yao Sung <yysung@google.com>
Reviewed-by: Cheng-Han Yang <chenghan@chromium.org>

[modify] https://crrev.com/1deff1326587d7f9e810dd22867ba4c6909c8ae5/py/test/pytests/verify_component_static/verify_component.js
[modify] https://crrev.com/1deff1326587d7f9e810dd22867ba4c6909c8ae5/py/test/pytests/verify_component.py

Status: Started (was: Untriaged)

Sign in to add a comment