-
Notifications
You must be signed in to change notification settings - Fork 166
feat(async, network): add support for aliases, connect & disconnect #826
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
Conversation
✅ Deploy Preview for testcontainers-rust ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
These are useful changes, but we need to cover them with the documentation and tests. Also pay attention to the red CI checks. Also we shouldn't provide functionality only to Thank you for the contribution! ❤️ |
it builds now. But the other tests are kinda flaky. Vast majority of them pass. Maybe 1-2 fail. If I run another time, then everything passes. If I run a 3rd time, then 1-2 fail that are different from the first 1-2 that failed earlier. This issue occurs even in the main branch, so I conclude that this PR probably doesn't contribute to those failures |
For a start I have now documented the relevant parts of the builder API here. I have added no_run to examples as the needed resources are missing, they should be built however to ensure correctness. --------- Signed-off-by: Marc Bodmer <[email protected]> Signed-off-by: mbodmer <[email protected]>
All failing tests are related to network tests with
These aren't flaky in main, we have few flaky ones - but not these ones. So I guess this change somehow breaks compatibility with |
how can I locally reproduce the test that led you to conclude that this PR breaks compatibility with I did the following locally:
The terminal output says that the command failed in the following places on each attempt: Testaa/alias
main
ObservationsI don't see much difference between |
Please check the results of CI actions. All test-related actions are red, and retries don’t seem to be helping (second attempt failed as well with the same results) While Do you use fresh upstream? |
I might not necessarily have the time to finish this PR. When I originally started this task, it was because I had an issue I was stuck on when trying to make two containers connect with each other. This PR was my attempt to fix the bug I had in the communication between the two containers. I found another workaround so now it works. Feel free to continue where I left off or pass this PR to anyone else who might be interested! |
Attempts to partially solve:
#252
The scope of this PR is only the async containers (but not the sync). At a quick glance it looks like it should plausibly work, but I haven't tested it. This also includes minor refactoring to make clippy stop complaining about arguments in
format!()
macro.Feel free to look through the changes and test it and see if there's anything you'd like to modify before merging!