Publishing a release

Versioned source and destination containers are the primary Airbyte artifacts. The Python distribution redis-airbyte-connector contains both CLI entry points and native platform wheels. No new artifacts are published by pull-request CI.

Required release gates

The reusable Validate candidate artifacts workflow is shared by PR validation and publishing. It requires:

  1. Unit/CLI tests, undefined/unbound name checks, catalog metadata consistency, source-distribution build and package metadata checks.
  2. One build of each connector image on native AMD64 and ARM64 runners. The images are saved with archive SHA-256 checksums and Docker image IDs.
  3. Six authenticated TLS Redis Enterprise integration tests, Airbyte's official source/destination acceptance suites, PostgreSQL sync/replay and the Redis destination/source/destination round trip against those candidate images.
  4. A disposable Airbyte platform: register both custom definitions, check both connectors, discover streams, run actual sync jobs, repeat Overwrite, and compare every field in the final Redis data, cancel a queued job, and verify the target before and after a manual restart. The test configurations omit unused empty secret objects to avoid its secret-hydration failure for an empty database_options object. The platform loads the saved AMD64 images.
  5. For releases, install and load each native wheel outside the checkout. Linux wheels reuse the native library extracted from the tested images; macOS ARM64 builds the same pinned upstream revision.

Jobs that load the tested Docker archives use the same Ubuntu 24.04 baseline as the image-producing jobs. Docker image IDs differ between the classic and containerd image stores; archive and image-identity verification stay mandatory. The disposable Enterprise setup may clean up its owned fixture and retry startup once after a setup failure. A second setup failure or any test failure fails the job; TLS/authentication checks and test suites are unchanged.

Any failed gate blocks all registry publication. Candidate archives are verified again after loading and before pushing. The publisher tags/pushes these images; it never rebuilds them. Neither real credentials nor generated fixture configurations are uploaded as artifacts.

Version scheme

Connector versions match the bundled driver: Redis ADBC vX.Y.Z is released as connector vX.Y.Z. The earlier v0.1.0–v0.2.1 releases were numbered independently; their GitHub releases and tags were removed and their PyPI files yanked, so unpinned installs resolve to driver-matched releases. A connector-only change ships with the next driver release.

Nightly driver releases

Nightly driver release (.github/workflows/driver-release.yml) runs every night at 08:23 UTC and can be started manually. It:

  1. Runs scripts/driver_release.py, which compares the upstream latest stable release with the Dockerfile pin and exits when they match. For a newer release it pins the tag's commit in Dockerfile and scripts/build_native.py, updates the integration version assertion, README and current-state docs, and sets every connector version file to the driver version. Historical validation records are not rewritten.
  2. Raises the Go pin (Dockerfile image tag and digest, GO_VERSION in scripts/build_native.py) only when the driver's go.mod requires a newer Go. CI reads the macOS Go version from the Dockerfile.
  3. Commits the bump to automation/redis-adbc-vX.Y.Z and runs the full Validate candidate artifacts workflow on it, including all native wheels.
  4. If every gate passes, fast-forwards main to the tested commit, pushes tag vX.Y.Z, creates the draft release with the driver commit and validation run, dispatches Publish release for the tag and waits for it, then refreshes the documentation site and closes open nightly issues.

Any failure opens an issue titled Nightly driver release: …, or comments on the open one with the same title. A failure before publication leaves main unchanged, and the next night retries automatically. The bump also stops with an issue when the connector tag already exists, or when the driver's storage format differs from the protocol documented in the README. A storage change needs a human review of the migration impact and the docs and spec.

If main moves while validation runs, the fast-forward is refused and the next night retests on the new main. If Publish release fails, rerun its failed jobs as described below rather than starting a new publication. Start a run that validates the bump without releasing it with:

gh workflow run driver-release.yml -f publish=false

To prepare the same bump locally, run python scripts/driver_release.py (--dry-run only reports it).

Start a release

Update the package version, Docker labels, both connector metadata files, examples and image-version defaults together; scripts/driver_release.py does this for driver upgrades. Keep requirements.lock synchronized with dependency changes. Merge the passing PR, then push a stable tag matching pyproject.toml:

git tag -a vX.Y.Z -m 'Release X.Y.Z'
git push origin vX.Y.Z

The publishing workflow verifies the tag and that its commit belongs to main, then creates or retains a draft GitHub release. After every gate passes it:

  • Checks existing PyPI files and both combined and architecture-specific container tags for conflicting bytes before starting registry uploads.
  • Publishes immutable Python distributions using PyPI Trusted Publishing.
  • Pushes the tested architecture images and creates the versioned manifests.
  • Attaches the distributions and checksums without overwriting different bytes.
  • Checks public PyPI hashes and compares both registry architectures' image IDs with their tested identities.
  • Promotes latest only for a non-older release and publishes the GitHub draft.

PyPI and GHCR do not offer a shared atomic transaction. A partial upload may be visible while the release remains a draft. Failed jobs must be fixed/retried before announcing completion. Rerun failed jobs to retain the original candidate artifacts; do not rebuild and overwrite an existing version. Hash/identity mismatches require a new version.

The existing PyPI publisher remains scoped to repository Redislabs-Solution-Architects/redis-airbyte-connector, workflow publish.yml, and environment pypi. It uses OIDC and stores no PyPI API token.

Validate without publishing

A manual Publish release run defaults to publish=false. Leave tag empty to validate the selected ref, including all native wheels, without creating a release or changing PyPI/GHCR:

gh workflow run publish.yml --ref YOUR_BRANCH -f publish=false

To resume a tagged draft release, dispatch its existing tag with publish=true. An already public release cannot be silently republished. Tag-triggered and manual publication for the same version share a concurrency lock so they cannot race each other.

Local checks

python scripts/check_metadata.py
python scripts/enterprise_env.py up
python scripts/enterprise_env.py test --source-image redis-airbyte/source-redis-adbc:tested
python scripts/acceptance_test.py --source-image redis-airbyte/source-redis-adbc:tested --destination-image redis-airbyte/destination-redis-adbc:tested
python scripts/enterprise_env.py e2e --source-image redis-airbyte/source-redis-adbc:tested --destination-image redis-airbyte/destination-redis-adbc:tested
python scripts/platform_env.py up
python scripts/platform_test.py --source-image redis-airbyte/source-redis-adbc:tested --destination-image redis-airbyte/destination-redis-adbc:tested
python scripts/platform_env.py down
python scripts/enterprise_env.py down

Build the two :tested images first using Docker targets runtime and destination. The platform helper pins abctl 0.30.4 and Airbyte chart 1.9.3 with stable application 2.0.1. It refuses to replace an existing local Airbyte installation and records the node ID before permitting cleanup. It requires Docker, network access and sufficient memory/disk for the platform and Enterprise fixture. Docker must support network connect --gw-priority. The fixture network uses lower gateway priority so Kubernetes retains its original control-plane route. Registration uses the authenticated, workspace-scoped create_custom endpoints used by Airbyte's UI. The public API's long-running definition calls stalled workload initialization on the hosted runner. Cleanup stops the owned cluster before restoring host ownership of its persisted files, then removes those files and the generated kubeconfig.

Acceptance coverage

The pinned official CAT 2.0.1 image runs its unchanged tests through its Dagger 0.6.4 engine on the isolated fixture network. The source uses high strictness with expected records and repeat full-refresh checks. Incremental tests are inapplicable. Destination source-only suites are inapplicable; native and platform tests cover destination writes instead. Historical-image compatibility tests are explicitly deselected: CAT's global local-image import setting would otherwise compare the candidate with itself. This suite does not claim historical-image backward-compatibility coverage.

Catalog contribution

Both connectors/*/ directories contain stable definition IDs, catalog metadata, icons and acceptance configuration. Registry inclusion remains disabled until Airbyte maintainers review and accept the contribution. The source proposal is airbytehq/airbyte#90323; avoid opening a duplicate source PR. A destination proposal and catalog/Cloud enablement require upstream review. Publishing our independent package does not grant an Airbyte support level or catalog listing.

Native builds

Always use the latest stable Redis ADBC release, currently v0.0.32 at 3fada6f51ed30ed7d0c35f8414b8a3e09dd5ced9. Check the upstream latest release before dependency updates or connector releases. Pin its commit and version in both Dockerfile and scripts/build_native.py, update the native integration version assertion and README, then rebuild and validate the artifacts. Meet the driver's go.mod Go requirement with the Dockerfile golang image and the matching GO_VERSION in scripts/build_native.py. Pass the released version to the upstream Makefile so ADBC GetInfo identifies the bundled release instead of the Makefile's development default. Linux uses Debian Bookworm (glibc 2.36+); macOS ARM64 uses a macOS 15 target. Source distributions require a separate native build; platform wheels include it.