datadog-ci 1.40.0 → 1.41.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de15dc03a13226b87763dc2942794ffd12ec4f5b9b19f0430d93b03216f20da6
|
|
4
|
+
data.tar.gz: 2eaab3c59263e48c75dcdd237aba4db7bdac0e8578069b4e628866cdcd155a34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 25e04a8a9fc1f6f904aa3922a21154aa6f1212a39605fae8f21a18ec43f4541c9399fa6405d29f65896e9ffd9a3dd50cc4dc3cccf5662f1ab7ecd075b67e86cc
|
|
7
|
+
data.tar.gz: 961c8f33c689df07500a4bb47a5a76aebf5885c4d7fb5752536977af4def6f1a82be2329a6f0570ef96f89670d54f218a6ffa184bca83e0fefc47230dfd68ab2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [1.41.0] - 2026-10-05
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
* Stop retries when no test session is active ([#645][])
|
|
8
|
+
* Fix Minitest sessions with no executed tests ([#636][])
|
|
9
|
+
|
|
3
10
|
## [1.40.0] - 2026-09-28
|
|
4
11
|
|
|
5
12
|
### Changed
|
|
@@ -730,7 +737,8 @@ Currently test suite level visibility is not used by our instrumentation: it wil
|
|
|
730
737
|
|
|
731
738
|
- Ruby versions < 2.7 no longer supported ([#8][])
|
|
732
739
|
|
|
733
|
-
[Unreleased]: https://github.com/DataDog/datadog-ci-rb/compare/v1.
|
|
740
|
+
[Unreleased]: https://github.com/DataDog/datadog-ci-rb/compare/v1.41.0...main
|
|
741
|
+
[1.41.0]: https://github.com/DataDog/datadog-ci-rb/compare/v1.40.0...v1.41.0
|
|
734
742
|
[1.40.0]: https://github.com/DataDog/datadog-ci-rb/compare/v1.39.0...v1.40.0
|
|
735
743
|
[1.39.0]: https://github.com/DataDog/datadog-ci-rb/compare/v1.38.1...v1.39.0
|
|
736
744
|
[1.38.1]: https://github.com/DataDog/datadog-ci-rb/compare/v1.38.0...v1.38.1
|
|
@@ -1033,3 +1041,5 @@ Currently test suite level visibility is not used by our instrumentation: it wil
|
|
|
1033
1041
|
[#619]: https://github.com/DataDog/datadog-ci-rb/issues/619
|
|
1034
1042
|
[#633]: https://github.com/DataDog/datadog-ci-rb/issues/633
|
|
1035
1043
|
[#634]: https://github.com/DataDog/datadog-ci-rb/issues/634
|
|
1044
|
+
[#636]: https://github.com/DataDog/datadog-ci-rb/issues/636
|
|
1045
|
+
[#645]: https://github.com/DataDog/datadog-ci-rb/issues/645
|
|
@@ -23,12 +23,17 @@ module Datadog
|
|
|
23
23
|
|
|
24
24
|
return res if active_test_session.nil? || active_test_module.nil?
|
|
25
25
|
|
|
26
|
-
if passed?
|
|
27
|
-
active_test_module.passed!
|
|
28
|
-
active_test_session.passed!
|
|
29
|
-
else
|
|
26
|
+
if !passed?
|
|
30
27
|
active_test_module.failed!
|
|
31
28
|
active_test_session.failed!
|
|
29
|
+
elsif !test_tracing_component.any_tests_started?
|
|
30
|
+
active_test_module.skipped!(reason: "No tests were executed")
|
|
31
|
+
active_test_session.skipped!(reason: "No tests were executed")
|
|
32
|
+
active_test_module.set_tag(CI::Ext::Test::TAG_SESSION_EMPTY_REASON, "zero_tests")
|
|
33
|
+
active_test_session.set_tag(CI::Ext::Test::TAG_SESSION_EMPTY_REASON, "zero_tests")
|
|
34
|
+
else
|
|
35
|
+
active_test_module.passed!
|
|
36
|
+
active_test_session.passed!
|
|
32
37
|
end
|
|
33
38
|
|
|
34
39
|
active_test_module.finish
|
|
@@ -39,6 +44,10 @@ module Datadog
|
|
|
39
44
|
|
|
40
45
|
private
|
|
41
46
|
|
|
47
|
+
def test_tracing_component
|
|
48
|
+
Datadog.send(:components).test_tracing
|
|
49
|
+
end
|
|
50
|
+
|
|
42
51
|
def datadog_configuration
|
|
43
52
|
Datadog.configuration.ci[:minitest]
|
|
44
53
|
end
|
|
@@ -147,11 +147,17 @@ module Datadog
|
|
|
147
147
|
end
|
|
148
148
|
|
|
149
149
|
def should_retry?
|
|
150
|
+
return false unless test_tracing.active_test_session
|
|
151
|
+
|
|
150
152
|
!!current_retry_driver&.should_retry?
|
|
151
153
|
end
|
|
152
154
|
|
|
153
155
|
private
|
|
154
156
|
|
|
157
|
+
def test_tracing
|
|
158
|
+
Datadog.send(:components).test_tracing
|
|
159
|
+
end
|
|
160
|
+
|
|
155
161
|
def current_retry_driver
|
|
156
162
|
Thread.current[FIBER_LOCAL_CURRENT_RETRY_DRIVER_KEY]
|
|
157
163
|
end
|
data/lib/datadog/ci/version.rb
CHANGED