Skip to content

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 <honnix@users.noreply.github.com>

// 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.

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.

@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.

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.


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
@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.

3 participants