Skip to content

Commit

Permalink
Fix connector harness performance ci run (#31304)
Browse files Browse the repository at this point in the history
Co-authored-by: xiaohansong <[email protected]>
  • Loading branch information
xiaohansong and xiaohansong authored Oct 13, 2023
1 parent 1a90d6c commit bc670da
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 261 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/connector-performance-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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 }}
Expand All @@ -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:
Expand Down Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,54 +1,9 @@
{
"streams": [
{
"stream": {
"name": "purchases",
"namespace": "10m_users",
"json_schema": {
"type": "object",
"properties": {
"id": {
"type": "number",
"airbyte_type": "integer"
},
"user_id": {
"type": "number",
"airbyte_type": "integer"
},
"product_id": {
"type": "number",
"airbyte_type": "integer"
},
"returned_at": {
"type": "string",
"format": "date-time",
"airbyte_type": "timestamp_with_timezone"
},
"purchased_at": {
"type": "string",
"format": "date-time",
"airbyte_type": "timestamp_with_timezone"
},
"added_to_cart_at": {
"type": "string",
"format": "date-time",
"airbyte_type": "timestamp_with_timezone"
}
}
},
"default_cursor_field": [],
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"primary_key": [["id"]],
"cursor_field": ["id"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "users",
"namespace": "10m_users",
"namespace": "public",
"json_schema": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -111,51 +66,13 @@
},
"default_cursor_field": [],
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"primary_key": [["id"]],
"cursor_field": ["updated_at"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "products",
"namespace": "10m_users",
"json_schema": {
"type": "object",
"properties": {
"id": {
"type": "number",
"airbyte_type": "integer"
},
"make": {
"type": "string"
},
"year": {
"type": "string"
},
"model": {
"type": "string"
},
"price": {
"type": "number"
},
"created_at": {
"type": "string",
"format": "date-time",
"airbyte_type": "timestamp_with_timezone"
}
}
},
"default_cursor_field": [],
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"primary_key": [["id"]],
"cursor_field": ["created_at"],
"destination_sync_mode": "append"
"cursor_field": [],
"destination_sync_mode": "overwrite"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,54 +1,9 @@
{
"streams": [
{
"stream": {
"name": "purchases",
"namespace": "1m_users",
"json_schema": {
"type": "object",
"properties": {
"id": {
"type": "number",
"airbyte_type": "integer"
},
"user_id": {
"type": "number",
"airbyte_type": "integer"
},
"product_id": {
"type": "number",
"airbyte_type": "integer"
},
"returned_at": {
"type": "string",
"format": "date-time",
"airbyte_type": "timestamp_with_timezone"
},
"purchased_at": {
"type": "string",
"format": "date-time",
"airbyte_type": "timestamp_with_timezone"
},
"added_to_cart_at": {
"type": "string",
"format": "date-time",
"airbyte_type": "timestamp_with_timezone"
}
}
},
"default_cursor_field": [],
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"primary_key": [["id"]],
"cursor_field": ["id"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "users",
"namespace": "1m_users",
"namespace": "public",
"json_schema": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -111,51 +66,13 @@
},
"default_cursor_field": [],
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"primary_key": [["id"]],
"cursor_field": ["updated_at"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "products",
"namespace": "1m_users",
"json_schema": {
"type": "object",
"properties": {
"id": {
"type": "number",
"airbyte_type": "integer"
},
"make": {
"type": "string"
},
"year": {
"type": "string"
},
"model": {
"type": "string"
},
"price": {
"type": "number"
},
"created_at": {
"type": "string",
"format": "date-time",
"airbyte_type": "timestamp_with_timezone"
}
}
},
"default_cursor_field": [],
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"primary_key": [["id"]],
"cursor_field": ["created_at"],
"destination_sync_mode": "append"
"cursor_field": [],
"destination_sync_mode": "overwrite"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,54 +1,9 @@
{
"streams": [
{
"stream": {
"name": "purchases",
"namespace": "20m_users",
"json_schema": {
"type": "object",
"properties": {
"id": {
"type": "number",
"airbyte_type": "integer"
},
"user_id": {
"type": "number",
"airbyte_type": "integer"
},
"product_id": {
"type": "number",
"airbyte_type": "integer"
},
"returned_at": {
"type": "string",
"format": "date-time",
"airbyte_type": "timestamp_with_timezone"
},
"purchased_at": {
"type": "string",
"format": "date-time",
"airbyte_type": "timestamp_with_timezone"
},
"added_to_cart_at": {
"type": "string",
"format": "date-time",
"airbyte_type": "timestamp_with_timezone"
}
}
},
"default_cursor_field": [],
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"primary_key": [["id"]],
"cursor_field": ["id"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "users",
"namespace": "20m_users",
"namespace": "public",
"json_schema": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -111,51 +66,13 @@
},
"default_cursor_field": [],
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"primary_key": [["id"]],
"cursor_field": ["updated_at"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "products",
"namespace": "20m_users",
"json_schema": {
"type": "object",
"properties": {
"id": {
"type": "number",
"airbyte_type": "integer"
},
"make": {
"type": "string"
},
"year": {
"type": "string"
},
"model": {
"type": "string"
},
"price": {
"type": "number"
},
"created_at": {
"type": "string",
"format": "date-time",
"airbyte_type": "timestamp_with_timezone"
}
}
},
"default_cursor_field": [],
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"primary_key": [["id"]],
"cursor_field": ["created_at"],
"destination_sync_mode": "append"
"cursor_field": [],
"destination_sync_mode": "overwrite"
}
]
}

0 comments on commit bc670da

Please sign in to comment.