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

Issue 659086 link

Starred by 3 users

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug

Blocking:
issue 659029



Sign in to add a comment

vpd should signal different error conditions with different exit codes.

Project Member Reported by tnagel@chromium.org, Oct 25 2016

Issue description

At the moment, as far as I can see, all errors return exit code 1 which makes it hard to add metrics to track the different types of errors.

 

Comment 1 by tnagel@chromium.org, Oct 25 2016

Blocking: 659029
Owner: dhend...@chromium.org
Status: Assigned (was: Untriaged)

Comment 4 by tnagel@chromium.org, Oct 27 2016

Cc: -dhend...@chromium.org tnagel@chromium.org igorcov@chromium.org
Status: Started (was: Assigned)
Project Member

Comment 5 by bugdroid1@chromium.org, Oct 29 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/vpd/+/6c6fc855a162cfb661b08827f47744128f635c3a

commit 6c6fc855a162cfb661b08827f47744128f635c3a
Author: David Hendricks <dhendrix@chromium.org>
Date: Wed Oct 26 04:01:05 2016

vpd: Introduce new error codes to return to shell.

This patch adds new error codes to lib_vpd.h and replaces return
values and "retval" assignments to better indicate the type of error
encountered.

This allows us to know if vpd is encountering flashrom errors,
corruption or bugs in the VPD itself, or unrelated system issue such
as full filesystem, low memory, etc.

BUG= chromium:659086 
BRANCH=none
TEST=compiled and ran unit tests (make test)

Change-Id: I4963faeb82f8818fd46db3a0a24881c1bdfbc46c
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/403471

[modify] https://crrev.com/6c6fc855a162cfb661b08827f47744128f635c3a/tests/test_equal.sh
[modify] https://crrev.com/6c6fc855a162cfb661b08827f47744128f635c3a/tests/test_multi_add_del.sh
[modify] https://crrev.com/6c6fc855a162cfb661b08827f47744128f635c3a/tests/functions.sh
[modify] https://crrev.com/6c6fc855a162cfb661b08827f47744128f635c3a/lib/vpd_container.c
[modify] https://crrev.com/6c6fc855a162cfb661b08827f47744128f635c3a/vpd.c
[modify] https://crrev.com/6c6fc855a162cfb661b08827f47744128f635c3a/tests/test_basic.sh
[modify] https://crrev.com/6c6fc855a162cfb661b08827f47744128f635c3a/lib/lib_vpd_test.c
[modify] https://crrev.com/6c6fc855a162cfb661b08827f47744128f635c3a/lib/vpd_encode.c
[modify] https://crrev.com/6c6fc855a162cfb661b08827f47744128f635c3a/tests/test_seg_fault.sh
[modify] https://crrev.com/6c6fc855a162cfb661b08827f47744128f635c3a/include/lib/lib_vpd.h
[modify] https://crrev.com/6c6fc855a162cfb661b08827f47744128f635c3a/lib/vpd_decode.c

Cc: martinroth@chromium.org
Status: Fixed (was: Started)
Project Member

Comment 7 by bugdroid1@chromium.org, Mar 8 2017

Labels: merge-merged-factory-reef-8811.B
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/vpd/+/6c72b02a51dae849fdcc3429766a79b6203b7325

commit 6c72b02a51dae849fdcc3429766a79b6203b7325
Author: David Hendricks <dhendrix@chromium.org>
Date: Wed Mar 08 05:11:40 2017

vpd: Introduce new error codes to return to shell.

This patch adds new error codes to lib_vpd.h and replaces return
values and "retval" assignments to better indicate the type of error
encountered.

This allows us to know if vpd is encountering flashrom errors,
corruption or bugs in the VPD itself, or unrelated system issue such
as full filesystem, low memory, etc.

BUG= chromium:659086 
BRANCH=none
TEST=compiled and ran unit tests (make test)

Change-Id: I4963faeb82f8818fd46db3a0a24881c1bdfbc46c
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/403471
Reviewed-on: https://chromium-review.googlesource.com/451221
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Commit-Queue: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>

[modify] https://crrev.com/6c72b02a51dae849fdcc3429766a79b6203b7325/tests/test_equal.sh
[modify] https://crrev.com/6c72b02a51dae849fdcc3429766a79b6203b7325/tests/test_multi_add_del.sh
[modify] https://crrev.com/6c72b02a51dae849fdcc3429766a79b6203b7325/tests/functions.sh
[modify] https://crrev.com/6c72b02a51dae849fdcc3429766a79b6203b7325/lib/vpd_container.c
[modify] https://crrev.com/6c72b02a51dae849fdcc3429766a79b6203b7325/vpd.c
[modify] https://crrev.com/6c72b02a51dae849fdcc3429766a79b6203b7325/tests/test_basic.sh
[modify] https://crrev.com/6c72b02a51dae849fdcc3429766a79b6203b7325/lib/lib_vpd_test.c
[modify] https://crrev.com/6c72b02a51dae849fdcc3429766a79b6203b7325/lib/vpd_encode.c
[modify] https://crrev.com/6c72b02a51dae849fdcc3429766a79b6203b7325/tests/test_seg_fault.sh
[modify] https://crrev.com/6c72b02a51dae849fdcc3429766a79b6203b7325/include/lib/lib_vpd.h
[modify] https://crrev.com/6c72b02a51dae849fdcc3429766a79b6203b7325/lib/vpd_decode.c

Project Member

Comment 8 by bugdroid1@chromium.org, Mar 8 2017

Labels: merge-merged-factory-strago-7458.B
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/vpd/+/8a7fcdb17bc868cd18b89ca51f9d73cdb43f0230

commit 8a7fcdb17bc868cd18b89ca51f9d73cdb43f0230
Author: David Hendricks <dhendrix@chromium.org>
Date: Wed Mar 08 05:17:09 2017

vpd: Introduce new error codes to return to shell.

This patch adds new error codes to lib_vpd.h and replaces return
values and "retval" assignments to better indicate the type of error
encountered.

This allows us to know if vpd is encountering flashrom errors,
corruption or bugs in the VPD itself, or unrelated system issue such
as full filesystem, low memory, etc.

BUG= chromium:659086 
BRANCH=none
TEST=compiled and ran unit tests (make test)

Change-Id: I4963faeb82f8818fd46db3a0a24881c1bdfbc46c
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/403471
(cherry picked from commit 6c6fc855a162cfb661b08827f47744128f635c3a)
Reviewed-on: https://chromium-review.googlesource.com/451223
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Commit-Queue: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Trybot-Ready: Hung-Te Lin <hungte@chromium.org>

[modify] https://crrev.com/8a7fcdb17bc868cd18b89ca51f9d73cdb43f0230/tests/test_equal.sh
[modify] https://crrev.com/8a7fcdb17bc868cd18b89ca51f9d73cdb43f0230/tests/test_multi_add_del.sh
[modify] https://crrev.com/8a7fcdb17bc868cd18b89ca51f9d73cdb43f0230/tests/functions.sh
[modify] https://crrev.com/8a7fcdb17bc868cd18b89ca51f9d73cdb43f0230/lib/vpd_container.c
[modify] https://crrev.com/8a7fcdb17bc868cd18b89ca51f9d73cdb43f0230/vpd.c
[modify] https://crrev.com/8a7fcdb17bc868cd18b89ca51f9d73cdb43f0230/tests/test_basic.sh
[modify] https://crrev.com/8a7fcdb17bc868cd18b89ca51f9d73cdb43f0230/lib/lib_vpd_test.c
[modify] https://crrev.com/8a7fcdb17bc868cd18b89ca51f9d73cdb43f0230/lib/vpd_encode.c
[modify] https://crrev.com/8a7fcdb17bc868cd18b89ca51f9d73cdb43f0230/tests/test_seg_fault.sh
[modify] https://crrev.com/8a7fcdb17bc868cd18b89ca51f9d73cdb43f0230/include/lib/lib_vpd.h
[modify] https://crrev.com/8a7fcdb17bc868cd18b89ca51f9d73cdb43f0230/lib/vpd_decode.c

Project Member

Comment 9 by bugdroid1@chromium.org, Mar 8 2017

Labels: merge-merged-factory-glados-7828.B
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/vpd/+/6c651764ff04b6933489fcc7cb883a50da3dd0bf

commit 6c651764ff04b6933489fcc7cb883a50da3dd0bf
Author: David Hendricks <dhendrix@chromium.org>
Date: Wed Mar 08 05:18:48 2017

vpd: Introduce new error codes to return to shell.

This patch adds new error codes to lib_vpd.h and replaces return
values and "retval" assignments to better indicate the type of error
encountered.

This allows us to know if vpd is encountering flashrom errors,
corruption or bugs in the VPD itself, or unrelated system issue such
as full filesystem, low memory, etc.

BUG= chromium:659086 
BRANCH=none
TEST=compiled and ran unit tests (make test)

Change-Id: I4963faeb82f8818fd46db3a0a24881c1bdfbc46c
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/403471
Reviewed-on: https://chromium-review.googlesource.com/451339
Commit-Queue: Hung-Te Lin <hungte@chromium.org>
Trybot-Ready: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>

[modify] https://crrev.com/6c651764ff04b6933489fcc7cb883a50da3dd0bf/tests/test_equal.sh
[modify] https://crrev.com/6c651764ff04b6933489fcc7cb883a50da3dd0bf/tests/test_multi_add_del.sh
[modify] https://crrev.com/6c651764ff04b6933489fcc7cb883a50da3dd0bf/tests/functions.sh
[modify] https://crrev.com/6c651764ff04b6933489fcc7cb883a50da3dd0bf/lib/vpd_container.c
[modify] https://crrev.com/6c651764ff04b6933489fcc7cb883a50da3dd0bf/vpd.c
[modify] https://crrev.com/6c651764ff04b6933489fcc7cb883a50da3dd0bf/tests/test_basic.sh
[modify] https://crrev.com/6c651764ff04b6933489fcc7cb883a50da3dd0bf/lib/lib_vpd_test.c
[modify] https://crrev.com/6c651764ff04b6933489fcc7cb883a50da3dd0bf/lib/vpd_encode.c
[modify] https://crrev.com/6c651764ff04b6933489fcc7cb883a50da3dd0bf/tests/test_seg_fault.sh
[modify] https://crrev.com/6c651764ff04b6933489fcc7cb883a50da3dd0bf/include/lib/lib_vpd.h
[modify] https://crrev.com/6c651764ff04b6933489fcc7cb883a50da3dd0bf/lib/vpd_decode.c

Comment 10 by dchan@google.com, Apr 17 2017

Labels: VerifyIn-59

Comment 11 by dchan@google.com, May 30 2017

Labels: VerifyIn-60
Status: Verified (was: Fixed)

Sign in to add a comment