Skip to content

Fix flaky celery docker test#652

Merged
ocelotl merged 1 commit intoopen-telemetry:mainfrom
owais:fix-celery-docker-test
Sep 2, 2021
Merged

Fix flaky celery docker test#652
ocelotl merged 1 commit intoopen-telemetry:mainfrom
owais:fix-celery-docker-test

Conversation

@owais
Copy link
Contributor

@owais owais commented Sep 2, 2021

Fixes #638

Description

The test was actually generating 2 spans but on very fast systems we
only saw one as the test ran faster than the message would travel
through the broker, trigger a task and generate 2nd span.

Switched from .delay() to .apply() so only one span is generated which
is enough for the test in question.

Type of change

Please delete options that are not relevant.

  • Dev/Tooling enhancement

How Has This Been Tested?

  • Unit Tests

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@owais owais requested review from a team, codeboten and ocelotl and removed request for a team September 2, 2021 04:49
@owais owais added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Sep 2, 2021
The test was actually generating 2 spans but on very fast systems we
only saw one as the test ran faster than the message would travel
through the broker, trigger a task and generate 2nd span.

Switched from .delay() to .apply() so only one span is generated which
is enough for the test in question.
@owais owais force-pushed the fix-celery-docker-test branch from 6284596 to 9386080 Compare September 2, 2021 05:23
Copy link
Contributor

@ocelotl ocelotl left a comment

Choose a reason for hiding this comment

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

Excellent 😎

@ocelotl ocelotl merged commit c4639ee into open-telemetry:main Sep 2, 2021
@owais owais deleted the fix-celery-docker-test branch September 2, 2021 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix flaky docker celery tests

2 participants