Skip to content

Commit

Permalink
connectors-insights: fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alafanechere committed Jun 14, 2024
1 parent 6063bef commit c8ed677
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 48 deletions.
45 changes: 30 additions & 15 deletions .github/workflows/connectors_insights.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,49 @@
name: Connectors Tests
name: Connectors Insights

on:
schedule:
# 0AM UTC is 2AM CEST, 3AM EEST, 5PM PDT.
- cron: "0 0 * * *"
- cron: "0 0,12 * * *" # Run every 12 hours UTC
workflow_dispatch:

jobs:
connectors_insights:
name: Connectors Insights generation
runs-on: connector-tooling-large
runs-on: connector-nightly-xlarge
timeout-minutes: 1440 # 24 hours
env:
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.METADATA_SERVICE_PROD_GCS_CREDENTIALS }}
DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN_2 }}
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: Checkout Airbyte
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install and configure Poetry
python-version: "3.11"
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install connector insights
shell: bash
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 install
poetry -C airbyte-ci/connectors/connectors_insights run connector-insights generate --gcs-uri=gs://prod-airbyte-cloud-connector-metadata-service/connector_insights --connector-directory airbyte-integrations/connectors/ --concurrency 10
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
35 changes: 2 additions & 33 deletions airbyte-ci/connectors/connectors_insights/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c8ed677

Please sign in to comment.