|
49 | 49 | {{ $passed := int (default 0 $testData.tests.passed) }} |
50 | 50 | {{ $failed := int (default 0 $testData.tests.failed) }} |
51 | 51 | {{ $skipped := int (default 0 $testData.tests.skipped) }} |
52 | | - {{ $total := 6 }} |
53 | | - {{ $effectivePassed := $passed }} |
54 | 52 | {{ $regressionDecision := default "" $testData.metadata.regression_decision }} |
55 | 53 | {{ $regressionReason := default "" $testData.metadata.regression_reason }} |
56 | 54 | {{ $regressionApplicability := default "" $testData.metadata.regression_applicability }} |
57 | 55 | {{ $isPackageManagerSkip := or (eq $regressionDecision "not_applicable_package_manager") (and (eq $regressionApplicability "not_applicable") (eq $regressionReason "package_manager_installed")) }} |
58 | 56 | {{ $isCurrentLatestSkip := in (slice "no_newer_stable_available" "current_is_latest_stable" "pinned_is_latest" "already_current" "already_at_latest" "at_latest" "current_is_latest") $regressionDecision }} |
59 | | - {{ $isSafeRegressionSkip := or $isPackageManagerSkip $isCurrentLatestSkip }} |
60 | 57 | {{ $deferredRegressionDecisions := slice "manual_review_needed" "metadata_review_required" "hold_current_arm_dependency_gap" "not_configured" "applicable_deferred" "runtime_validation_not_automated" "bounded_runtime_deferred" "arm64_desktop_artifact_unavailable" }} |
61 | 58 | {{ $testRunURL := default "" $testData.run.url }} |
62 | 59 |
|
63 | | - {{ if and $isSafeRegressionSkip (eq $failed 0) (lt $effectivePassed $total) }} |
64 | | - {{ $effectivePassed = add $effectivePassed 1 }} |
65 | | - {{ end }} |
66 | | - {{ if gt $effectivePassed $total }} |
67 | | - {{ $effectivePassed = $total }} |
68 | | - {{ end }} |
69 | | - |
70 | | - {{ $badgeDenominator := $effectivePassed }} |
| 60 | + {{ $badgeDenominator := $passed }} |
71 | 61 | {{ if gt $failed 0 }} |
72 | 62 | {{ $badgeDenominator = add $passed $failed }} |
73 | 63 | {{ end }} |
74 | 64 | {{ $badgeText := "0 passing" }} |
75 | 65 | {{ $badgeColor := "#dc3545" }} |
76 | | - {{ if gt $effectivePassed 0 }} |
77 | | - {{ $badgeText = printf "%v/%v passing" $effectivePassed $badgeDenominator }} |
| 66 | + {{ if gt $passed 0 }} |
| 67 | + {{ $badgeText = printf "%v/%v passing" $passed $badgeDenominator }} |
78 | 68 | {{ if eq $failed 0 }} |
79 | 69 | {{ $badgeColor = "#28a745" }} |
80 | 70 | {{ end }} |
|
0 commit comments