Skip to content

Releases: DataDog/datadog-ci-rb

1.22.1

25 Aug 11:06
eb3d235
Compare
Choose a tag to compare

Highlights

This patch fixes a rare race condition in the configuration process that could lead to unpredictable library behavior, such as incorrectly marking old tests as new. This ensures more reliable and consistent performance of the library.

Fixed

  • Fix configuration race condition that caused undefined library behaviour (marking old tests as new as an example) (#402)

Read the full changeset and the release milestone.

1.22.0

12 Aug 09:04
d488b42
Compare
Choose a tag to compare

Highlights

Added

  • Add pr_number extraction to GitHub Actions provider (#390)
  • Add ci.job.id tag to events (#387)
  • Test discovery mode - internal, intended for usage with Datadog test runner (#378)

Changed

  • fetch exact head commit instead of unshallowing parent for impacted tests detection (#393)

Fixed

  • Fix: make test_suite_name parameter optional for Datadog::CI.active_test_suite method (#396)
  • Fix handling of base branch commit SHA for Github Actions and Gitlab (#394)
  • fix Minitest's test suite name when encountering relative source file paths (#391)

Read the full changeset and the release milestone.

1.21.1

22 Jul 12:41
734c46a
Compare
Choose a tag to compare

Highlights

This release fixes a couple of bugs reported lately.

Fixed

  • fix: RSpec's DocumentationFormatter might not be present at instrumentation time (#384)
  • fix: do not crash when Minitest.run is called in a fork (#383)

Read the full changeset and the release milestone.

1.21.0

14 Jul 08:16
04daa27
Compare
Choose a tag to compare

Highlights

This release adds support for automated flaky test fixing flow for Github Action jobs with pull_request trigger

Added

  • Support automated flaky test fixing flow for Github Action jobs with pull_request trigger (#370)

Read the full changeset and the release milestone.

1.20.2

04 Jul 09:24
9ffb72d
Compare
Choose a tag to compare

Highlights

Fixes auto-instrumentation issue with RSpec formatter (this time for real)

Fixed

  • Fix autoinstrumenting rspec (#366)

Read the full changeset and the release milestone.

1.20.0

03 Jul 10:03
4b5587b
Compare
Choose a tag to compare

Highlights

This release adds Datadog output for RSpec when --format documentation is used.
Set DD_TRACE_RSPEC_DATADOG_FORMATTER_ENABLED=0 if you want to disable it.

Added

  • Add Datadog output to RSpec documentation formatter (#355)
  • Add Drone CI support and update CI envs handling (#349)

Fixed

  • FIX: send git.tag when requesting library settings if git.branch is not available (#359)

Read the full changeset and the release milestone.

1.19.0

16 Jun 10:38
74b97f1
Compare
Choose a tag to compare

Highlights

New milestone of impacted tests detection feature in Ruby: now tests are marked as modified and retried with EFD if the body of the test was changed
(before we marked all tests in file as modified if test file changed).

This release also contains some fixes for impacted tests detection that would prevent the feature from working correctly in monorepo setups.

Changed

  • Impacted tests detection works with line level granularity (#335)

Fixed

  • Fix stdin close in Command.popen_with_stdin (#339)

Read the full changeset and the release milestone.

1.18.0

06 Jun 09:38
0d4bc8e
Compare
Choose a tag to compare

Highlights

This release adds long overdue support for reporting end lines of tests for source code integration (supported in RSpec and Minitest).
Now source code view in Datadog UI will show the complete and exact source code for every test.

Additionally, impacted tests detection (beta) is more resilient now: we are able to discover changed tests in your PRs more reliable and support more edge cases in your CI setup.

Added

  • Report end lines for tests (#327)

Changed

  • Impacted tests detection: improve a script to determine the base branch sha (#329)

Read the full changeset and the release milestone.

1.17.0

19 May 11:18
4379d46
Compare
Choose a tag to compare

Highlights

This release adds an Impacted Tests Detection feature (in beta right now, contact us if you want to try it).
Impacted Tests Detection automatically recognizes tests files that were updated in the current PR and marks them with @test.is_modified tag.
When Early Flake Detection is enabled, modified tests are retried up to 10 times to detect if new flakiness is introduced.

Additionally, this release includes several important fixes:

  • CODEOWNERS parsing now correctly supports patterns like spec/module/**/** and spec/module/*.rb
  • fixes WebMock compatibility with gem datadog version 2.16.0 - please update datadog-ci if you updated datadog to this version!

Added

  • Impacted tests detection (#318)

Changed

  • flaky test management: add sha parameter to the tests_properties request (#321)
  • Send attempt_to_fix_passed:false when attempt_to_fix_validation did not succeed (#320)

Fixed

  • fix CODEOWNERS parsing issue where "**" wasn't matching zero folders (#323)
  • fix webmock compatibility of internal telemetry (#309)

Read the full changeset and the release milestone.

1.16.0

15 Apr 10:20
c49622c
Compare
Choose a tag to compare

Highlights

This release adds an ability to submit the logs from your test suite without a Datadog Agent and automatically
correlate logs with your tests.

Agentless logs feature is disabled by default, enable it with DD_AGENTLESS_LOG_SUBMISSION_ENABLED=true.
Note that enabling this feature incurs additional costs for logs storage.

Added

  • agentless logs submission for tests (#306)
  • lograge support for agentless logs feature (#308)
  • semantic_logger instrumentation for agentless logs feature (#311)
  • retry reason "external" (#312)

Read the full changeset and the release milestone.