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
Copy file name to clipboardExpand all lines: docs/RELEASES.md
+54Lines changed: 54 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,3 +26,57 @@ This process is slightly different from the above, since we don't necessarily wa
26
26
3. Select `main` or your dev branch from the "Use workflow from" dropdown.
27
27
4. Select your options and click "Run workflow".
28
28
5. Monitor the workflow to ensure the process has succeeded.
29
+
30
+
## Understanding and Debugging Builder and SDM Releases
31
+
32
+
### How Connector Builder uses SDM/CDK
33
+
34
+
The Connector Builder (written in Java) calls the CDK Python package directly, executing the CDK's Source Declarative Manfiest code via Python processes on the Builder container. (The Connector Builder does not directly invoke the SDM image, but there is an open project to change this in the future.)
35
+
36
+
Our publish flow sends a PR to the Builder repo (`airbyte-platform-internal`) to bump the version used in Builder. The Marketplace Contributions team (aka Connector Builder maintainers) will review and merge the PR.
37
+
38
+
### How the SDM Image is used in Platform
39
+
40
+
The platform scans DockerHub at an [every 10 minutes cadence](https://github.com/airbytehq/airbyte-platform-internal/blob/d744174c0f3ca8fa70f3e05cca6728f067219752/oss/airbyte-cron/src/main/java/io/airbyte/cron/jobs/DeclarativeSourcesUpdater.java) as of 2024-12-09. Based on that DockerHub scan, the platform bumps the default SDM version that is stored in the `declarative_manifest_image_version` table in prod.
41
+
42
+
Note: Currently we don't pre-test images in Platform so manual testing is needed.
43
+
44
+
### How to confirm what SDM version is used on the Platform
45
+
46
+
Currently there are two ways to do this.
47
+
48
+
The first option is to look in the `declarative_manifest_image_version` database table in Prod.
49
+
50
+
If that is not available as an option, you can run an Builder-created connector in Cloud and note the version number printed in the logs. Warning: this may not be indicative if that connector instance has been manually pinned to a specific version.
51
+
52
+
TODO: Would be great to find a way to inspect directly without requiring direct prod DB access.
53
+
54
+
### How to pretest changes to SDM images manually
55
+
56
+
To manually test changes against a dev image of SDM before committing to a release, first use the Publishing & Packaging workflow to publish a pre-release version of the CDK/SDM. Be sure to uncheck the option to create a connector builder PR.
57
+
58
+
#### Pretesting Manifest-Only connectors
59
+
60
+
Once the publish pipeline has completed, choose a connector to test. Set the base_image in the connector's metadata to your pre-release version in Dockerhub (make sure to update the SHA as well).
61
+
Next, build the pre-release image locally using `airbyte-ci connectors —name=<source> build`.
62
+
You can now run connector interfaces against the built image using the pattern `docker run airbyte/<source-name>:dev <spec/check/discover/read>`.
63
+
The connector's README should include a list of these commands, which can be copy/pasted and run from the connector's directory for quick testing against a local config.
64
+
You can also run `airbyte-ci connectors —name=<source> test` to run the CI test suite against the dev image.
65
+
66
+
#### Pretesting Low-Code Python connectors
67
+
68
+
Once the publish pipeline has completed, set the version of `airbyte-cdk` in the connector's pyproject.toml file to the pre-release version in PyPI.
69
+
Update the lockfile and run connector interfaces via poetry: `poetry run source-<name> spec/check/discover/read`.
70
+
You can also run `airbyte-ci connectors —name=<source> test` to run the CI test suite against the dev image.
71
+
72
+
#### Pretesting in Cloud
73
+
74
+
It is possible to pretest a version of SDM in Airbyte Cloud using the following steps:
75
+
76
+
1. Publish a pre-release version.
77
+
2. Open Cloud and create a custom source in the Builder (ie fork PokeAPI with no changes). Publish the source to your workspace.
78
+
3. Set up a connection using the forked custom source.
79
+
4. Connect to the production database with a tool like DBeaver.
80
+
5. Manually update the connector's `actor_definition_version`.
81
+
82
+
Because this process requires accessing and updating the production database manually, it is NOT RECOMMENDED for most cases. Only do so if you understand the risks, are already confident navigating the database, and feel the potential risk of your changes breaking the CDK/SDM is high enough to warrant this process.
0 commit comments