-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1751 from buildtesters/dev-file_regex
Extract linenum from file_regex for metrics
- Loading branch information
Showing
7 changed files
with
93 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../tutorials/metrics/metrics_file_regex_with_invalid_linenum.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../tutorials/metrics/metrics_file_regex_with_linenum.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tutorials/metrics/metrics_file_regex_with_invalid_linenum.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
buildspecs: | ||
metric_file_regex_with_linenum_failure_example: | ||
executor: generic.local.bash | ||
type: script | ||
description: capture result metric from file path | ||
run: | | ||
echo -e "HPCG result is INVALID with a GFLOP/s rating of=28.1215" > hpcg.txt | ||
echo -e "HPCG result is VALID with a GFLOP/s rating of=68.9888" >> hpcg.txt | ||
tags: tutorials | ||
metrics: | ||
second_line: | ||
type: float | ||
file_regex: | ||
exp: '(\d+\.\d+)$' | ||
linenum: 10 | ||
file: hpcg.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
buildspecs: | ||
metric_file_regex_with_linenum_example: | ||
executor: generic.local.bash | ||
type: script | ||
description: capture result metric from file path | ||
run: | | ||
echo -e "HPCG result is INVALID with a GFLOP/s rating of=28.1215" > hpcg.txt | ||
echo -e "HPCG result is VALID with a GFLOP/s rating of=68.9888" >> hpcg.txt | ||
tags: tutorials | ||
metrics: | ||
last_line: | ||
type: float | ||
file_regex: | ||
exp: '(\d+\.\d+)$' | ||
linenum: -1 | ||
file: hpcg.txt | ||
without_linenum: | ||
type: float | ||
file_regex: | ||
exp: '(\d+\.\d+)$' | ||
file: hpcg.txt | ||
status: | ||
assert_eq: | ||
comparisons: | ||
- name: last_line | ||
ref: 68.9888 | ||
- name: without_linenum | ||
ref: 28.1215 |