rspec-mergify 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mergify/rspec/ci_insights.rb +3 -2
- data/lib/mergify/rspec/configuration.rb +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3cae9365ba9ebc982ee1ff4dcc92ab25b8e0cc8c3809d51413572038c55d53f6
|
|
4
|
+
data.tar.gz: a8b19ca0d443817a1a604db37da48df22891ca26f23249a4d6a0587fb9eb53d4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d9446abd9478f1257e29a580a5151ddcf753daff52ef00fdbb6341b0d6d89252bcdcb8cd8f0f275ee4f69533e6931fc25d8e8fbced1cacbfce6d50d9d3fef1a
|
|
7
|
+
data.tar.gz: f5bdf235efe83c22f92ac88e4c97ef17dc2f48f48c08eeb7f323becb708413b3a3b5dcec33f69d5d9300e0bd38e60f0872ff1a52c3883c6cee0a4ff7f8749ec7
|
|
@@ -115,7 +115,8 @@ module Mergify
|
|
|
115
115
|
|
|
116
116
|
def extract_branch_name(resource)
|
|
117
117
|
attrs = resource.attribute_enumerator.to_h
|
|
118
|
-
|
|
118
|
+
@base_branch_name = attrs['vcs.ref.base.name']
|
|
119
|
+
@base_branch_name || attrs['vcs.ref.head.name']
|
|
119
120
|
end
|
|
120
121
|
|
|
121
122
|
# rubocop:disable Metrics/MethodLength
|
|
@@ -145,7 +146,7 @@ module Mergify
|
|
|
145
146
|
return unless Utils.env_truthy?('_MERGIFY_TEST_NEW_FLAKY_DETECTION')
|
|
146
147
|
|
|
147
148
|
require_relative 'flaky_detection'
|
|
148
|
-
mode = @
|
|
149
|
+
mode = @base_branch_name ? 'new' : 'unhealthy'
|
|
149
150
|
@flaky_detector = FlakyDetector.new(
|
|
150
151
|
token: @token,
|
|
151
152
|
url: @api_url,
|
|
@@ -75,7 +75,13 @@ module Mergify
|
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
example.run
|
|
78
|
-
|
|
78
|
+
|
|
79
|
+
# Feed rerun metrics so budget/deadline tracking stays accurate
|
|
80
|
+
rerun_time = example.execution_result.run_time || 0.0
|
|
81
|
+
rerun_status = example.execution_result.status
|
|
82
|
+
fd.fill_metrics_from_report(example.id, 'call', rerun_time, rerun_status)
|
|
83
|
+
|
|
84
|
+
distinct_outcomes.add(rerun_status)
|
|
79
85
|
rerun_count += 1
|
|
80
86
|
end
|
|
81
87
|
|