Commit 94bebbc
authored
Branches (#960)
* Drop py2.7 tests from travis config and setup.py.
* diagnoses_lib: Serialize diagnoses result values, not names
Diagnosis results should values should be serialized out rather than the enum constant names.
PiperOrigin-RevId: 318469885
* Attachments: Handle case where NamedTemporaryFile object stops working.
We have noticed times where we get bad file descriptor exceptions trying to
reload data from the temporary files. For now, just return empty byte strings
while we investigate more.
Also, adding a callback to close the Attachments' temporary files.
PiperOrigin-RevId: 319879865
* test_record: Fix lint issues.
PiperOrigin-RevId: 320025482
* output callbacks: Fix CloseAttachments
Attachments are stored in a dictionary under the phase record, not a list.
PiperOrigin-RevId: 321406529
* OpenHTF: Fix lint issues and run autoformatter.
PiperOrigin-RevId: 323661267
* Initial pytype-based type annotations.
PiperOrigin-RevId: 324720299
* conf: Use inspect.getfullargspec.
PiperOrigin-RevId: 324754078
* Internal change
PiperOrigin-RevId: 325271171
* Only have the attachment's temporary file open while reading/writing.
If there are a lot of attachments, the program can exceed Linux's max allowed open files per process.
PiperOrigin-RevId: 325490340
* Add core annotations and replace mutablerecords and namedtuple with attr.
PhaseDescriptor will be in the next commit.
PiperOrigin-RevId: 327075946
* Rearrange and add comments for the Measurement fields.
PiperOrigin-RevId: 327140593
* Internal change
PiperOrigin-RevId: 327735936
* Convert PhaseOptions and PhaseDescriptor to attr.
PiperOrigin-RevId: 328778682
* callbacks: Add type annotations
Add type annotations to the callbacks library and break apart some complex
types. Also breaking out the JSON conversion logic to an independent function
for easier use by other modules.
PiperOrigin-RevId: 328972148
* Internal change
PiperOrigin-RevId: 329550447
* Internal change
PiperOrigin-RevId: 331590164
* Internal change
PiperOrigin-RevId: 331890539
* Remove TestPhase alias.
The TestPhase alias for PhaseOptions has long been deprecated. Removing it.
PiperOrigin-RevId: 332291802
* Add more type annotations.
PiperOrigin-RevId: 332519023
* Remove plugs-phase_descriptor circular dependency
Remove the plugs to phase_descriptor circular dependency by moving the pieces
phase_descriptor depends on to a new core/base_plugs.py file.
PiperOrigin-RevId: 332527874
* PhaseDescriptor: with_plugs and with_args now ignore unknowns
Change with_plugs and with_args to use their with_known_plugs and
with_known_args implementations instead.
PiperOrigin-RevId: 332546916
* Add type checking to unit tests to verify things are working.
PiperOrigin-RevId: 332551203
* test_descriptor: Remove Test Teardown.
Test teardown was deprecated in favor of PhaseGroup teardowns. Fully removing
them.
PiperOrigin-RevId: 333112589
* Add PhaseNode and implement PhaseSequence.
Phase nodes are now the basic building block of the OpenHTF execution engine.
Phase sequence is a phase node that constains a sequence of phase nodes. Phase
groups now use phase sequences to contain its setup, main, and teardown phases.
PiperOrigin-RevId: 334461205
* Implement Phase Branches
Phase branches run phases conditionally based on triggered diagnosis results.
PiperOrigin-RevId: 335460872
* PhaseExecutor: Raise on invalid phase result.
PiperOrigin-RevId: 335469722
* Implement Subtests.
Subtests are a collection of phases that can indepenently fail and skip the rest
of the phases while still working with PhaseGroup teardowns.
PiperOrigin-RevId: 335472411
* util/test: Allow customizing the test_start_function.
The OpenHTF TestCase can now customize the test start function by setting the
`test_start_function` attribute.
This change will now force unit tests to call super().setUp() in all cases.
PiperOrigin-RevId: 335509542
* Implement Phase Checkpoints
Phase checkpoints are nodes that check if a diagnosis result has been triggered
or a simple set of phases has failed. In those cases, they will either be
resolved as FAIL_SUBTEST or STOP.
PiperOrigin-RevId: 335513243
* Refactor TestApi and expose diagnoses store.
The TestApi object should just be a proxy to the functions on the PhaseState
and TestState instances.
Add the diagnoses store to the API for simpler access during phases.
PiperOrigin-RevId: 336213159
* Subtest skip phases when they fail.
Subtests should skip the later phases with special handling for other nodes as
documented in event_sequence.md.
PiperOrigin-RevId: 336386553
* Fix typo in TestApi.diagnoses_store
PiperOrigin-RevId: 336408351
* Internal change
PiperOrigin-RevId: 336691169
* Add DimensionPivot.
DimensionPivot is a validator that runs a subvalidator on each value
independently for a dimensioned measurement. If any value fails, the
measurement is a failure.
PiperOrigin-RevId: 336730422
* Drop PY2 support from OpenHTF.
PiperOrigin-RevId: 3371396291 parent 310b64d commit 94bebbc
102 files changed
Lines changed: 7697 additions & 3741 deletions
File tree
- bin
- docs
- examples
- openhtf
- core
- output
- callbacks
- proto
- servers
- web_gui/src/app/plugs
- plugs
- cambrionix
- generic
- usb
- util
- pylint_plugins
- test
- core
- output/callbacks
- plugs
- util
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
| |||
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
43 | 40 | | |
44 | 41 | | |
45 | | - | |
46 | 42 | | |
| 43 | + | |
47 | 44 | | |
48 | | - | |
| 45 | + | |
49 | 46 | | |
50 | 47 | | |
51 | 48 | | |
52 | 49 | | |
53 | | - | |
54 | 50 | | |
55 | 51 | | |
56 | | - | |
57 | | - | |
58 | | - | |
| 52 | + | |
59 | 53 | | |
60 | 54 | | |
61 | 55 | | |
| |||
100 | 94 | | |
101 | 95 | | |
102 | 96 | | |
103 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| 124 | + | |
123 | 125 | | |
124 | 126 | | |
| 127 | + | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| |||
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
167 | 171 | | |
168 | 172 | | |
169 | 173 | | |
170 | 174 | | |
171 | 175 | | |
172 | 176 | | |
173 | | - | |
| 177 | + | |
174 | 178 | | |
175 | | - | |
176 | | - | |
| 179 | + | |
177 | 180 | | |
178 | 181 | | |
179 | 182 | | |
180 | | - | |
181 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
| |||
188 | 192 | | |
189 | 193 | | |
190 | 194 | | |
191 | | - | |
192 | | - | |
| 195 | + | |
193 | 196 | | |
194 | | - | |
| 197 | + | |
195 | 198 | | |
196 | 199 | | |
197 | | - | |
198 | | - | |
| 200 | + | |
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
| |||
209 | 211 | | |
210 | 212 | | |
211 | 213 | | |
212 | | - | |
213 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
214 | 218 | | |
215 | 219 | | |
216 | 220 | | |
217 | 221 | | |
218 | 222 | | |
219 | | - | |
| 223 | + | |
220 | 224 | | |
221 | 225 | | |
222 | 226 | | |
| |||
234 | 238 | | |
235 | 239 | | |
236 | 240 | | |
237 | | - | |
238 | | - | |
239 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
240 | 244 | | |
241 | 245 | | |
242 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
16 | 61 | | |
17 | 62 | | |
18 | 63 | | |
| |||
23 | 68 | | |
24 | 69 | | |
25 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
26 | 76 | | |
27 | 77 | | |
28 | 78 | | |
29 | 79 | | |
30 | 80 | | |
31 | 81 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
42 | 90 | | |
43 | 91 | | |
44 | 92 | | |
45 | 93 | | |
46 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
47 | 117 | | |
48 | 118 | | |
49 | 119 | | |
| |||
0 commit comments