-
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.
Enable the Connector Builder server in the platform (#19269)
* init * bad copy/paste * move to top level * Revert "move to top level" This reverts commit aca3534. * attempt to wire up connector builder frontend to server * copy from octaviacli * fix connection to builder server * update * delete * Update * delete python-version * Revert "delete python-version" This reverts commit f9258a7. * setup python * install python * rename * kube stuff * Install python * missing kube file * rename * Update files * Update bumpversion * install python * try with different entrypoint * rename container * point to docker-compose.yaml file * derp * copy acceptance_test.sh * copy from acceptance tests * delete cruft * update * remove application env * reset * reset to master * update * skip comprehensive incremental tests * Revert "skip comprehensive incremental tests" This reverts commit 9cee657. * reset to master * remove cruft * readme * readme * save * buncha stuff * it works * improvements * comment * codesnippet * delete superfluous steps * update port to 8003 * reset to master * Update publish docker * move openapi spec to airbyte-connector-builder * point to openapi spec * dont expose the connector builder to localhost * reset FE components to master * Don't deploy the connector-builder * Revert "Don't deploy the connector-builder" This reverts commit 3d15749. * Revert "Revert "Don't deploy the connector-builder"" This reverts commit beac3d4. * comment out more things related to connector builder server * more attempts at removing the connector builder * comment out more things * Update airbyte-connector-builder/README.md Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com> * fixes * rename gradle task * save * copyright header * Apply suggestions from code review Co-authored-by: Lake Mossman <lake@airbyte.io> * Update airbyte-webapp/src/config/configProviders.ts Co-authored-by: Lake Mossman <lake@airbyte.io> * update * rename * indent * Revert "move openapi spec to airbyte-connector-builder" This reverts commit 57dda04. * Revert "rename" This reverts commit b2d802b. * Revert "Revert "rename"" This reverts commit 91db24f. * point to wrong file in case it fixes the build * point to right openapi file * Revert "Revert "move openapi spec to airbyte-connector-builder"" This reverts commit e46a837. * point to moved file * fix path * Update from master * newline * Add failing test * Revert "Add failing test" This reverts commit ed9fea0. * comment * update commented requires * Add a comment * comments * save * formatting is for losers anyways * pyproject * toml * toml * saved * nice * anothaone * fmt * fixmypy * fix autogen notice header location * improvecomment * save working branch * fmt * delete license and disable caching * removeyaml * fix merge and uncomment flakeCheck * undo css change * fix typo * format * enable CORS * move template to backend server * try adding connector builder server to 'generate-docker' task to see if it fixes CI * try adding buildDockerImage task * try adding gradle.properties * Revert "try adding buildDockerImage task" This reverts commit 2102009. * Revert "try adding connector builder server to 'generate-docker' task to see if it fixes CI" This reverts commit 40b5ae0. * process detail in apiOverride * fix gradle * fix scrollbars * Run connector builder server tests and static analysis from a docker container (#19495) * Revert "try adding buildDockerImage task" This reverts commit 2102009. * Revert "try adding connector builder server to 'generate-docker' task to see if it fixes CI" This reverts commit 40b5ae0. * missing file * build airbyte-connector-builder-server image * Add . * comment * build connector builder server as part of octavia_cli * build connector builder too * patch * missing file * comment * comment * run unit tests in a container * Run integration tests * run * move to platform build * format * rootdir * get the path from the project * Update * pyproject * delete a bunch of code * parameterize * run tests * update * rename * comment * reset * uncomment * dont format * run everything except isort * delete dead code * Revert "delete dead code" This reverts commit b11df71. * comment * Update module * reset to master * mount in home * commit formatted files * try running format * Better comment * reset * Revert "reset" This reverts commit 20808f8. * Update buildSrc/src/main/groovy/airbyte-python-docker.gradle Co-authored-by: Sherif A. Nada <snadalive@gmail.com> * comment * Add everything except build and hidden directories * symlink * Update airbyte-connector-builder-server/run_format.sh Co-authored-by: Sherif A. Nada <snadalive@gmail.com> * Update airbyte-connector-builder-server/run_tests.sh Co-authored-by: Sherif A. Nada <snadalive@gmail.com> Co-authored-by: Sherif A. Nada <snadalive@gmail.com> Co-authored-by: Alexandre Girard <alexandre@airbyte.io> Co-authored-by: sherifnada <snadalive@gmail.com> Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com>
- Loading branch information
1 parent
a1da5fc
commit 684fbff
Showing
42 changed files
with
185 additions
and
258 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
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
2 changes: 2 additions & 0 deletions
2
airbyte-connector-builder-server/connector_builder/generated/apis/default_api_interface.py
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
4 changes: 0 additions & 4 deletions
4
airbyte-connector-builder-server/connector_builder/generated/models/extra_models.py
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
# coding: utf-8 | ||
|
||
from pydantic import BaseModel | ||
|
4 changes: 0 additions & 4 deletions
4
airbyte-connector-builder-server/connector_builder/generated/models/http_request.py
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
# coding: utf-8 | ||
|
||
from __future__ import annotations | ||
|
4 changes: 0 additions & 4 deletions
4
airbyte-connector-builder-server/connector_builder/generated/models/http_response.py
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
# coding: utf-8 | ||
|
||
from __future__ import annotations | ||
|
4 changes: 0 additions & 4 deletions
4
...nnector-builder-server/connector_builder/generated/models/invalid_input_exception_info.py
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
# coding: utf-8 | ||
|
||
from __future__ import annotations | ||
|
4 changes: 0 additions & 4 deletions
4
...yte-connector-builder-server/connector_builder/generated/models/invalid_input_property.py
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
# coding: utf-8 | ||
|
||
from __future__ import annotations | ||
|
4 changes: 0 additions & 4 deletions
4
airbyte-connector-builder-server/connector_builder/generated/models/known_exception_info.py
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
# coding: utf-8 | ||
|
||
from __future__ import annotations | ||
|
4 changes: 0 additions & 4 deletions
4
airbyte-connector-builder-server/connector_builder/generated/models/stream_read.py
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
# coding: utf-8 | ||
|
||
from __future__ import annotations | ||
|
4 changes: 0 additions & 4 deletions
4
airbyte-connector-builder-server/connector_builder/generated/models/stream_read_pages.py
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
# coding: utf-8 | ||
|
||
from __future__ import annotations | ||
|
4 changes: 0 additions & 4 deletions
4
...e-connector-builder-server/connector_builder/generated/models/stream_read_request_body.py
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
# coding: utf-8 | ||
|
||
from __future__ import annotations | ||
|
4 changes: 0 additions & 4 deletions
4
...nnector-builder-server/connector_builder/generated/models/stream_read_slice_descriptor.py
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
# coding: utf-8 | ||
|
||
from __future__ import annotations | ||
|
4 changes: 0 additions & 4 deletions
4
airbyte-connector-builder-server/connector_builder/generated/models/stream_read_slices.py
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
# coding: utf-8 | ||
|
||
from __future__ import annotations | ||
|
4 changes: 0 additions & 4 deletions
4
airbyte-connector-builder-server/connector_builder/generated/models/streams_list_read.py
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
# coding: utf-8 | ||
|
||
from __future__ import annotations | ||
|
4 changes: 0 additions & 4 deletions
4
...-connector-builder-server/connector_builder/generated/models/streams_list_read_streams.py
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
# coding: utf-8 | ||
|
||
from __future__ import annotations | ||
|
4 changes: 0 additions & 4 deletions
4
...-connector-builder-server/connector_builder/generated/models/streams_list_request_body.py
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
# coding: utf-8 | ||
|
||
from __future__ import annotations | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dockerImageName=connector-builder-server |
7 changes: 7 additions & 0 deletions
7
airbyte-connector-builder-server/integration_tests/test_integration_test.py
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
|
||
def test_test(): | ||
assert True |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
cd $1 | ||
|
||
# Pasted from https://github.com/airbytehq/airbyte/blob/master/buildSrc/src/main/groovy/airbyte-python.gradle#L85-L96 | ||
pip install 'mccabe==0.6.1' | ||
pip install 'flake8==4.0.1' | ||
pip install 'pyproject-flake8==0.0.1a2' | ||
pip install 'black==22.3.0' | ||
pip install 'mypy==0.930' | ||
pip install 'isort==5.6.4' | ||
pip install 'pytest==6.1.2' | ||
pip install 'coverage[toml]==6.3.1' | ||
|
||
# Format and static analysis | ||
# FIXME: isort formats python files differently from gradlew format | ||
python -m isort --settings-file=pyproject.toml ./ | ||
python -m isort --settings-file=pyproject.toml --diff --quiet ./ | ||
python -m black --config pyproject.toml ./ | ||
python -m black --config pyproject.toml ./ --diff --quiet | ||
python -m pflake8 --config pyproject.toml ./ | ||
python -m pflake8 --config pyproject.toml ./ --diff --quiet | ||
python -m mypy --config pyproject.toml ./ |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
cd $1 | ||
|
||
# Install dependencies | ||
pip install -e . | ||
pip install -e '.[main]' | ||
pip install -e '.[tests]' | ||
|
||
# Run the tests | ||
python -m coverage run -m pytest unit_tests -c pytest.ini | ||
python -m coverage run -m pytest integration_tests -c pytest.ini |
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
7 changes: 7 additions & 0 deletions
7
airbyte-connector-builder-server/unit_tests/test_unit_test.py
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
|
||
def test_test(): | ||
assert True |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
overflow-y: hidden; | ||
} | ||
|
||
.header { | ||
|
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
Oops, something went wrong.