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

Fix problem if topology isn't applied correctly #70

Merged
merged 2 commits into from
May 23, 2023
Merged

Conversation

ArtDu
Copy link
Contributor

@ArtDu ArtDu commented May 4, 2023

I haven't forgotten about:

  • Tests
  • Changelog
  • Documentation
  • Commit messages comply with the guideline
  • Cleanup the code for review. See checklist

Related issues:

@ArtDu ArtDu self-assigned this May 5, 2023
@ArtDu ArtDu force-pushed the topology_error branch 2 times, most recently from 82f9df0 to 56da7f3 Compare May 5, 2023 12:06
@ArtDu ArtDu marked this pull request as ready for review May 5, 2023 15:36
@ArtDu ArtDu marked this pull request as draft May 5, 2023 15:37
@ArtDu ArtDu requested a review from akudiyar May 5, 2023 16:24
@ArtDu ArtDu marked this pull request as ready for review May 5, 2023 16:24
Copy link
Collaborator

@akudiyar akudiyar left a comment

Choose a reason for hiding this comment

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

Overall LGTM, I have two small questions

@@ -0,0 +1,16 @@
cartridge = require('cartridge')
Copy link
Collaborator

Choose a reason for hiding this comment

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

q: what is incorrect in this topology?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's no server on 3303 port. I added comment in topology

@@ -21,8 +26,8 @@ public class TarantoolCartridgeBootstrapFromLuaWithFixedPortsTest {
"Dockerfile",
"cartridge/instances_fixedport.yml",
"cartridge/topology_fixedport.lua")
.withCopyFileToContainer(MountableFile.forClasspathResource("cartridge"), "/app")
.withCopyFileToContainer(MountableFile.forClasspathResource("cartridge/instances_fixedport.yml"),"/app/instances.yml")
.withDirectoryBinding("cartridge")
Copy link
Collaborator

Choose a reason for hiding this comment

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

IIRC Vova changed this line because we had some problems with windows (?) or something. Did you look at the history of this change? Is it safe to use binding here? (I know, it's the default preferred variant, but there was some problem)

Copy link
Contributor Author

@ArtDu ArtDu May 23, 2023

Choose a reason for hiding this comment

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

It's hard to see why it had been changed #46. I asked @dkasimovskiy to try to run tests(he has windows + wsl) but he didn't get what I want and merged PR 🤷‍♂️

Copy link
Contributor Author

@ArtDu ArtDu May 23, 2023

Choose a reason for hiding this comment

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

@akudiyar we will test how it's working with windows. You can check other PRs in testcontainers

Copy link
Contributor

Choose a reason for hiding this comment

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

On the latest WSL2 it works fine.

@dkasimovskiy dkasimovskiy merged commit a8c8404 into master May 23, 2023
1 check failed
@dkasimovskiy dkasimovskiy deleted the topology_error branch May 23, 2023 14:06
@ArtDu ArtDu mentioned this pull request Jun 1, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants