-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dlecocq/source-datadog-slo-history
- Loading branch information
Showing
282 changed files
with
16,036 additions
and
5,611 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Connectors Insights | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0,12 * * *" # Run every 12 hours UTC | ||
workflow_dispatch: | ||
|
||
jobs: | ||
connectors_insights: | ||
name: Connectors Insights generation | ||
runs-on: connector-nightly-xlarge | ||
timeout-minutes: 1440 # 24 hours | ||
steps: | ||
- name: Checkout Airbyte | ||
uses: actions/checkout@v4 | ||
- name: Get Dagger Engine Image | ||
uses: ./.github/actions/get-dagger-engine-image | ||
with: | ||
dagger_engine_image: "registry.dagger.io/engine:v0.9.6" | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
installer-parallel: true | ||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} | ||
- name: Install dependencies | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry -C airbyte-ci/connectors/connectors_insights install --no-interaction --no-root | ||
- name: Install project | ||
run: poetry -C airbyte-ci/connectors/connectors_insights install --no-interaction | ||
- name: Write Google service account key to file | ||
run: echo "$GCP_SA_KEY" > $HOME/gcp-sa-key.json | ||
env: | ||
GCP_SA_KEY: ${{ secrets.METADATA_SERVICE_PROD_GCS_CREDENTIALS }} | ||
- name: Set GOOGLE_APPLICATION_CREDENTIALS | ||
run: echo "GOOGLE_APPLICATION_CREDENTIALS=$HOME/gcp-sa-key.json" >> $GITHUB_ENV | ||
- name: Run connectors insights | ||
run: | | ||
poetry -C airbyte-ci/connectors/connectors_insights run connectors-insights generate --gcs-uri=gs://prod-airbyte-cloud-connector-metadata-service/connector_insights --connector-directory airbyte-integrations/connectors/ --concurrency 10 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
2 changes: 1 addition & 1 deletion
2
airbyte-cdk/java/airbyte-cdk/core/src/main/resources/version.properties
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version=0.37.2 | ||
version=0.38.1 |
This file contains 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
This file contains 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
44 changes: 44 additions & 0 deletions
44
...e/cdk/integrations/source/relationaldb/streamstatus/TransientErrorTraceEmitterIterator.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* Copyright (c) 2024 Airbyte, Inc., all rights reserved. | ||
*/ | ||
|
||
package io.airbyte.cdk.integrations.source.relationaldb.streamstatus | ||
|
||
import io.airbyte.cdk.integrations.base.AirbyteTraceMessageUtility.makeErrorTraceAirbyteMessage | ||
import io.airbyte.commons.util.AutoCloseableIterator | ||
import io.airbyte.protocol.models.v0.AirbyteErrorTraceMessage | ||
import io.airbyte.protocol.models.v0.AirbyteMessage | ||
import org.slf4j.Logger | ||
import org.slf4j.LoggerFactory | ||
|
||
class TransientErrorTraceEmitterIterator(private val e: Throwable) : | ||
AutoCloseableIterator<AirbyteMessage?> { | ||
private var emitted = false | ||
|
||
override fun hasNext(): Boolean { | ||
return !emitted | ||
} | ||
|
||
override fun next(): AirbyteMessage { | ||
emitted = true | ||
return makeErrorTraceAirbyteMessage( | ||
e, | ||
e.message, | ||
AirbyteErrorTraceMessage.FailureType.TRANSIENT_ERROR | ||
) | ||
} | ||
|
||
@Throws(Exception::class) | ||
override fun close() { | ||
// no-op | ||
} | ||
|
||
override fun remove() { | ||
// no-op | ||
} | ||
|
||
companion object { | ||
private val LOGGER: Logger = | ||
LoggerFactory.getLogger(TransientErrorTraceEmitterIterator::class.java) | ||
} | ||
} |
Oops, something went wrong.