Repository navigation
fix(standard-tests): pass --config when the scenario's config is an empty object - #1240
Draft
devin-ai-integration[bot] wants to merge 2 commits into
Draft
devin-ai-integration[bot] wants to merge 2 commits into
devin-ai-integration[bot] wants to merge 2 commits into
Conversation
…mpty object Co-Authored-By: bot_apk <apk@cognition.ai>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
👋 Greetings, Airbyte Team Member!Here are some helpful tips and reminders for your convenience. 💡 Show Tips and TricksTesting This CDK VersionYou can test this version of the CDK using the following: # Run the CLI from this branch:
uvx 'git+https://github.com/airbytehq/airbyte-python-cdk.git@devin/1792509503-standard-tests-empty-config#egg=airbyte-python-cdk[dev]' --help
# Update a connector to use the CDK from this branch ref:
cd airbyte-integrations/connectors/source-example
poe use-cdk-branch devin/1792509503-standard-tests-empty-configPR Slash CommandsAirbyte Maintainers can execute the following slash commands on your PR:
|
1 task done
Co-Authored-By: bot_apk <apk@cognition.ai>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
run_test_jobonly passed--configwhen the loaded config dict was truthy. When a scenario declares a config whose content is{}(for example a no-auth connector whose CI secret is{}), the harness dropped--config.check,discoverandreadthen exited withSystemExit: 2(the following arguments are required: --config).Scenarios that declare no config still run without
--config.specnever receives one.Related to https://github.com/airbytehq/oncall/issues/13787:
Found while fixing
source-whisky-hunter(airbytehq/airbyte#89520). Its acceptance config points atsecrets/config.json, and the GSM secret is{}because the Whisky Hunter API needs no auth.Tests
unit_tests/test/test_job_runner_config.pycovers four cases: an empty config file passes--config(with{}written to it), a non-emptyconfig_dictpasses--config, no declared config passes no--config, andspecpasses no--config.['discover']. With the fix, the focused tests pass (18 passed). Ruff and mypy are clean.airbyte-cdk connector test .forsource-whisky-hunterwith this branch: 9 passed, 3 skipped. Without the fix,test_check,test_discover,test_basic_readandtest_fail_read_with_bad_catalogfail.Link to Devin session: https://app.devin.ai/sessions/2de2624e9bb44fcc9e5a390759cab108
Open in Devin Desktop: https://app.devin.ai/desktop/session/2de2624e9bb44fcc9e5a390759cab108?variant=devin