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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a07d37d208941128fa6c8e31303578021e07a2974e9b5fb27cd0bb7dd64baea
4
- data.tar.gz: c9e258132d7e8fc0278db80c6659b96a2c2d68ac6f7c7a0f2b6720f98052dc38
3
+ metadata.gz: d28b3d81843fefd07c4b75b21cfb7e9ffc288525e3368ce5752e209d43276e64
4
+ data.tar.gz: 3dbd4a467c2e2cee7ebea4cdfdc0487bba97f74d7672eaae729f4c00a2094d3c
5
5
  SHA512:
6
- metadata.gz: 445771d8c3192ed674a30541c9b89444d4ecf3c95728f156cceac42d08c1fb800ca163876546b8cd5fe25dcabe17a2a47471efa51a71d539385795d9264de813
7
- data.tar.gz: 62a95307714de058754837a753aed50564e8490fdfebc75472a11b464c417ed7020d59cbad18e69b622863e45a3699b5628229cd3b7fcd7781fe2a4d37feb3fb
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.0...main
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
 
@@ -5,7 +5,7 @@ module Datadog
5
5
  module VERSION
6
6
  MAJOR = 1
7
7
  MINOR = 23
8
- PATCH = 0
8
+ PATCH = 1
9
9
  PRE = nil
10
10
  BUILD = nil
11
11
  # PRE and BUILD above are modified for dev gems during gem build GHA workflow
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datadog-ci
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.23.0
4
+ version: 1.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Datadog, Inc.