Skip to content

fix: data race on container run, caused by the otelhttp dependency#2345

Merged
mdelapenya merged 2 commits intotestcontainers:mainfrom
stevenh:fix/lifecycle-datarace
Apr 4, 2024
Merged

fix: data race on container run, caused by the otelhttp dependency#2345
mdelapenya merged 2 commits intotestcontainers:mainfrom
stevenh:fix/lifecycle-datarace

Conversation

@stevenh
Copy link
Contributor

@stevenh stevenh commented Mar 12, 2024

What does this PR do?

Fix a data race on container run by updating otelhttp:
open-telemetry/opentelemetry-go-contrib#4895

Why is it important?

Usage randomly fails due to a data race when testing.

@netlify
Copy link

netlify bot commented Mar 12, 2024

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 8d4f985
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/660d377cefe8e80008652be7
😎 Deploy Preview https://deploy-preview-2345--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@stevenh stevenh marked this pull request as ready for review March 12, 2024 20:19
@stevenh stevenh requested a review from a team as a code owner March 12, 2024 20:19
@mdelapenya mdelapenya self-assigned this Mar 25, 2024
@mdelapenya mdelapenya added the dependencies Dependencies or external services label Mar 25, 2024
@mdelapenya
Copy link
Member

Hey @stevenh thanks for bumping the dependency. Could you check the compose module too? That dependency makes the module to not compile.

Thanks!

Fix a data race on container run by updating otelhttp:
open-telemetry/opentelemetry-go-contrib#4895
@stevenh
Copy link
Contributor Author

stevenh commented Apr 2, 2024

Thanks @mdelapenya should be all fixed.

Copy link
Member

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@mdelapenya mdelapenya changed the title fix: data race on container run fix: data race on container run, caused by an opentelemetry dependency Apr 4, 2024
@mdelapenya mdelapenya changed the title fix: data race on container run, caused by an opentelemetry dependency fix: data race on container run, caused by the otelhttp dependency Apr 4, 2024
@mdelapenya mdelapenya merged commit 8ee975e into testcontainers:main Apr 4, 2024
@stevenh stevenh deleted the fix/lifecycle-datarace branch April 4, 2024 09:31
mdelapenya added a commit to coffeegoddd/testcontainers-go that referenced this pull request Apr 12, 2024
* main: (115 commits)
  chore: create TLS certs in a consistent manner (testcontainers#2478)
  chore(deps): bump idna from 3.6 to 3.7 (testcontainers#2480)
  Elasticsearch disable CA retrieval when ssl is disabled (testcontainers#2475)
  fix: handle dockerignore exclusions properly (testcontainers#2476)
  chore: prepare for next minor development cycle (0.31.0)
  chore: use new version (v0.30.0) in modules and examples
  Fix url creation to handle query params when using HTTP wait strategy (testcontainers#2466)
  fix: data race on container run (testcontainers#2345)
  fix: logging deadlock (testcontainers#2346)
  feat(k6):Add remote test scripts (testcontainers#2350)
  feat: optimizes file copies to and from containers (testcontainers#2450)
  fix(exec): updates the `Multiplexed` opt to combine stdout and stderr (testcontainers#2452)
  Upgrade neo4j module to use features from v0.29.1 of testcontainers-go (testcontainers#2463)
  bug:Fix AMQPS url (testcontainers#2462)
  chore: more compose updates in comments
  chore: use "docker compose" (v2) instead of "docker-compose" (v1) (testcontainers#2464)
  chore(deps): bump github/codeql-action from 2.22.12 to 3.24.9 (testcontainers#2459)
  refactor: Add Weaviate modules tests (testcontainers#2447)
  feat(exitcode): Add exit code sugar method (testcontainers#2342)
  feat: add module to support InfluxDB v1.x (testcontainers#1703)
  ...
ttruongatl pushed a commit to ttruongatl/testcontainers-go that referenced this pull request Feb 15, 2025
Fix a data race on container run by updating otelhttp:
open-telemetry/opentelemetry-go-contrib#4895

Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependencies or external services

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants