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

airbyte-lib: Enable tests #34381

Merged
merged 14 commits into from
Jan 23, 2024
Merged

airbyte-lib: Enable tests #34381

merged 14 commits into from
Jan 23, 2024

Conversation

flash1293
Copy link
Contributor

Enables test for airbyte-lib (currently failing because the step gets stuck)

Copy link

vercel bot commented Jan 19, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Jan 23, 2024 9:48am

@aaronsteers
Copy link
Collaborator

aaronsteers commented Jan 19, 2024

@flash1293, Thanks for creating. Just FYI, I added a dummy commit to trigger CI and hopefully repro the issue. 👍

Joe Reuter added 2 commits January 20, 2024 13:40
@flash1293
Copy link
Contributor Author

flash1293 commented Jan 20, 2024

@alafanechere I did finish eventually - seems like what works on my local airbyte-ci doesn't work on Github CI... I would appreciate a look from your side how to reach the postgres docker container from within the test container.

I guess using dagger is one option. I used a "tunnel" to reach the container in the airbyte-ci integration tests as well: https://github.com/airbytehq/airbyte/pull/34111/files#diff-dbf7615b254775dc9fde6cd44e9b39cecdb7309661683244bc7eecac584a2870R74

However looking at how CAT is using it, it seems to pull in a lot of complexity to get it set up, I hope we can avoid that.

@flash1293
Copy link
Contributor Author

@alafanechere On second thought, let me spend half an hour on it on Monday, maybe it's not as complex as I think

@flash1293 flash1293 requested a review from a team January 22, 2024 15:22
@alafanechere alafanechere force-pushed the flash1293/airbyte-lib-ci-tests branch 10 times, most recently from 920c918 to 8624dc3 Compare January 22, 2024 19:24
@alafanechere
Copy link
Contributor

The tests are running correctly in CI now.
What I did:

  • Provided an optional sidecar docker engine for airbyte-ci test: it's used for airbyte-lib tests. It fixes the connection problems to the test postgres instance. I could not figure why the local execution work. I believe it has something to do with how runner access docker themselves (through a sidecar pod with socket sharing). For simplicity and diminished reliance on the available docker host I prefer the dockerd as a dagger service approach.
  • Slightly changed the provisioning logic of the postgres test container:
  • Check container status before attempting connection
  • Use the docker host as postgres host if it's set as an env var (when running inside dagger)

@alafanechere alafanechere enabled auto-merge (squash) January 23, 2024 09:53
@alafanechere alafanechere merged commit 2d09c81 into master Jan 23, 2024
23 checks passed
@alafanechere alafanechere deleted the flash1293/airbyte-lib-ci-tests branch January 23, 2024 10:04
Copy link

sentry-io bot commented Feb 2, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ GithubException: 403 {"message": "Resource not accessible by integration", "documentation_url": "https://docs.gith... pipelines.helpers.github in update_commit_statu... View Issue

Did you find this useful? React with a 👍 or 👎

jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 26, 2024
Co-authored-by: Aaron ("AJ") Steers <aj@airbyte.io>
Co-authored-by: alafanechere <augustin.lafanechere@gmail.com>
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 26, 2024
Co-authored-by: Aaron ("AJ") Steers <aj@airbyte.io>
Co-authored-by: alafanechere <augustin.lafanechere@gmail.com>
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 26, 2024
Co-authored-by: Aaron ("AJ") Steers <aj@airbyte.io>
Co-authored-by: alafanechere <augustin.lafanechere@gmail.com>
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