-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
metadata-service: add connectorTestSuitesOptions
#38116
metadata-service: add connectorTestSuitesOptions
#38116
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 @alafanechere and the rest of your teammates on |
8931678
to
d8368f6
Compare
connectorTestSuitesOptions
d8368f6
to
80c7f57
Compare
80c7f57
to
61d345b
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.
Just one thought on string enum vs model enum I'd love your thoughts on
type: string | ||
enum: | ||
- "unitTests" | ||
- "integrationTests" |
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.
❓ Given that
- We will likely have different configuration options for each test
- We may have different configuration values for the same option between tests
- We want these test suites to be discoverable
What do you think of a format that
- encourages connector devs to use
connectorTestSuitesOptions.suite. integrationTests.enabled = false
to disable a test suite - provides settings globally and per suite?
example:
connectorTestSuitesOptions:
suite:
unitTests:
enabled: true
integrationTests:
enabled: false
acceptanceTests:
enabled: true
override:
secrets:
fileName: config_this.yaml
settings:
secrets:
- name: SECRET_FOR_MY_AWESOME_SOURCE
fileName: config.yaml
secretStore:
type: GSM
alias: airbyte-internal-secret-store
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.
@bnchrch I think I like the enabled
field. But I think I prefer keeping per test suites secrets as it explicitly declares test suite secrets requirements.
If we'd go with your suggestion airbyte-ci
would have to eagerly mount the secrets declared in settings to each test suites even if they're not required. I'd prefer to keep things as explicit as possible and have a way to assess which test suite needs which secret... Does it sound reasonable?
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.
Sounds very reasonable! Approved!
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.
type: string | ||
enum: | ||
- "unitTests" | ||
- "integrationTests" |
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.
Sounds very reasonable! Approved!
What
Closes https://github.com/airbytehq/airbyte-internal-issues/issues/7548
We want to introduce new metadata fields for connectors to:
How
connectorTestSuitesOptions
to configure test suite runs.How will this be used?
This will help in conditionally running specific test suites according to the content of the connector metadata file.
Examples
unitTests
,integrationTests
(without secrets) andacceptanceTests
(with secrets):User Impact
None as these new fields are not used ATM.
Follow up work