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

fast error message on docker creation error #32333

Merged

Conversation

stephane-airbyte
Copy link
Contributor

test only change: On docker container creation error, we shouldn't return the docker container that's problematic. Instead, we should wrap the initial error message (except the 1st time it throws, where we can directly send the exception.
This way, we fail fast, and the error message actually makes sense.

Today, the error message we get on subsequent gets is something akin to "copyFileToContainer can only be used with created / running container".

source-postgres test report with error

Copy link

vercel bot commented Nov 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Nov 9, 2023 1:35am

@octavia-squidington-iii octavia-squidington-iii added the CDK Connector Development Kit label Nov 9, 2023
Copy link
Contributor

@postamar postamar left a comment

Choose a reason for hiding this comment

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

LGTM! Should we barf some ERROR logs for good measure?

@@ -1 +1 @@
version=0.4.6
version=0.4.7
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't forget to test with useLocalCdk = true and bump the CDK dependency for source-postgres.

@stephane-airbyte stephane-airbyte merged commit 9cf1625 into master Nov 9, 2023
17 checks passed
@stephane-airbyte stephane-airbyte deleted the stephane/fast-error-message-on-docker-creation branch November 9, 2023 14:25
@stephane-airbyte
Copy link
Contributor Author

stephane-airbyte commented Nov 9, 2023

/publish-java-cdk

🕑 https://github.com/airbytehq/airbyte/actions/runs/6813157659
❌ Publish Java CDK failed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDK Connector Development Kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants