Skip to content

Sync Diagnoses Library#937

Merged
arsharma1 merged 24 commits intogoogle:masterfrom
arsharma1:attempt_diag_merge
Jun 23, 2020
Merged

Sync Diagnoses Library#937
arsharma1 merged 24 commits intogoogle:masterfrom
arsharma1:attempt_diag_merge

Conversation

@arsharma1
Copy link
Collaborator

@arsharma1 arsharma1 commented Jun 22, 2020

Synchronize the diagnoses library.


This change is Reviewable

arsharma1 added 24 commits June 22, 2020 14:05
PiperOrigin-RevId: 294830845
PiperOrigin-RevId: 300597711
…put callback funcs.

PiperOrigin-RevId: 300852825
PiperOrigin-RevId: 301297425
Add the ability to transform measurement values on setting.  Adding a built-in one for `with_precision` to automatically round floats.

PiperOrigin-RevId: 301469616
The attrs library will be used to replace mutablerecords as part of introducing
type annotations.

PiperOrigin-RevId: 302761997
Restructure the phase context to remove the hidden context in PhaseState.
Instead, just have the running_phase_context call a finalize function in
PhaseState to handle all the work.

In addition, add the TestState to the PhaseState and remove optional variables.

Lastly, include general readability improvements.

PiperOrigin-RevId: 302824781
The conf_test wants to run argparse against the command line, but we can use
alternate arguments to not modify the real command line.

PiperOrigin-RevId: 302929683
Log exceptions tracebacks for exceptions that occur in the TestExecutor
thread to expose the underlying issues to the user.  These can include
plug issues that are not otherwise surfaced.

PiperOrigin-RevId: 304090542
Improve the error logging when tests and phases fail to aid debugging.

Adding a test_state variable to the test case that was just used during yields_phases to increase testability.

Added a unit test that fails if one attempts to use yields_phases/patch_plugs without inheriting from openhtf.util.test.TestCase.

Lastly, fixed lint issues.

PiperOrigin-RevId: 304514879
Add higher level signals that can process multiple measurements and phases to
deliver actionable feedback for the manufacturing pipeline.

PiperOrigin-RevId: 305086087
PiperOrigin-RevId: 305344262
The abort logic fails the thread abort exception occurs while the phase thread
is still starting the abort thread.  Adding an additional event to wait until
ready to trigger the abort.

PiperOrigin-RevId: 305944255
Add validators that are only used when a Diagnosis Result has been issued for
the test.

Fix measurements.py lint issues.

Add a test state modification callback to openhtf.util.test.TestCase so tests can add test state or diagnoses prior to yielding phases.

PiperOrigin-RevId: 306357852
Add DiagnosesStore as the second parameter to the run functions for
TestDiagnoser.

PiperOrigin-RevId: 306363506
This allows output callbacks to directly use this information.

PiperOrigin-RevId: 307724752
Add an `always_fail` field to diagnosers that cause the diagnoses created by the
diagnoser to always have their `is_failure` field set to True.

PiperOrigin-RevId: 313693148
Default the the diagnosis descriptions to empty strings to leave setting them up to developers.

Fixed the order of attr.ib calls so that types are first, then defaults, to add clarity.

PiperOrigin-RevId: 316144472
@arsharma1 arsharma1 requested a review from cricdecyan June 22, 2020 21:46
@arsharma1 arsharma1 merged commit faac61a into google:master Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants