-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 CDK: Test via airbyte CI test poetry packages #36497
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @erohmensing and the rest of your teammates on Graphite |
install all extras groups add to list of internal poetry packages add to list of internal packages for checking modified check works
f362d43
to
253ce0b
Compare
b3c95d0
to
92c3183
Compare
253ce0b
to
32b2fbc
Compare
32b2fbc
to
6a2546c
Compare
d32514f
to
1217d71
Compare
37da8ef
to
7ff0920
Compare
865bead
to
1c6fe5c
Compare
7ff0920
to
80c982e
Compare
1c6fe5c
to
adebf4e
Compare
80c982e
to
987609f
Compare
adebf4e
to
01c66ae
Compare
987609f
to
096b363
Compare
01c66ae
to
eab8567
Compare
7fd08e0
to
e611bab
Compare
What I would also love to do at this stage or later is to document how to run tests on the CDK, and how to build the CDK in the CDK readme — or perhaps in CONTRIBUTING.md, so we can make this flow transparent for newcomers. |
eab8567
to
ba576a6
Compare
Adding to Natik's comment: |
ba576a6
to
ffa0f3e
Compare
949d92c
to
7dc249f
Compare
7dc249f
to
8a788e4
Compare
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.
Nice!
We should ask CDK developers to update their branch following the merge of this PR.
Please also bump the pipelines
version as you modified the list of internal poetry packages in there.
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.
Python CDK Tests
is declared as a required check in the branch protection rules settings to merge to master
. We should remove it when merging this PR.
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.
The workflow goes away total, right? Can we add the airbyte-ci tests as required branch protection rule?
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.
@natikgadzhi it'll already be required.
CDK tests will run in the workflow testing all our internal packages, which is a required one.
name: Run Airbyte CI tests | ||
name: Internal Poetry packages CI |
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.
If you rename it you should also change the branch protection rules settings (because Run Airbyte CI tests
is currently a required check)
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.
Can do!
[tool.airbyte_ci] | ||
optional_poetry_groups = ["dev"] | ||
poetry_extras = ["file-based", "sphinx-docs", "vector-db-based"] | ||
poe_tasks = ["build", "check-ci"] |
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.
check-ci
does not run type checks but they do run in python_cdk_tests
right? Is it safe to not run type checks in CI for the CDK? ( cc. @girarda )
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.
Did we give up on running mypy on modified files? It would feel like a regression to me
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.
Yeah, I think we should run type checks still.
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.
The type checks currently run and will continue to run as a separate workflow, run-mypy-on-modified-cdk-files.yml
8a788e4
to
dd15378
Compare
You can still use the same |
5742727
to
5276b4d
Compare
Test the python cdk (
build
,check-ci
) via our internal poetry package testing instead of via its own workflow.Note: this does increase CI runtime for testing the CDK, but improves maintainability as we can treat the cdk as a standard internal python package.
TODO: