Skip to content

Commit 7ba82e4

Browse files
committed
Merge branch 'master' into dev
* master: (142 commits) Highlight removed and added streams in Connection form (airbytehq#13392) 🐛 Source Amplitude: Fixed JSON Validator `date-time` validation (airbytehq#13373) 🐛 Source Mixpanel: publish v0.1.17 (airbytehq#13450) Fixed reverted PR: Fix cancel button when it doesn't provide feedback to the user + UX improvements (airbytehq#13388) 🎉 Source Freshdesk: Added new streams (airbytehq#13332) Prepare YamlSeedConfigPersistence for dependency injection (airbytehq#13384) helm chart: Support nodeSelector, tolerations and affinity on the booloader pod (airbytehq#11467) airbyte-api: add jackson model annotations to remove null values from responses (airbytehq#13370) Change stage to `beta` (airbytehq#13422) 🐛 Source Google Sheets: Retry on server errors (airbytehq#13446) Improve kube deploy process. (airbytehq#13397) Helm chart dependencies fix (airbytehq#13432) 🐛 Source HubSpot: Transform `contact_lists` data to comply with schema (airbytehq#13218) airbytehq#11758: Source Google Ads to GA (airbytehq#13441) Add more pr actions to tag pull requests (airbytehq#13437) Source Google Ads: drop schema field that filters out the data from stream (airbytehq#13423) Updates error view with new design (airbytehq#13197) Source MSSQL: correct enum Standard method (airbytehq#13419) Update postgres doc about cdc publication (airbytehq#13433) run source acceptance tests against image built from branch (airbytehq#13401) ...
2 parents ddd6a7f + 547e38e commit 7ba82e4

File tree

3,484 files changed

+26799
-11130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,484 files changed

+26799
-11130
lines changed

.bumpversion.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.39.1-alpha
2+
current_version = 0.39.8-alpha
33
commit = False
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-[a-z]+)?

.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
### SHARED ###
13-
VERSION=0.39.1-alpha
13+
VERSION=0.39.8-alpha
1414

1515
# When using the airbyte-db via default docker image
1616
CONFIG_ROOT=/data

.github/ISSUE_TEMPLATE/bug-report.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ assignees: ''
88
---
99
<!--
1010
Welcome to Airbyte!
11+
1112
We're really appreciate your report and know that this will help us build an
1213
amazing tool. If you want to contribute yourself, you can find a good place
1314
to start by searching for the good-first-issues label or maybe... by trying
@@ -28,7 +29,6 @@ You can remove the examples bellow and fill out with your information.
2829
- **Deployment**: example are Docker or Kubernetes deploy env
2930
- **Source Connector and version**: (if applicable example Salesforce 0.2.3) <!-- Found in the admin page in the UI in the Source tab. -->
3031
- **Destination Connector and version**: (if applicable example Postgres 0.3.3) <!-- Found in the admin page in the UI in the Destination tab. -->
31-
- **Severity**: Very Low / Low / Medium / High / Critical
3232
- **Step where error happened**: Deploy / Sync job / Setup new connection / Update connector / Upgrade Airbyte
3333

3434
## Current Behavior
@@ -39,8 +39,11 @@ You can remove the examples bellow and fill out with your information.
3939

4040
## Logs
4141
<!--
42-
If applicable: Please upload the complete log files from the failing operation.
43-
We ask for complete log files because these files capture essential metadata about your environment. The team will read the full stack trace of errors and try to find the root cause of the error. For a sync failure, you can download the log in the sync page, and for other errors please download the server and scheduler logs in the Settings Page -> Configuration.
42+
Please upload the complete log files from the failing operation.
43+
44+
We ask for complete log files because these files capture essential metadata about your environment.
45+
The team will read the full stack trace of errors and try to find the root cause of the error.
46+
For a sync failure, you can download the log in the sync page, and for other errors please download the server and scheduler logs in the Settings Page -> Configuration.
4447
You can remove this after uploading the file.
4548
-->
4649

.github/actions/build-and-push-branch/action.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
branch_version_tag:
55
description: 'Used to tag jars and docker images with a branch-specific version (should use the form "dev-<commit_hash>" to pass AirbyteVersion validation)'
66
required: false
7+
dockerhub_username:
8+
description: "Used to log in to dockerhub for pushing images"
9+
required: true
710
dockerhub_token:
811
description: "Used to log in to dockerhub for pushing images"
912
required: true
@@ -19,7 +22,7 @@ runs:
1922
- name: Login to Docker (on Master)
2023
uses: docker/login-action@v1
2124
with:
22-
username: airbytebot
25+
username: ${{ inputs.dockerhub_username }}
2326
password: ${{ inputs.dockerhub_token }}
2427

2528
- name: Push Docker Images

.github/workflows/build-connector-command.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ jobs:
186186
id: build
187187
env:
188188
PR_NUMBER: ${{ github.event.number }}
189-
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
189+
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
190+
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
190191
# Oracle expects this variable to be set. Although usually present, this is not set by default on Github virtual runners.
191192
TZ: UTC
192193
# - name: Test ${{ github.event.inputs.connector }}

.github/workflows/gke-kube-test-command.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ jobs:
116116
env:
117117
USER: root
118118
HOME: /home/runner
119-
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
119+
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
120+
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
120121
ACTION_RUN_ID: ${{github.run_id}}
121122
run: |
122123
./tools/bin/gke-kube-acceptance-test/acceptance_test_kube_gke.sh

.github/workflows/gradle.yml

+3
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ jobs:
204204
- name: Install Pyenv
205205
run: python3 -m pip install virtualenv==16.7.9 --user
206206

207+
- name: Install automake
208+
run: apt-get install -y automake build-essential libtool libtool-bin autoconf
209+
207210
- name: Set up CI Gradle Properties
208211
run: |
209212
mkdir -p ~/.gradle/

.github/workflows/publish-command.yml

+10-12
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,19 @@ jobs:
6565
aws-access-key-id: ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
6666
aws-secret-access-key: ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }}
6767
github-token: ${{ needs.find_valid_pat.outputs.pat }}
68-
# 80 gb disk
69-
ec2-image-id: ami-0d648081937c75a73
7068
publish-image:
7169
timeout-minutes: 240
7270
needs: start-publish-image-runner
7371
runs-on: ${{ needs.start-publish-image-runner.outputs.label }}
7472
environment: more-secrets
7573
steps:
74+
- name: Link comment to workflow run
75+
if: github.event.inputs.comment-id
76+
uses: peter-evans/create-or-update-comment@v1
77+
with:
78+
comment-id: ${{ github.event.inputs.comment-id }}
79+
body: |
80+
> :clock2: ${{github.event.inputs.connector}} https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
7681
- name: Set up Cloud SDK
7782
uses: google-github-actions/setup-gcloud@v0
7883
with:
@@ -88,13 +93,6 @@ jobs:
8893
- name: Validate input workflow format
8994
if: steps.regex.outputs.first_match != github.event.inputs.connector
9095
run: echo "The connector provided has an invalid format!" && exit 1
91-
- name: Link comment to workflow run
92-
if: github.event.inputs.comment-id
93-
uses: peter-evans/create-or-update-comment@v1
94-
with:
95-
comment-id: ${{ github.event.inputs.comment-id }}
96-
body: |
97-
> :clock2: ${{github.event.inputs.connector}} https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
9896
- name: Checkout Airbyte
9997
uses: actions/checkout@v2
10098
with:
@@ -155,12 +153,12 @@ jobs:
155153
SENTRY_PROJECT: airbyte-connectors
156154
- name: Publish ${{ github.event.inputs.connector }}
157155
run: |
158-
echo "$SPEC_CACHE_SERVICE_ACCOUNT_KEY" > spec_cache_key_file.json && docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
156+
echo "$SPEC_CACHE_SERVICE_ACCOUNT_KEY" > spec_cache_key_file.json && docker login -u ${DOCKER_HUB_USERNAME} -p ${DOCKER_HUB_PASSWORD}
159157
./tools/integrations/manage.sh publish airbyte-integrations/${{ github.event.inputs.connector }} ${{ github.event.inputs.run-tests }} --publish_spec_to_cache
160158
id: publish
161159
env:
162-
DOCKER_USERNAME: airbytebot
163-
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
160+
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
161+
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
164162
# Oracle expects this variable to be set. Although usually present, this is not set by default on Github virtual runners.
165163
TZ: UTC
166164
- name: Finalize Sentry release

.github/workflows/publish-external-command.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,13 @@ jobs:
8585
repository: ${{ gituhb.event.inputs.repo }}
8686
ref: ${{ github.event.inputs.gitref }}
8787
- run: |
88-
echo "$SPEC_CACHE_SERVICE_ACCOUNT_KEY" > spec_cache_key_file.json && docker login -u airbytebot -p ${DOCKER_PASSWORD}
88+
echo "$SPEC_CACHE_SERVICE_ACCOUNT_KEY" > spec_cache_key_file.json && docker login -u ${DOCKER_HUB_USERNAME} -p ${DOCKER_HUB_PASSWORD}
8989
./tools/integrations/manage.sh publish_external ${{ github.event.inputs.connector }} ${{ github.event.inputs.version }}
9090
name: publish ${{ github.event.inputs.connector }}
9191
id: publish
9292
env:
93-
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
93+
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
94+
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
9495
# Oracle expects this variable to be set. Although usually present, this is not set by default on Github virtual runners.
9596
TZ: UTC
9697
- name: Add Success Comment

.github/workflows/release-airbyte-os.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ jobs:
7070
- name: Release Airbyte
7171
id: release_airbyte
7272
env:
73-
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
73+
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
74+
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
7475
PART_TO_BUMP: ${{ github.event.inputs.partToBump }}
7576
CLOUDREPO_USER: ${{ secrets.CLOUDREPO_USER }}
7677
CLOUDREPO_PASSWORD: ${{ secrets.CLOUDREPO_PASSWORD }}
@@ -100,7 +101,8 @@ jobs:
100101
- name: Release Octavia
101102
id: release_octavia
102103
env:
103-
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
104+
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
105+
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
104106
PART_TO_BUMP: ${{ github.event.inputs.partToBump }}
105107
run: ./tools/bin/release_version_octavia.sh
106108

.github/workflows/shared-pulls.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: "Shared Pull Requests"
22
on:
33
pull_request_target:
4-
types: [opened]
4+
types: [opened, labeled, unlabeled, ready_for_review, synchronize, reopened]
55

66
jobs:
77
shared-pulls:

.github/workflows/test-command.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ jobs:
6464
runs-on: ${{ needs.start-test-runner.outputs.label }}
6565
environment: more-secrets
6666
steps:
67+
- name: Link comment to workflow run
68+
if: github.event.inputs.comment-id
69+
uses: peter-evans/create-or-update-comment@v1
70+
with:
71+
comment-id: ${{ github.event.inputs.comment-id }}
72+
body: |
73+
> :clock2: ${{github.event.inputs.connector}} https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
6774
- name: Search for valid connector name format
6875
id: regex
6976
uses: AsasInnab/regex-action@v1
@@ -74,13 +81,6 @@ jobs:
7481
- name: Validate input workflow format
7582
if: steps.regex.outputs.first_match != github.event.inputs.connector
7683
run: echo "The connector provided has an invalid format!" && exit 1
77-
- name: Link comment to workflow run
78-
if: github.event.inputs.comment-id
79-
uses: peter-evans/create-or-update-comment@v1
80-
with:
81-
comment-id: ${{ github.event.inputs.comment-id }}
82-
body: |
83-
> :clock2: ${{github.event.inputs.connector}} https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
8484
- name: Checkout Airbyte
8585
uses: actions/checkout@v2
8686
with:
@@ -113,7 +113,7 @@ jobs:
113113
env:
114114
GCP_GSM_CREDENTIALS: ${{ secrets.GCP_GSM_CREDENTIALS }}
115115

116-
- name: test ${{ github.event.inputs.connector }}
116+
- name: Test ${{ github.event.inputs.connector }}
117117
run: |
118118
./tools/bin/ci_integration_test.sh ${{ github.event.inputs.connector }}
119119
id: test

LICENSE_SHORT

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Copyright (c) 2021 Airbyte, Inc., all rights reserved.
1+
Copyright (c) 2022 Airbyte, Inc., all rights reserved.

airbyte-analytics/src/main/java/io/airbyte/analytics/Deployment.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 Airbyte, Inc., all rights reserved.
2+
* Copyright (c) 2022 Airbyte, Inc., all rights reserved.
33
*/
44

55
package io.airbyte.analytics;

airbyte-analytics/src/main/java/io/airbyte/analytics/LoggingTrackingClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 Airbyte, Inc., all rights reserved.
2+
* Copyright (c) 2022 Airbyte, Inc., all rights reserved.
33
*/
44

55
package io.airbyte.analytics;

airbyte-analytics/src/main/java/io/airbyte/analytics/SegmentTrackingClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 Airbyte, Inc., all rights reserved.
2+
* Copyright (c) 2022 Airbyte, Inc., all rights reserved.
33
*/
44

55
package io.airbyte.analytics;

airbyte-analytics/src/main/java/io/airbyte/analytics/TrackingClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 Airbyte, Inc., all rights reserved.
2+
* Copyright (c) 2022 Airbyte, Inc., all rights reserved.
33
*/
44

55
package io.airbyte.analytics;

airbyte-analytics/src/main/java/io/airbyte/analytics/TrackingClientSingleton.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 Airbyte, Inc., all rights reserved.
2+
* Copyright (c) 2022 Airbyte, Inc., all rights reserved.
33
*/
44

55
package io.airbyte.analytics;

airbyte-analytics/src/main/java/io/airbyte/analytics/TrackingIdentity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 Airbyte, Inc., all rights reserved.
2+
* Copyright (c) 2022 Airbyte, Inc., all rights reserved.
33
*/
44

55
package io.airbyte.analytics;

airbyte-analytics/src/test/java/io/airbyte/analytics/SegmentTrackingClientTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 Airbyte, Inc., all rights reserved.
2+
* Copyright (c) 2022 Airbyte, Inc., all rights reserved.
33
*/
44

55
package io.airbyte.analytics;

airbyte-analytics/src/test/java/io/airbyte/analytics/TrackingClientSingletonTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 Airbyte, Inc., all rights reserved.
2+
* Copyright (c) 2022 Airbyte, Inc., all rights reserved.
33
*/
44

55
package io.airbyte.analytics;

airbyte-api/build.gradle

+18-10
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ task generateApiServer(type: GenerateTask) {
1717
inputSpec = specFile
1818
outputDir = serverOutputDir
1919

20-
apiPackage = "io.airbyte.api"
21-
invokerPackage = "io.airbyte.api.invoker"
22-
modelPackage = "io.airbyte.api.model"
20+
apiPackage = "io.airbyte.api.generated"
21+
invokerPackage = "io.airbyte.api.invoker.generated"
22+
modelPackage = "io.airbyte.api.model.generated"
2323

2424
importMappings = [
2525
'OAuthConfiguration' : 'com.fasterxml.jackson.databind.JsonNode',
@@ -36,7 +36,15 @@ task generateApiServer(type: GenerateTask) {
3636
configOptions = [
3737
dateLibrary : "java8",
3838
generatePom : "false",
39-
interfaceOnly: "true"
39+
interfaceOnly: "true",
40+
/*
41+
JAX-RS generator does not respect nullable properties defined in the OpenApi Spec.
42+
It means that if a field is not nullable but not set it is still returning a null value for this field in the serialized json.
43+
The below Jackson annotation is made to only keep non null values in serialized json.
44+
We are not yet using nullable=true properties in our OpenApi so this is a valid workaround at the moment to circumvent the default JAX-RS behavior described above.
45+
Feel free to read the conversation on https://github.com/airbytehq/airbyte/pull/13370 for more details.
46+
*/
47+
additionalModelTypeAnnotations: "\n@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)"
4048
]
4149
}
4250
compileJava.dependsOn tasks.generateApiServer
@@ -51,9 +59,9 @@ task generateApiClient(type: GenerateTask) {
5159
inputSpec = specFile
5260
outputDir = clientOutputDir
5361

54-
apiPackage = "io.airbyte.api.client"
55-
invokerPackage = "io.airbyte.api.client.invoker"
56-
modelPackage = "io.airbyte.api.client.model"
62+
apiPackage = "io.airbyte.api.client.generated"
63+
invokerPackage = "io.airbyte.api.client.invoker.generated"
64+
modelPackage = "io.airbyte.api.client.model.generated"
5765

5866
importMappings = [
5967
'OAuthConfiguration' : 'com.fasterxml.jackson.databind.JsonNode',
@@ -84,9 +92,9 @@ task generateApiDocs(type: GenerateTask) {
8492
inputSpec = specFile
8593
outputDir = docsOutputDir
8694

87-
apiPackage = "io.airbyte.api.client"
88-
invokerPackage = "io.airbyte.api.client.invoker"
89-
modelPackage = "io.airbyte.api.client.model"
95+
apiPackage = "io.airbyte.api.client.generated"
96+
invokerPackage = "io.airbyte.api.client.invoker.generated"
97+
modelPackage = "io.airbyte.api.client.model.generated"
9098

9199
importMappings = [
92100
'OAuthConfiguration' : 'com.fasterxml.jackson.databind.JsonNode',

airbyte-api/src/main/java/io/airbyte/api/client/AirbyteApiClient.java

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
/*
2-
* Copyright (c) 2021 Airbyte, Inc., all rights reserved.
2+
* Copyright (c) 2022 Airbyte, Inc., all rights reserved.
33
*/
44

55
package io.airbyte.api.client;
66

7-
import io.airbyte.api.client.invoker.ApiClient;
7+
import io.airbyte.api.client.generated.ConnectionApi;
8+
import io.airbyte.api.client.generated.DbMigrationApi;
9+
import io.airbyte.api.client.generated.DestinationApi;
10+
import io.airbyte.api.client.generated.DestinationDefinitionApi;
11+
import io.airbyte.api.client.generated.DestinationDefinitionSpecificationApi;
12+
import io.airbyte.api.client.generated.HealthApi;
13+
import io.airbyte.api.client.generated.JobsApi;
14+
import io.airbyte.api.client.generated.OperationApi;
15+
import io.airbyte.api.client.generated.SourceApi;
16+
import io.airbyte.api.client.generated.SourceDefinitionApi;
17+
import io.airbyte.api.client.generated.SourceDefinitionSpecificationApi;
18+
import io.airbyte.api.client.generated.WorkspaceApi;
19+
import io.airbyte.api.client.invoker.generated.ApiClient;
820

921
/**
1022
* This class is meant to consolidate all our API endpoints into a fluent-ish client. Currently, all

0 commit comments

Comments
 (0)