Commit faac61a
authored
Sync Diagnoses Library (#937)
* Update all_the_things for PY3.
PiperOrigin-RevId: 294830845
* Update PhaseDescriptor.with_known_args for PY3
PiperOrigin-RevId: 295795634
* validators: Don't go through the converter when the min/max is not set.
PiperOrigin-RevId: 299141301
* Treat string coordinates as single dimension
PiperOrigin-RevId: 300597711
* openhtf/core/test_descriptor: log and print error stacktrace from output callback funcs.
PiperOrigin-RevId: 300852825
* conf: Always use yaml.safe_load.
PiperOrigin-RevId: 301297425
* Add transforms to measurements.
Add the ability to transform measurement values on setting. Adding a built-in one for `with_precision` to automatically round floats.
PiperOrigin-RevId: 301469616
* Initial attrs library support.
The attrs library will be used to replace mutablerecords as part of introducing
type annotations.
PiperOrigin-RevId: 302761997
* test_state: Restructure phase context.
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
* conf_test: Don't modify actual command line for test.
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
* Test Executor: Log exceptions tracebacks.
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
* util/test: Improve error logging and add test state.
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
* diagnoses_lib: Add Measurement and Meta Interpreters
Add higher level signals that can process multiple measurements and phases to
deliver actionable feedback for the manufacturing pipeline.
PiperOrigin-RevId: 305086087
* Add debug logging for the phase outcome.
PiperOrigin-RevId: 305344262
* exe_test: Fix flakiness when thread stopped too soon.
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
* Diagnoses: Add conditional validators.
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
* Diagnoses: Add DiagnosesStore to TestDiagnosers.
Add DiagnosesStore as the second parameter to the run functions for
TestDiagnoser.
PiperOrigin-RevId: 306363506
* diagnoses: Add test case for a diagnosis generator that exceptions.
PiperOrigin-RevId: 306964803
* Conditional Validators: as_base_types needs to return a dict, not a set
PiperOrigin-RevId: 307078009
* Diagnoses: Add diagnosers to the test and phase records.
PiperOrigin-RevId: 307487021
* Diagnoses: Make possible_results a property of Diagnosers.
This allows output callbacks to directly use this information.
PiperOrigin-RevId: 307724752
* diagnoses: Add always_fail to diagnosers.
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
* diagnoses_lib: Add always_fail to json serialization.
PiperOrigin-RevId: 314197584
* Diagnoses: Make Diagnosis description optional.
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: 3161444721 parent 4fa142e commit faac61a
File tree
25 files changed
+2712
-207
lines changed- examples
- openhtf
- core
- util
- test
- core
- plugs
- util
25 files changed
+2712
-207
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
26 | | - | |
27 | | - | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | | - | |
32 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
92 | 97 | | |
93 | 98 | | |
94 | 99 | | |
95 | | - | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
24 | 32 | | |
25 | 33 | | |
26 | 34 | | |
| |||
0 commit comments