-
Notifications
You must be signed in to change notification settings - Fork 28
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
Upgrade testcontainers #261
Conversation
Signed-off-by: Hongxin Liang <[email protected]>
@@ -58,6 +58,10 @@ private static void startContainer() { | |||
IOUtils.copy(imageInputStream, outputStream); | |||
} | |||
|
|||
// for some reason, when running on Mac, the above copied file is not fully ready after the | |||
// stream being closed; sleeping a little bit could work around that | |||
Thread.sleep(1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty strange and it is not about unflushed stream because I tried.
@@ -52,8 +55,12 @@ public class S3FileSystemIT { | |||
public void setUp() { | |||
s3 = | |||
AmazonS3ClientBuilder.standard() | |||
.withEndpointConfiguration(localStack.getEndpointConfiguration(S3)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed methods.
@@ -79,7 +78,7 @@ protected void after() { | |||
@Override | |||
public void close() { | |||
if (initialized.getAndSet(false)) { | |||
ResourceReaper.instance().removeNetworkById(NAME); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deprecated.
@@ -44,7 +44,7 @@ public class FlyteSandboxClient { | |||
public static FlyteSandboxClient create() { | |||
String version = String.valueOf(System.currentTimeMillis()); | |||
|
|||
String address = FlyteSandboxContainer.INSTANCE.getContainerIpAddress(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deprecated.
@@ -106,9 +110,8 @@ public void start() { | |||
|
|||
logger().info("Flyte is ready!"); | |||
|
|||
String consoleUri = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deprecated.
TL;DR
Upgrade testcontainers to latest version
Type
Are all requirements met?
Complete description
The current testcontainers doesn't play well with docker on mac. Upgrading to latest version seems to be better.
Tracking Issue
NA
Follow-up issue
NA