-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Add the -k ability to the airbyte-ci test command #24061
Comments
Grooming
|
@bnchrch I think the implementation recommendation you declared above has the following limitations:
I tried to think about it thoroughly today and come with the following suggestion: Ideal interface
Ideal implementation
Problem
Suggest approachExpose a The connector name becomes an argument,
Benefits:
|
Ok so I have some issues with this approach. It might be useful to come up a level to talk more about problems to avoid, rather than implementation 1. We don't want to repeat ourself or others
This tension can lead to some issues with our workflow that we should avoid
And I think these issues are more important to avoid than
Which means we should have a solution where
1. Your
We should resist having the same pipeline implemented twice for |
Thank you for the writeup 🙏 If we keep
Please share if you have any CLI example in mind 🙏 I think I'm confused by the |
I was thinking we use a format like We would have to enable extra args on our click commands for connectors and the interface would look like
or
and have the {
"unit-test": {
"-k": "some_test_name"
}
} Which it will use to pass extra args to the specified step. e.g. the {
"-k": "some_test_name"
}
I think that would be fine? It might not be optimal since it applies to both but the dev is still free to run two tests in a row. and its useful if you want to only run one cat test for N connectors |
@bnchrch I implemented your suggested approach in this PR stack (ready for review). I just came up with a slightly different interface in terms of additional options: Do you have a suggestion on how we could alleviate the following limitation:
I was thinking that we could log a warning if the |
Problem
Test commands are slow, particularly when you want to show just one new/updated tests is changing
Solution
Update the
airbyte-ci connector test
command to expose the-k
command from PytestImplementation Recommendation
Once #32188 is merged we will have the
StepToRun
class which hasThis should support a pattern like so
airbyte-ci connector --name=source-faker test --arg-build-k test_specific
Where
click allows for extra arguments
our test command parses the extra click arguments to a dictionary
run_steps
function passes these extra args to the step at run timeextra_args
as an optional value ofrun
The text was updated successfully, but these errors were encountered: