You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
airbyte-cdk connector test: --no-creds crashes when combined with --pytest-arg (tuple has no extend) #1153
airbyte-cdk connector test . --no-creds --pytest-arg="-k invalid_config"
AttributeError: 'tuple' object has no attribute 'extend'
Root cause
airbyte_cdk/cli/airbyte_cdk/_connector.py (main, lines 151-156): --pytest-arg is a multiple=True click option, so pytest_args arrives as a tuple. pytest_args = pytest_args or [] keeps the tuple whenever at least one --pytest-arg is given, and --no-creds then calls pytest_args.extend(["-m", "not requires_creds"]) on it. Same code in the released 7.23.6.
Reproduction
Any connector directory, e.g. airbyte-integrations/connectors/source-monday in airbytehq/airbyte:
airbyte-cdk connector test . --no-creds --pytest-arg="-k invalid_config"
Without --pytest-arg the command works; without --no-creds it works.
Impact
The two options cannot be combined, so a scoped no-creds run (one scenario or one test) is impossible from the CLI.
Fix
pytest_args = list(pytest_args or []).
Workaround
--pytest-arg="-m" --pytest-arg="not requires_creds" instead of --no-creds.
Already fixed on main by #1085, released in v7.24.0 (2026-07-30). connector_test now copies the click tuple into a list (pytest_args = list(pytest_args or [])), so --no-creds works together with --pytest-arg. On main, airbyte-cdk connector test --no-creds --pytest-arg="-k invalid_config" passes ['-k invalid_config', '-m', 'not requires_creds'] to the test run. 7.23.6, the version checked in this issue, predates the fix.
Activity
bazarnov commentedon Oct 6, 2026
Already fixed on main by #1085, released in v7.24.0 (2026-07-30).
connector_testnow copies the click tuple into a list (pytest_args = list(pytest_args or [])), so--no-credsworks together with--pytest-arg. On main,airbyte-cdk connector test --no-creds --pytest-arg="-k invalid_config"passes['-k invalid_config', '-m', 'not requires_creds']to the test run. 7.23.6, the version checked in this issue, predates the fix.Closing.