Skip to content

test(source-gong): Old CDK behavior for comparison testing#71787

Closed
devin-ai-integration[bot] wants to merge 14 commits into
masterfrom
devin/1768506479-source-gong-oauth-old-behavior
Closed

test(source-gong): Old CDK behavior for comparison testing#71787
devin-ai-integration[bot] wants to merge 14 commits into
masterfrom
devin/1768506479-source-gong-oauth-old-behavior

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

What

This is a test branch created for QA comparison testing of the OAuth 2.0 implementation for source-gong. It uses an older CDK version (7.6.3.post5.dev21001445621) that does NOT include the control message fix for single-use refresh token persistence.

This PR should NOT be merged. It exists solely to create a pre-release that can be pinned to a test workspace for side-by-side comparison with the main PR.

Related:

How

Uses the same OAuth implementation as the main PR but with an older CDK version to test the behavior difference:

  • This branch (old behavior): Control messages not emitted to stdout, refresh tokens may not persist
  • Main PR (new behavior): Control messages emitted to stdout, refresh tokens persist correctly

Review guide

Do not review for merge - this is a test artifact.

User Impact

None - this is for internal QA testing only.

Can this PR be safely reverted and rolled back?

  • YES 💚 (should not be merged at all)

Link to Devin run: https://app.devin.ai/sessions/bac4e6c3e7684fd1802811a5c8c186a1
Requested by: aldo.gonzalez@airbyte.io

devin-ai-integration Bot and others added 14 commits January 13, 2026 21:39
- Add SelectiveAuthenticator with OAuth2.0 and APIKey options
- Implement refresh_token_updater for Gong's single-use refresh tokens
- Add nested credentials structure in connection_specification
- Add advanced_auth configuration for platform OAuth flow
- Add config migration for backward compatibility with existing API key configs
- Bump version from 0.4.14 to 0.5.0

Closes: airbytehq/airbyte-internal-issues#15647
Co-Authored-By: aldo.gonzalez@airbyte.io <aldo.gonzalez@airbyte.io>
Co-Authored-By: aldo.gonzalez@airbyte.io <aldo.gonzalez@airbyte.io>
The config_normalization_rules must be nested under the spec section
according to the declarative_component_schema.yaml schema, not as a
top-level key in the manifest.

Co-Authored-By: aldo.gonzalez@airbyte.io <aldo.gonzalez@airbyte.io>
…-back on already-migrated configs

The migration conditions now check that the new format doesn't already
exist before running the migration. This prevents the CDK from trying
to write back to the config file when the config already has both old
and new format fields, which was causing a PermissionError in the
Docker test environment.

Co-Authored-By: aldo.gonzalez@airbyte.io <aldo.gonzalez@airbyte.io>
Gong's OAuth API requires client credentials to be sent via Basic
Authentication header instead of in the request body. This adds
refresh_request_headers with the Authorization header containing
base64-encoded client_id:client_secret.

Co-Authored-By: aldo.gonzalez@airbyte.io <aldo.gonzalez@airbyte.io>
…0 with OAuth Basic auth fix

Co-Authored-By: aldo.gonzalez@airbyte.io <aldo.gonzalez@airbyte.io>
…ng OAuth

Gong's OAuth token refresh endpoint has unique requirements - it does NOT
require client credentials (client_id/client_secret) in the refresh request.
Only the refresh_token is needed.

Changes:
- Updated manifest.yaml to use use_client_credentials_in_refresh: false
- Removed the Authorization header workaround (no longer needed)
- Updated to CDK prerelease 7.6.3.post4.dev20979241889 which supports this option

Co-Authored-By: aldo.gonzalez@airbyte.io <aldo.gonzalez@airbyte.io>
…n refresh

Co-Authored-By: aldo.gonzalez@airbyte.io <aldo.gonzalez@airbyte.io>
…v21001445621

This CDK version removes the unnecessary use_client_credentials_in_refresh option
and keeps only the core fix: excluding client credentials from body when
Authorization header is present (for Basic auth).

Co-Authored-By: aldo.gonzalez@airbyte.io <aldo.gonzalez@airbyte.io>
…3 with control message fix

Co-Authored-By: aldo.gonzalez@airbyte.io <aldo.gonzalez@airbyte.io>
…ative OAuth flow

Co-Authored-By: aldo.gonzalez@airbyte.io <aldo.gonzalez@airbyte.io>
Co-Authored-By: aldo.gonzalez@airbyte.io <aldo.gonzalez@airbyte.io>
Co-Authored-By: aldo.gonzalez@airbyte.io <aldo.gonzalez@airbyte.io>
…for comparison testing

Co-Authored-By: aldo.gonzalez@airbyte.io <aldo.gonzalez@airbyte.io>
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

Original prompt from aldo.gonzalez@airbyte.io
Received message in Slack channel #ask-devin-ai:

@Devin this issue seems acccurate to me to omplement Oauth for airbyte connector <https://github.com/airbytehq/airbyte-internal-issues/issues/15647> does it look accurate for you? please double check and challenge if needed
Thread URL: https://airbytehq-team.slack.com/archives/C08BHPUMEPJ/p1768338850454729

#15647 Update Gong RC to support Oauth

@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link
Copy Markdown
Contributor

👋 Greetings, Airbyte Team Member!

Here are some helpful tips and reminders for your convenience.

Helpful Resources

PR Slash Commands

Airbyte Maintainers (that's you!) can execute the following slash commands on your PR:

  • /format-fix - Fixes most formatting issues.
  • /bump-version - Bumps connector versions.
    • You can specify a custom changelog by passing changelog. Example: /bump-version changelog="My cool update"
    • Leaving the changelog arg blank will auto-populate the changelog from the PR title.
  • /bump-progressive-rollout-version - Bumps connector version with an RC suffix for progressive rollouts.
    • Creates a release candidate version (e.g., 2.16.10-rc.1) with enableProgressiveRollout: true
    • Example: /bump-progressive-rollout-version changelog="Add new feature for progressive rollout"
  • /run-cat-tests - Runs legacy CAT tests (Connector Acceptance Tests)
  • /run-regression-tests - Runs regression tests for the modified connector(s).
  • /build-connector-images - Builds and publishes a pre-release docker image for the modified connector(s).
  • /publish-connectors-prerelease - Publishes pre-release connector builds (tagged as {version}-preview.{git-sha}) for all modified connectors in the PR.
  • Connector release lifecycle (AI-powered):
    • /ai-prove-fix - Runs prerelease readiness checks, including testing against customer connections.
    • /ai-canary-prerelease - Rolls out prerelease to 5-10 connections for canary testing.
    • /ai-release-watch - Monitors rollout post-release and tracks sync success rates.
  • AI PR Review:
    • /ai-review - AI-powered PR review for connector safety and quality gates.
  • Documentation:
    • /ai-docs-review - Provides AI-powered documentation recommendations for PRs with connector changes.
  • JVM connectors:
    • /update-connector-cdk-version connector=<CONNECTOR_NAME> - Updates the specified connector to the latest CDK version.
      Example: /update-connector-cdk-version connector=destination-bigquery
    • /bump-bulk-cdk-version bump=patch changelog='foo' - Bump the Bulk CDK's version. bump can be major/minor/patch.
  • Python connectors:
    • /poe connector source-example lock - Run the Poe lock task on the source-example connector, committing the results back to the branch.
    • /poe source example lock - Alias for /poe connector source-example lock.
    • /poe source example use-cdk-branch my/branch - Pin the source-example CDK reference to the branch name specified.
    • /poe source example use-cdk-latest - Update the source-example CDK dependency to the latest available version.

📝 Edit this welcome message.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 15, 2026

Pre-release Connector Publish Started

Publishing pre-release build for connector source-gong.
PR: #71787

Pre-release versions will be tagged as {version}-preview.5b535cb
and are available for version pinning via the scoped_configuration API.

View workflow run
Pre-release Publish: SUCCESS

Docker image (pre-release):
airbyte/source-gong:0.5.0-preview.5b535cb

Docker Hub: https://hub.docker.com/layers/airbyte/source-gong/0.5.0-preview.5b535cb

Registry JSON:

@github-actions
Copy link
Copy Markdown
Contributor

source-gong Connector Test Results

14 tests   9 ✅  36s ⏱️
 1 suites  4 💤
 1 files    1 ❌

For more details on these failures, see this check.

Results for commit 5b535cb.

@github-actions
Copy link
Copy Markdown
Contributor

Deploy preview for airbyte-docs ready!

✅ Preview
https://airbyte-docs-6nzjy6wyv-airbyte-growth.vercel.app

Built with commit 5b535cb.
This pull request is being automatically deployed with vercel-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants