fix(test): allow write access to config file in Docker tests#879
Merged
Aaron ("AJ") Steers (aaronsteers) merged 1 commit intomainfrom Jan 16, 2026
Conversation
Connectors with config migration (e.g., OAuth token refresh) need write access to the config file during tests. This change: 1. Updates temp config file permissions from 0o444 (read-only) to 0o666 (read-write) in scenario.py 2. Adds explicit :rw flag to Docker volume mounts in docker_base.py This fixes PermissionError when testing connectors that use _migrate_and_transform_config to persist config changes. Co-Authored-By: aldo.gonzalez@airbyte.io <aldo.gonzalez@airbyte.io>
Contributor
Author
Original prompt from aldo.gonzalez@airbyte.io |
Contributor
Author
🤖 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/1768528093-fix-docker-test-config-permissions#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/1768528093-fix-docker-test-config-permissionsHelpful ResourcesPR Slash CommandsAirbyte Maintainers can execute the following slash commands on your PR:
|
6 tasks
Aaron ("AJ") Steers (aaronsteers)
approved these changes
Jan 16, 2026
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
Fixes
PermissionError: [Errno 13] Permission denied: '/secrets/config.json'that occurs when testing connectors with config migration (e.g., OAuth token refresh).The CDK's
_migrate_and_transform_configmethod needs to write back to the config file to persist changes like refreshed OAuth tokens. The test framework was previously mounting config files as read-only, causing these connectors to fail during Docker-based tests.Changes:
scenario.py: Changed temp config file permissions from0o444(read-only) to0o666(read-write)docker_base.py: Added explicit:rwflag to Docker volume mounts for config files incheck,discover, andreadtest commandsReview & Testing Checklist for Human
test_docker_image_build_and_check)Recommended test plan: Re-run the source-gong PR CI (airbytehq/airbyte#71356) after this CDK change is released to verify the
test_docker_image_build_and_checktest passes.Notes
This PR was created to unblock airbytehq/airbyte#71356 (source-gong OAuth support), which uses the
refresh_token_updaterconfiguration that triggers config migration.Requested by: aldo.gonzalez@airbyte.io
Link to Devin run: https://app.devin.ai/sessions/bac4e6c3e7684fd1802811a5c8c186a1