Skip to content

Commit ce47f0c

Browse files
committed
Merge master to branch
2 parents 0507927 + 303d103 commit ce47f0c

File tree

277 files changed

+10075
-3370
lines changed

Some content is hidden

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

277 files changed

+10075
-3370
lines changed

.bumpversion.cfg

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

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
### SHARED ###
13-
VERSION=0.35.31-alpha
13+
VERSION=0.35.32-alpha
1414

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

.github/actions/ci-java-tests/action.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ inputs:
99
runs:
1010
using: "composite"
1111
steps:
12-
- name: Install Java
13-
uses: actions/setup-java@v1
14-
with:
15-
java-version: '17'
16-
1712
- name: "Build"
1813
shell: bash
1914
run: |

.github/actions/ci-py-tests/action.yml

Lines changed: 10 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -27,57 +27,26 @@ runs:
2727
- name: Build Coverage Reports
2828
id: build-coverage-reports
2929
shell: bash
30-
working-directory: ${{ inputs.module-folder }}
3130
run: |
32-
virtualenv .venv
33-
source .venv/bin/activate
34-
JSON_CONFIG='{"module": "${{ inputs.module-name }}", "folder": "${{ inputs.module-folder }}", "lang": "py"}'
35-
pip install coverage[toml]~=6.2
36-
mkdir -p .venv/source-acceptance-test
37-
mkdir -p reports
38-
SAT_DIR=$(git rev-parse --show-toplevel)/airbyte-integrations/bases/source-acceptance-test
39-
PYPROJECT_CONFIG=$(git rev-parse --show-toplevel)/pyproject.toml
40-
git ls-tree -r HEAD --name-only $SAT_DIR | while read src; do cp -f $src .venv/source-acceptance-test; done
41-
pip install build
42-
python -m build .venv/source-acceptance-test
43-
pip install .venv/source-acceptance-test/dist/source_acceptance_test-*.whl
44-
[ -f requirements.txt ] && pip install --quiet -r requirements.txt
45-
pip install .[tests]
46-
coverage run --rcfile=${PYPROJECT_CONFIG} -m pytest ./unit_tests || true
47-
coverage xml --rcfile=${PYPROJECT_CONFIG} -o reports/coverage.xml || true
31+
GRADLE_JOB=$(source ./tools/lib/lib.sh; full_path_to_gradle_path ${{ inputs.module-folder }} "unitTest")
32+
REPORT_FOLDER="${{ inputs.module-folder }}/coverage/"
33+
./gradlew --no-daemon -Preports_folder=${REPORT_FOLDER} ${GRADLE_JOB}
4834
49-
rm -rf .venv
50-
echo "::set-output name=coverage-paths::reports/coverage.xml"
35+
echo "::set-output name=coverage-paths::coverage/coverage.xml"
5136
5237
- name: Upload coverage to Codecov
53-
if: ${{ always() }}
5438
uses: codecov/codecov-action@v2
39+
with:
40+
file: ${{ steps.build-coverage-reports.outputs.coverage-paths }}
41+
name: "UnitTests of ${{ inputs.module-name }}"
5542

5643
- name: Build Linter Reports
5744
id: build-linter-reports
5845
shell: bash
59-
working-directory: ${{ inputs.module-folder }}
6046
run: |
61-
JSON_CONFIG='{"module": "${{ inputs.module-name }}", "folder": "${{ inputs.module-folder }}", "lang": "py"}'
62-
REPORT_FOLDER=reports
63-
PYPROJECT_CONFIG=$(git rev-parse --show-toplevel)/pyproject.toml
64-
65-
# run mypy
66-
pip install lxml~=4.7 mypy~=0.910 .
67-
mypy . --config-file=${PYPROJECT_CONFIG} | tee reports/mypy.log || true
68-
69-
# run black
70-
pip install black~=21.12b0
71-
XDG_CACHE_HOME=/dev/null black --config ${PYPROJECT_CONFIG} --diff . | tee reports/black.diff
72-
73-
# run isort
74-
pip install isort~=5.10.1
75-
cp ${PYPROJECT_CONFIG} ./pyproject.toml
76-
isort --diff . | tee reports/isort.diff
77-
78-
# run flake8
79-
pip install mccabe~=0.6.1 pyproject-flake8~=0.0.1a2
80-
pflake8 --exit-zero . | grep ^. | tee reports/flake.txt
47+
GRADLE_JOB=$(source ./tools/lib/lib.sh; full_path_to_gradle_path ${{ inputs.module-folder }} "airbytePythonReport")
48+
REPORT_FOLDER="${{ inputs.module-folder }}/reports/"
49+
./gradlew --no-daemon -Preports_folder=${REPORT_FOLDER} ${GRADLE_JOB}
8150
8251
echo "::set-output name=mypy-logs::reports/mypy.log"
8352
echo "::set-output name=black-diff::reports/black.diff"

.github/actions/ci-tests-runner/action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,18 @@ runs:
3232
with:
3333
python-version: 3.7
3434

35+
- name: Install Java
36+
uses: actions/setup-java@v1
37+
with:
38+
java-version: '17'
39+
3540
- name: Tests of CI
3641
shell: bash
3742
run: |
3843
# all CI python packages have the prefix "ci_"
3944
pip install --quiet tox==3.24.4
40-
tox -r -c ./tools/tox_ci.ini
4145
pip install --quiet -e ./tools/ci_*
46+
tox -r -c ./tools/tox_ci.ini
4247
echo "::echo::off"
4348
4449
- name: Auth with gcloud CLI
@@ -109,6 +114,7 @@ runs:
109114
[ -f ${{ steps.ci-py-tests.outputs.coverage-paths }} ] && OPTIONS+=("-Dsonar.python.coverage.reportPaths=${{ steps.ci-py-tests.outputs.coverage-paths }}")
110115
[ -f ${{ steps.ci-py-tests.outputs.flake8-logs }} ] && OPTIONS+=("-Dsonar.python.flake8.reportPaths=${{ steps.ci-py-tests.outputs.flake8-logs }}")
111116
fi
117+
cat ${REPORT_FOLDER}/*
112118
if [ ${{ inputs.module-lang }} == 'java' ]; then
113119
[ -d "./src/main/java" ] && OPTIONS+=("-Dsonar.sources=./src/main/java")
114120
[ -d "./src/test/java" ] && OPTIONS+=("-Dsonar.tests=./src/test/java")
@@ -133,6 +139,7 @@ runs:
133139
MODULE_DIR=$(python -c "print('${{ inputs.module-folder }}'.replace('${ROOT_DIR}', '.'))")
134140
echo "::set-output name=module_dir::${MODULE_DIR}"
135141
142+
136143
- name: SonarQube Scan
137144

138145
uses: sonarsource/sonarqube-scan-action@master
@@ -148,7 +155,7 @@ runs:
148155
-Dsonar.language=${{ inputs.module-lang }}
149156
-Dsonar.sourceEncoding=UTF-8
150157
-Dsonar.projectBaseDir=${{ steps.create-sq-project.outputs.module_dir }}
151-
-Dsonar.exclusions=reports/**,*.toml
158+
-Dsonar.exclusions=reports/**,*.toml,*_tests/**,setup.py,main.py
152159
-Dsonar.externalIssuesReportPaths=${{ steps.sq-options.outputs.external_reports }}
153160
${{ steps.sq-options.outputs.options }}
154161

.github/workflows/sonar-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
sonar-token: ${{ secrets.SONAR_TOKEN }}
7373
sonar-gcp-access-key: ${{ secrets.GCP_SONAR_SA_KEY }}
7474
pull-request-id: "${{ github.repository }}/${{ github.event.pull_request.number }}"
75-
remove-sonar-project: ${{ github.event_name == 'pull_request' && github.event.action == 'closed' }}
75+
remove-sonar-project: ${{ github.event.action == 'closed' }}
7676

7777

7878

airbyte-api/src/main/openapi/config.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,29 @@ paths:
494494
$ref: "#/components/schemas/SourceReadList"
495495
"422":
496496
$ref: "#/components/responses/InvalidInputResponse"
497+
/v1/sources/clone:
498+
post:
499+
tags:
500+
- source
501+
summary: Clone source
502+
operationId: cloneSource
503+
requestBody:
504+
content:
505+
application/json:
506+
schema:
507+
$ref: "#/components/schemas/SourceIdRequestBody"
508+
required: true
509+
responses:
510+
"200":
511+
description: Successful operation
512+
content:
513+
application/json:
514+
schema:
515+
$ref: "#/components/schemas/SourceRead"
516+
"404":
517+
$ref: "#/components/responses/NotFoundResponse"
518+
"422":
519+
$ref: "#/components/responses/InvalidInputResponse"
497520
/v1/sources/delete:
498521
post:
499522
tags:
@@ -892,6 +915,29 @@ paths:
892915
$ref: "#/components/responses/NotFoundResponse"
893916
"422":
894917
$ref: "#/components/responses/InvalidInputResponse"
918+
/v1/destinations/clone:
919+
post:
920+
tags:
921+
- destination
922+
summary: Clone destination
923+
operationId: cloneDestination
924+
requestBody:
925+
content:
926+
application/json:
927+
schema:
928+
$ref: "#/components/schemas/DestinationIdRequestBody"
929+
required: true
930+
responses:
931+
"200":
932+
description: Successful operation
933+
content:
934+
application/json:
935+
schema:
936+
$ref: "#/components/schemas/DestinationRead"
937+
"404":
938+
$ref: "#/components/responses/NotFoundResponse"
939+
"422":
940+
$ref: "#/components/responses/InvalidInputResponse"
895941
/v1/connections/create:
896942
post:
897943
tags:

airbyte-bootloader/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ ENV APPLICATION airbyte-bootloader
55

66
WORKDIR /app
77

8-
ADD bin/${APPLICATION}-0.35.31-alpha.tar /app
8+
ADD bin/${APPLICATION}-0.35.32-alpha.tar /app
99

10-
ENTRYPOINT ["/bin/bash", "-c", "${APPLICATION}-0.35.31-alpha/bin/${APPLICATION}"]
10+
ENTRYPOINT ["/bin/bash", "-c", "${APPLICATION}-0.35.32-alpha/bin/${APPLICATION}"]

airbyte-bootloader/src/main/java/io/airbyte/bootloader/BootloaderApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public void load() throws Exception {
114114

115115
final ConfigPersistence configPersistence = DatabaseConfigPersistence.createWithValidation(configDatabase);
116116
final ConfigRepository configRepository =
117-
new ConfigRepository(configPersistence, null, Optional.empty(), Optional.empty());
117+
new ConfigRepository(configPersistence, null, Optional.empty(), Optional.empty(), configDatabase);
118118

119119
createWorkspaceIfNoneExists(configRepository);
120120
LOGGER.info("Default workspace created..");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"sourceDefinitionId": "2817b3f0-04e4-4c7a-9f32-7a5e8a83db95",
3+
"name": "PagerDuty",
4+
"dockerRepository": "farosai/airbyte-pagerduty-source",
5+
"dockerImageTag": "0.1.23",
6+
"documentationUrl": "https://docs.airbyte.io/integrations/sources/pagerduty",
7+
"icon": "pagerduty.svg"
8+
}

0 commit comments

Comments
 (0)