diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-07-11 12:13:25 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-07-12 09:58:33 +0200 |
commit | 70cfd4babc0e03f9da6cff5e02ee4b0a1cf0d7a5 (patch) | |
tree | 699892c9b5ec4f40027a78aed76d951f3945869f /CC/test/RULES | |
parent | befb472b1b9650d485f46ae54227caea8bf81cdd (diff) | |
download | rules-cc-70cfd4babc0e03f9da6cff5e02ee4b0a1cf0d7a5.tar.gz |
Test rules: only provide to the summary action what is needed
... and add a rule allowing the summarizer to specify what it needs.
Diffstat (limited to 'CC/test/RULES')
-rw-r--r-- | CC/test/RULES | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/CC/test/RULES b/CC/test/RULES index e23359e..f61d9f7 100644 --- a/CC/test/RULES +++ b/CC/test/RULES @@ -81,7 +81,8 @@ ] , "summarizer": [ "Tool to aggregate the results of individual test runs (for flakyness" - , "detection) to an overall test result." + , "detection) to an overall test result. If more fields than the result" + , "itself is needed, those can be specified using the \"summarizer\" rule." ] } , "config_doc": @@ -157,6 +158,7 @@ , "host transition": ["transitions", "maybe for host"] , "stage": ["./", "../..", "stage_singleton_field"] , "run_test": "run_test" + , "field_list": ["", "field_list_provider"] } , "config_transitions": { "defaults": [{"type": "CALL_EXPRESSION", "name": "host transition"}] @@ -237,6 +239,18 @@ , "body": {"type": "CALL_EXPRESSION", "name": "stage"} } ] + , [ "summary artifacts" + , { "type": "++" + , "$1": + [ ["result"] + , { "type": "let*" + , "bindings": + [["provider", "artifacts"], ["fieldname", "summarizer"]] + , "body": {"type": "CALL_EXPRESSION", "name": "field_list"} + } + ] + } + ] ] , "body": {"type": "CALL_EXPRESSION", "name": "run_test"} } |