Skip to content

Commit

Permalink
schedule a workflow to gather source-postgres CI perfs (airbytehq#31496)
Browse files Browse the repository at this point in the history
  • Loading branch information
alafanechere authored and ariesgun committed Oct 23, 2023
1 parent b528de5 commit 9f06b72
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/tmp-source-postgres-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This workflows runs airbyte-ci connectors --name=source-postgres test
# We created this in the context of our project to improve CI performances for this connector
# It's made to be triggered manually from the GitHub UI
# It will allow us to collect performance metrics outside of the context of nightly builds
# And also to use different runner types (e.g. conn-prod-xxlarge-runner) to test the connector with various resources.

name: source-postgres ci - for testing only

on:
schedule:
# Run three time a day to collect performance metrics and observe variance
- cron: "0 8,12,16 * * *"
workflow_dispatch:
inputs:
runner:
description: "The runner to use for this job"
default: "conn-prod-xlarge-runner"

jobs:
source_postgres_ci:
name: Source Postgres CI on ${{ inputs.runner || 'conn-prod-xlarge-runner'}}
runs-on: ${{ inputs.runner || 'conn-prod-xlarge-runner'}}
steps:
- name: Checkout Airbyte
uses: actions/checkout@v3
with:
repository: ${{ github.event.inputs.repo }}
ref: ${{ github.event.inputs.gitref }}
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Test source-postgres [WORKFLOW DISPATCH]
if: github.event_name == 'workflow_dispatch'
uses: ./.github/actions/run-dagger-pipeline
with:
context: "master"
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }}
sentry_dsn: ${{ secrets.SENTRY_AIRBYTE_CI_DSN }}
git_branch: ${{ steps.extract_branch.outputs.branch }}
github_token: ${{ secrets.GITHUB_TOKEN }}
subcommand: "connectors --name=source-postgres test"

0 comments on commit 9f06b72

Please sign in to comment.