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

Upgrade testcontainers #261

Merged
merged 1 commit into from
Oct 16, 2023
Merged

Upgrade testcontainers #261

merged 1 commit into from
Oct 16, 2023

Conversation

honnix
Copy link
Member

@honnix honnix commented Oct 9, 2023

TL;DR

Upgrade testcontainers to latest version

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

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

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);
Copy link
Member Author

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))
Copy link
Member Author

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);
Copy link
Member Author

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();
Copy link
Member Author

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 =
Copy link
Member Author

Choose a reason for hiding this comment

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

Deprecated.

@honnix honnix mentioned this pull request Oct 9, 2023
8 tasks
@honnix honnix marked this pull request as ready for review October 9, 2023 21:14
@andresgomezfrr andresgomezfrr merged commit 73c6c71 into master Oct 16, 2023
3 checks passed
@andresgomezfrr andresgomezfrr deleted the upgrade-testcontainers branch October 16, 2023 07:01
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.

2 participants