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

tests: workaround docker bug affecting kongintegration flakiness #5005

Merged
merged 4 commits into from Oct 30, 2023

Conversation

czeslavo
Copy link
Contributor

What this PR does / why we need it:

Docker's bug described in moby/moby#42442 causes testcontainers-go used in kongintegration tests to create containers with port mappings that may overlap if created at the same time by parallel test cases. This PR works this around by explicitly specifying host ports to be used.

Which issue this PR fixes:

Should fix #4940.

@czeslavo czeslavo changed the title fix(tests): workaround docker bug affecting kongintegration flakiness tests: workaround docker bug affecting kongintegration flakiness Oct 27, 2023
@czeslavo czeslavo marked this pull request as ready for review October 27, 2023 18:40
@czeslavo czeslavo requested a review from a team as a code owner October 27, 2023 18:40
@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (99f0839) 75.4% compared to head (a71e5f3) 67.3%.
Report is 10 commits behind head on main.

❗ Current head a71e5f3 differs from pull request most recent head 1ebd88f. Consider uploading reports for the commit 1ebd88f to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #5005     +/-   ##
=======================================
- Coverage   75.4%   67.3%   -8.1%     
=======================================
  Files        167     162      -5     
  Lines      18714   18571    -143     
=======================================
- Hits       14113   12513   -1600     
- Misses      3777    5301   +1524     
+ Partials     824     757     -67     

see 50 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

czeslavo and others added 2 commits October 30, 2023 10:35
test/envtest/run.go Outdated Show resolved Hide resolved
test/kongintegration/containers/ports.go Show resolved Hide resolved
@czeslavo czeslavo enabled auto-merge (squash) October 30, 2023 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky kongintegration test TestParsersGoldenTestsOutputs/expressions_router
3 participants