Skip to content

internal/civisibility: fixes the test parent status when the auto-retry feature ended up with a failed test and then a successful test.#2910

Merged
tonyredondo merged 2 commits into
mainfrom
tony/civisiblity-auto-test-retry-parent-failure-fix
Oct 4, 2024
Merged

internal/civisibility: fixes the test parent status when the auto-retry feature ended up with a failed test and then a successful test.#2910
tonyredondo merged 2 commits into
mainfrom
tony/civisiblity-auto-test-retry-parent-failure-fix

Conversation

@tonyredondo

@tonyredondo tonyredondo commented Oct 4, 2024

Copy link
Copy Markdown
Member

What does this PR do?

This PR fixes the scenario when a test fail after retrying and then a test passes, before the PR we were always setting the test parent status according the current test status, so a previous failure status gets overwrote by a test passing status.

Motivation

This is fix on an actual bug in the implementation.

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.

Unsure? Have a question? Request a review!

…y feature ended up with a failed test and after that there's a successful test.
@tonyredondo
tonyredondo requested a review from a team as a code owner October 4, 2024 08:45
@tonyredondo tonyredondo self-assigned this Oct 4, 2024
@tonyredondo tonyredondo changed the title internal/civisibility: fixes the test parent status when the auto-retry feature ended up with a failed test and after that there's a successful test. internal/civisibility: fixes the test parent status when the auto-retry feature ended up with a failed test and then a successful test. Oct 4, 2024
Comment thread internal/civisibility/integrations/gotesting/testing_test.go

@ManuelPalenzuelaDD ManuelPalenzuelaDD left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left a comment about updating a string

Comment thread internal/civisibility/integrations/gotesting/testing_test.go Outdated
@tonyredondo
tonyredondo merged commit d50070a into main Oct 4, 2024
@tonyredondo
tonyredondo deleted the tony/civisiblity-auto-test-retry-parent-failure-fix branch October 4, 2024 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants