Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NO-TICKET] Switch libdatadog-crashtracking-receiver checks to wait_for #3766

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

ivoanjo
Copy link
Member

@ivoanjo ivoanjo commented Jul 9, 2024

What does this PR do?

This PR changes the crashtracking specs to use wait_for when asserting on the libdatadog-crashtracking-receiver process still being alive or not.

Motivation:

While experimenting with moving our test suite to GitHub Actions, this seemed to trigger a lot.

Also, we saw it trigger at least once for CircleCI as well: https://app.circleci.com/pipelines/github/DataDog/dd-trace-rb/15402/workflows/d3d6f9ad-7d9f-4845-9f6b-bc92eaf88b74/jobs/563014

Additional Notes:

Fixes https://github.com/DataDog/ruby-guild/issues/176 .

I'll see if there's something we can improve on the libdatadog side to avoid this flakiness, but let's not live with the flaky specs until we do so.

How to test the change?

Validate that CI is still green.

**What does this PR do?**

This PR changes the crashtracking specs to use `wait_for` when asserting
on the `libdatadog-crashtracking-receiver` process still being alive or
not.

**Motivation:**

While experimenting with moving our test suite to GitHub Actions, this
seemed to trigger a lot.

Also, we saw it trigger at least once for CircleCI as well:
https://app.circleci.com/pipelines/github/DataDog/dd-trace-rb/15402/workflows/d3d6f9ad-7d9f-4845-9f6b-bc92eaf88b74/jobs/563014

**Additional Notes:**

Fixes DataDog/ruby-guild#176 .

I'll see if there's something we can improve on the libdatadog side
to avoid this flakiness, but let's not live with the flaky specs until
we do so.

**How to test the change?**

Validate that CI is still green.
@ivoanjo ivoanjo requested a review from a team as a code owner July 9, 2024 08:10
@github-actions github-actions bot added the dev/testing Involves testing processes (e.g. RSpec) label Jul 9, 2024
@ivoanjo ivoanjo merged commit ca006e9 into master Jul 9, 2024
170 checks passed
@ivoanjo ivoanjo deleted the ivoanjo/fix-flaky-crashtracker-spec branch July 9, 2024 10:24
@github-actions github-actions bot added this to the 2.2.0 milestone Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev/testing Involves testing processes (e.g. RSpec)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants