datadog-ci 1.23.0 → 1.23.1
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/CHANGELOG.md +10 -2
- data/lib/datadog/ci/test_visibility/component.rb +23 -0
- data/lib/datadog/ci/version.rb +1 -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: d28b3d81843fefd07c4b75b21cfb7e9ffc288525e3368ce5752e209d43276e64
|
4
|
+
data.tar.gz: 3dbd4a467c2e2cee7ebea4cdfdc0487bba97f74d7672eaae729f4c00a2094d3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d6cd831349cac64cf1abb7a80490dca5c94a503febf632cf2678bde4a5ef440fd6ecf6172ba870887d7c49e169f81cc82a2410a9acd4f9a40847062bcfcdfea
|
7
|
+
data.tar.gz: 5c84eede97a6985e858d0acade39b2457f38362afa837277d95b40a4372e89f1f5128005a94141d3799d324a0642ddb46c4aaaa93c5f160e5d79b5dbc3d530d9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [1.23.1] - 2025-10-14
|
4
|
+
|
5
|
+
========== Changelog ==========
|
6
|
+
### Fixed
|
7
|
+
* Drop source end line when it is before start line ([#414][])
|
8
|
+
|
3
9
|
## [1.23.0] - 2025-10-08
|
4
10
|
|
5
11
|
|
@@ -531,7 +537,8 @@ Currently test suite level visibility is not used by our instrumentation: it wil
|
|
531
537
|
|
532
538
|
- Ruby versions < 2.7 no longer supported ([#8][])
|
533
539
|
|
534
|
-
[Unreleased]: https://github.com/DataDog/datadog-ci-rb/compare/v1.23.
|
540
|
+
[Unreleased]: https://github.com/DataDog/datadog-ci-rb/compare/v1.23.1...main
|
541
|
+
[1.23.1]: https://github.com/DataDog/datadog-ci-rb/compare/v1.23.0...v1.23.1
|
535
542
|
[1.23.0]: https://github.com/DataDog/datadog-ci-rb/compare/v1.22.1...v1.23.0
|
536
543
|
[1.22.1]: https://github.com/DataDog/datadog-ci-rb/compare/v1.22.0...v1.22.1
|
537
544
|
[1.22.0]: https://github.com/DataDog/datadog-ci-rb/compare/v1.21.1...v1.22.0
|
@@ -755,4 +762,5 @@ Currently test suite level visibility is not used by our instrumentation: it wil
|
|
755
762
|
[#400]: https://github.com/DataDog/datadog-ci-rb/issues/400
|
756
763
|
[#402]: https://github.com/DataDog/datadog-ci-rb/issues/402
|
757
764
|
[#407]: https://github.com/DataDog/datadog-ci-rb/issues/407
|
758
|
-
[#410]: https://github.com/DataDog/datadog-ci-rb/issues/410
|
765
|
+
[#410]: https://github.com/DataDog/datadog-ci-rb/issues/410
|
766
|
+
[#414]: https://github.com/DataDog/datadog-ci-rb/issues/414
|
@@ -340,6 +340,8 @@ module Datadog
|
|
340
340
|
test_optimisation.stop_coverage(test)
|
341
341
|
test_optimisation.on_test_finished(test, maybe_remote_context)
|
342
342
|
|
343
|
+
validate_source_location(test)
|
344
|
+
|
343
345
|
test_retries.record_test_finished(test)
|
344
346
|
Telemetry.event_finished(test)
|
345
347
|
end
|
@@ -375,6 +377,27 @@ module Datadog
|
|
375
377
|
span.set_tag(Ext::Test::TAG_CODEOWNERS, owners) unless owners.nil?
|
376
378
|
end
|
377
379
|
|
380
|
+
def validate_source_location(test)
|
381
|
+
source_start = test.get_tag(Ext::Test::TAG_SOURCE_START)
|
382
|
+
source_end = test.get_tag(Ext::Test::TAG_SOURCE_END)
|
383
|
+
|
384
|
+
return if source_start.nil? || source_end.nil?
|
385
|
+
# tags must be strings, if they are not, they were redefined by someone
|
386
|
+
return unless source_start.is_a?(String) && source_end.is_a?(String)
|
387
|
+
|
388
|
+
start_line = source_start.to_i
|
389
|
+
end_line = source_end.to_i
|
390
|
+
|
391
|
+
if end_line < start_line
|
392
|
+
Datadog.logger.debug do
|
393
|
+
"Invalid source location for test [#{test.name}]: " \
|
394
|
+
"end line (#{end_line}) is before the start line (#{start_line}). " \
|
395
|
+
"Removing #{Ext::Test::TAG_SOURCE_END} tag."
|
396
|
+
end
|
397
|
+
test.clear_tag(Ext::Test::TAG_SOURCE_END)
|
398
|
+
end
|
399
|
+
end
|
400
|
+
|
378
401
|
def fix_test_suite!(test)
|
379
402
|
return unless test_suite_level_visibility_enabled
|
380
403
|
|
data/lib/datadog/ci/version.rb
CHANGED