-
Notifications
You must be signed in to change notification settings - Fork 29
fix: Manual tests and bug fix for static schema discover (PR #559) #663
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
fix: Manual tests and bug fix for static schema discover (PR #559) #663
Conversation
- Fixed TypeError in ManifestDeclarativeSource._stream_configs() missing required positional argument 'config' - Added empty_config parameter when calling _stream_configs during schema detection - This enables config-free discover to work for static schema connectors Manual testing shows this fixes the immediate TypeError but additional work needed for datetime parsing issues. Co-Authored-By: AJ Steers <[email protected]>
Original prompt from AJ Steers:
|
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
👋 Greetings, Airbyte Team Member!Here are some helpful tips and reminders for your convenience. Testing 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/1752808596-manual-tests-static-schema-discover#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/1752808596-manual-tests-static-schema-discover Helpful ResourcesPR Slash CommandsAirbyte Maintainers can execute the following slash commands on your PR:
|
- Fix ConnectorTestScenario.connector_root attribute error in source_base.py - Update manual test plan with complete CLI testing results - Document successful config-free discover for source-pokeapi (static schema) - Confirm dynamic schema connectors correctly require config as expected - All local quality checks (MyPy, ruff format, ruff check) pass Key findings: - PR #559 core functionality is working for static schema connectors - source-pokeapi successfully returns catalog without config - source-datascope still has datetime parsing issues (separate fix needed) - Dynamic schema connectors correctly fail without config as expected Co-Authored-By: AJ Steers <[email protected]>
- Add blank line after AssertionError in connector_base.py - Resolves ruff format check CI failure Co-Authored-By: AJ Steers <[email protected]>
- Convert relative paths to absolute paths before creating frozen ConnectorTestScenario models - Fixes PyTest failures in CI by preventing attempts to modify frozen Pydantic instances - Local tests now pass: 7 passed, 1 skipped Co-Authored-By: AJ Steers <[email protected]>
2345164
into
aj/feat/unprivileged-discover-for-declarative-static-schemas
Manual Tests and Bug Fixes for PR #559: Config-Free Discover for Static Schema Connectors
Summary
This PR provides comprehensive manual testing for PR #559 (unprivileged and config-free discover for declarative static schemas) and implements critical bug fixes discovered during testing. The main contribution is proving that the feature works for static schema connectors while identifying remaining edge cases.
Key Changes:
ManifestDeclarativeSource._uses_dynamic_schema_loader()
preventing discover from startingsource_base.py
test infrastructureconnector_base.py
preventing PyTest executionTest Results:
Review & Testing Checklist for Human
🔴 High Priority (3 items):
_uses_dynamic_schema_loader()
addsempty_config: Dict[str, Any] = {}
. Verify this doesn't break existing connectors that expect populated configs.ValueError: time data '' does not match format '%d/%m/%Y %H:%M'
. Determine if this edge case should block the feature or be addressed separately.🟡 Medium Priority (2 items):
poetry run source-declarative-manifest
CLI approach instead of Docker images. Confirm this accurately reflects production behavior.ConnectorTestScenario
models are constructed. Verify this doesn't affect other test scenarios.Diagram
Notes
aj/feat/unprivileged-discover-for-declarative-static-schemas
) rather than mainpoetry run source-declarative-manifest discover
) to bypass Docker image building issues and directly test CDK changes