rspec-mergify 0.0.3 → 0.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a1ee16535a80623dfcca5bd323c52ee4743503040198e1aae945a17a4ce78ed
4
- data.tar.gz: d60592e2447449c11f81ff3a9fe0ef6448b4dd657c5083e35595acf9e7e68621
3
+ metadata.gz: 35ec8faffe9634381a055b5c1ddf2af4013beb7ba471960d4bee74092ef001e2
4
+ data.tar.gz: 889c157a6fafedb35f55b439ce20d486c4362a299cd8b39c2297b9c4d9c4164d
5
5
  SHA512:
6
- metadata.gz: f4f1117fc75677a5b1692f54eefc99b23679b976a57905cea6557a2b371a70dc40a16b78fad566e04794bd98168e1b64a813d99073ab1b70ce92534761549567
7
- data.tar.gz: 4229140614275e54eff25041d6f0b72edabb801492d66280131f62b2622fc7a807929250f0ac9f78fe2c048011784d22da2285d2f0522f0550a963e6baa025de
6
+ metadata.gz: a55e1c6cf12c3bc602d087f6cb201d580af2c8f08c8c315999d07be5757313e5b687052d4afe05fd5da611e6984291f04e4f38cb31729297ebf410fecd997127
7
+ data.tar.gz: db519180deccb74eab7ad930a84ad65c69e0034b730a25c3a515e39dbd07f1203b929237f56fecca6de7c37c23fd8ff7cec98808c057ccf76d0b2155150884b9
@@ -53,12 +53,13 @@ module Mergify
53
53
 
54
54
  next unless fd&.rerunning_test?(example.id)
55
55
 
56
- fd.set_test_deadline(example.id)
57
- next if fd.test_too_slow?(example.id)
58
-
56
+ # Mark as flaky detection candidate (even if too slow to rerun)
59
57
  example.metadata[:mergify_flaky_detection] = true
60
58
  example.metadata[:mergify_new_test] = true if fd.mode == 'new'
61
59
 
60
+ fd.set_test_deadline(example.id)
61
+ next if fd.test_too_slow?(example.id)
62
+
62
63
  distinct_outcomes = Set.new
63
64
  distinct_outcomes.add(example.execution_result.status) if example.execution_result.status
64
65
 
@@ -74,7 +75,13 @@ module Mergify
74
75
  end
75
76
 
76
77
  example.run
77
- distinct_outcomes.add(example.execution_result.status)
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)
78
85
  rerun_count += 1
79
86
  end
80
87
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-mergify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mergify