|
Formally define step config, pass to stream.
Formally define the step configuration dictionary members using a
namedtuple. Replace instances of step dictionary and step dictionary
manipulation with the new "recipe_api.StepConfig".
Pass this new StepConfig struct to the "new_step_stream" stream API call
instead of just some select step properties. The StreamEngine
implementation is responsible for deciding how to process and/or use it.
Similarly define a rendered StepConfig as a RenderedStep. Formally pass
that around to components requiring a rendered value.
This allows for greater control over the specification, manipulation,
and consumption of this internal struct.
Change expectation rendering to refrain from rendering empty StepConfig
parameters. This means that if "cmd" is empty, it will just not appear,
which is more consistent with the intent of the step than an empty list.
BUG= chromium:628770
TEST=local
Committed: https://github.com/luci/recipes-py/commit/be22c9a16dd89f9780e193a24edd98346870271d
Total comments: 4
Total comments: 17
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+238 lines, -184 lines) |
Patch |
 |
M |
recipe_engine/recipe_api.py
|
View
|
1
|
2 chunks |
+54 lines, -0 lines |
13 comments
|
Download
|
 |
M |
recipe_engine/run.py
|
View
|
1
2
3
|
5 chunks |
+13 lines, -29 lines |
0 comments
|
Download
|
 |
M |
recipe_engine/simulation_test.py
|
View
|
1
2
|
1 chunk |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
recipe_engine/step_runner.py
|
View
|
1
2
|
10 chunks |
+105 lines, -86 lines |
3 comments
|
Download
|
 |
M |
recipe_engine/stream.py
|
View
|
1
2
|
7 chunks |
+27 lines, -28 lines |
0 comments
|
Download
|
 |
M |
recipe_engine/types.py
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
recipe_engine/unittests/stream_test.py
|
View
|
1
|
3 chunks |
+10 lines, -9 lines |
0 comments
|
Download
|
 |
M |
recipe_engine/util.py
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
recipe_modules/platform/example.expected/linux64.json
|
View
|
|
1 chunk |
+0 lines, -1 line |
1 comment
|
Download
|
 |
M |
recipe_modules/platform/example.expected/mac64.json
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
recipe_modules/platform/example.expected/win32.json
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
recipe_modules/step/api.py
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
recipe_modules/step/example.expected/basic.json
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
recipe_modules/step/example.expected/catch_timeout.json
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
recipe_modules/step/example.expected/defer_results.json
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
recipe_modules/step/example.expected/exceptional.json
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
recipe_modules/step/example.expected/infra_failure.json
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
recipe_modules/step/example.expected/invalid_access.json
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
recipe_modules/step/example.expected/timeout.json
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
recipe_modules/step/example.expected/warning.json
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
recipes.py
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
recipes/engine_tests/trigger.expected/basic.json
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
recipes/example/nested.expected/basic.json
|
View
|
1
2
3
|
3 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
Depends on Patchset:
Total messages: 42 (37 generated)
|