-
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.
Fix connector harness performance ci run (#31304)
Co-authored-by: xiaohansong <[email protected]>
- Loading branch information
1 parent
1a90d6c
commit bc670da
Showing
4 changed files
with
23 additions
and
261 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,13 @@ on: | |
inputs: | ||
connector: | ||
description: "Airbyte Connector" | ||
type: choice | ||
required: true | ||
options: | ||
- connectors/source-postgres | ||
- connectors/source-mysql | ||
- connectors/destination-snowflake | ||
default: "connectors/source-postgres" | ||
repo: | ||
description: "Repo to check out code from. Defaults to the main airbyte repo. Set this when building connectors from forked repos." | ||
required: false | ||
|
@@ -102,6 +108,7 @@ jobs: | |
with: | ||
repository: ${{ github.event.inputs.repo }} | ||
ref: ${{ github.event.inputs.gitref }} | ||
fetch-depth: 0 # This is to fetch the main branch in case we are running on a different branch. | ||
- name: Install Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
|
@@ -124,6 +131,7 @@ jobs: | |
echo "harness_type=$the_harness" >> "$GITHUB_OUTPUT" | ||
- name: Write harness credentials | ||
run: | | ||
export PATH="$PATH:/root/.local/bin" | ||
ci_credentials connectors-performance/$HARNESS_TYPE write-to-storage | ||
env: | ||
GCP_GSM_CREDENTIALS: ${{ secrets.GCP_GSM_CREDENTIALS }} | ||
|
@@ -144,6 +152,8 @@ jobs: | |
connector_name=$(echo ${{ github.event.inputs.connector }} | cut -d / -f 2) | ||
echo "Running ./gradlew :airbyte-integrations:connectors:$connector_name:build -x check" | ||
./gradlew :airbyte-integrations:connectors:$connector_name:build -x check | ||
env: | ||
GCP_GSM_CREDENTIALS: ${{ secrets.GCP_GSM_CREDENTIALS }} | ||
- name: KIND Kubernetes Cluster Setup | ||
uses: helm/[email protected] | ||
with: | ||
|
@@ -180,6 +190,7 @@ jobs: | |
kubectl logs --tail=1 $POD | while read line ; do line=${line#"$PREFIX"}; line=${line%"$SUFFIX"}; echo $line >> $GITHUB_OUTPUT ; done | ||
echo "$EOF" >> $GITHUB_OUTPUT | ||
- name: Link comment to workflow run | ||
if: github.event.inputs.comment-id | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
reactions: "+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
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