Releases: DataDog/datadog-ci-rb
1.22.1
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
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
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
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
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
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
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
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
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/**/**
andspec/module/*.rb
- fixes WebMock compatibility with gem
datadog
version2.16.0
- please updatedatadog-ci
if you updateddatadog
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
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.