Skip to content
Snippets Groups Projects
Commit eeb1df18 authored by Wim Leers's avatar Wim Leers
Browse files

Decreases in `objectPropertyPathsFullyValidatable` do not indicate a regression.

parent 61ac8eb2
No related branches found
No related tags found
1 merge request!7300Decreases in `objectPropertyPathsFullyValidatable` do not indicate a regression.
......@@ -470,12 +470,13 @@ default:
# Output diff, but never fail the job.
- diff -u HEAD.json MR.json || true
# Determine if this increased or decreased coverage. Fail the job if it is worse. All the
# percentages must be equal or higher, with the exception of `typesInUse`.
# percentages must be equal or higher, with the exception of `typesInUse` and
# `objectPropertyPathsFullyValidatable`.
- |
php -r '
$head = json_decode(file_get_contents("HEAD.json"), TRUE)["assessment"];
$mr = json_decode(file_get_contents("MR.json"), TRUE)["assessment"];
unset($head["_description"], $head["typesInUse"], $mr["_description"], $mr["typesInUse"]);
unset($head["_description"], $head["typesInUse"], $mr["_description"], $mr["typesInUse"], $mr["objectPropertyPathsFullyValidatable"]);
$impact = array_map(fn (float $h, float $m) => $m-$h, $head, $mr);
exit((int) (min($impact) < 0));
'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment