forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use CDK to generate source that can be configured to emit a certain number of records and always works. * Checkpoint: socat works from inside the docker container. * Override the entry point. * Clean up and add ReadMe. * Clean up socat. * Checkpoint: connect to Kube cluster and list all the pods. * Checkpoint: Sync worker pod is able to send output to the destination pod. * Checkpoint: Sync worker creates Dest pod if none existed previously. It also waits for the pod to be ready before doing anything else. Sync worker will also remove the pod on termination. * update readme * Checkpoint: Dest pod does nott restart after finishing. Comment out delete command in Sync worker. * working towards named pipes * named pipes working * update readme * WIP named pipe / socat sidecar kube port forwarding (airbytehq#3518) * nearly working sources * update * stdin example * move all kube testing yamls into the airbyte-workers directories. sort the airbyte-workers resource folder; place all the poc yamls together. * Format. * Put back the original KubeProcessBuilderFactory. * Fix slight errors. * Checkpoint: Worker pod knows its own IP. Successfully starts and writes to Dest pod after refactor. * remove unused file and update readme * Dest pod loops back into worker pod. However, the right messages do not seem to be passing in. * Switch back to worker ip. * SWEET VICTORY!. * wrap kube pod in process (airbytehq#3540) also clean up kubernetes deploys. * More clean up. (airbytehq#3586) The first 6 points of airbytehq#3464. The only interesting thing about this PR is the kube pod shutdown. For whatever reason, the OkHttpPool isn't respecting the evictAll call and 1 idle thread remains. So instead of shutting down immediately, the worker pod shuts down after 5 mins when the idle thread id reaped. There isn't an easy way to modify the pool's idle reap configuration now. I do not think this issue is blocking since it's relatively benign, so I vote we create a ticket and come back to this once we do an e2e test. * Implements redirecting standard error as well. (airbytehq#3623) * Clean up before next implementation. * kube process launching (airbytehq#3790) * processes must handle file mounting * remove comment * default to base entrypoint * use process builder factory / select stdin / use a pool of ports * fix up * add super hacky copying example * Checkpoint: Works end to end! * Checkpoint: Use API to make sure init container is ready instead of blind sleep. Propagate exception in DefaultCheckConnectionWorker. * Refactor KubePodProcess. Checked to make sure everything still works. * Format. * Clean up code. Begin putting this into variables and breaking up long constructor function. * Add comments to explain what is happening. * fix normalization test * increase timeout for initcontainer Co-authored-by: Davin Chia <[email protected]> * facepalm moment * clean up kube poc pr (airbytehq#3834) * clean up * remove source-always-works * create separate commons-docker * fix test * enable kube e2e tests (airbytehq#3866) * enable kube e2e tests * use more generally accepted env definition * use new runners * use its own runner and install minikube differently * update name * use kubectl alias * use link instead of alias that doesn't propagate * start minikube * use driver=none * go back to using action * mess with versions * revert runner * install socat * print logs after run * also try re-runnining tasks * always wait for file transfer * use ports * increase wait timeout for kube * use different localhost ips and bump normalization to include an entrypoint * proposed fix * all working locally * revert temporary changes * revert normalization image change that's happening in a separate pr * readability * final comment * Working Kube Cancel. (airbytehq#3983) * Port over the basic changes. * Add logic to return proper exit code in the event of termination. Add comments to explain why. * revert envs change and merge master to fix kube acceptance tests (airbytehq#4012) * use older env format * fix build Co-authored-by: jrhizor <[email protected]> Co-authored-by: Jared Rhizor <[email protected]>
- Loading branch information
1 parent
36488ef
commit b04c080
Showing
72 changed files
with
1,141 additions
and
313 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 |
---|---|---|
|
@@ -286,41 +286,37 @@ jobs: | |
|
||
- name: Run End-to-End Frontend Tests | ||
run: ./tools/bin/e2e_test.sh | ||
test_kube: | ||
runs-on: ubuntu-latest | ||
name: Run Acceptance Tests (Kube) | ||
steps: | ||
- name: Checkout Airbyte | ||
uses: actions/checkout@v2 | ||
|
||
# DISABLED UNTIL WE HAVE TEMPORAL ON KUBE | ||
# test_kube: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout Airbyte | ||
# uses: actions/checkout@v2 | ||
# | ||
# - uses: actions/setup-java@v1 | ||
# with: | ||
# java-version: '14' | ||
# | ||
# - uses: actions/setup-node@v1 | ||
# with: | ||
# node-version: '14.7' | ||
# | ||
# - uses: actions/setup-python@v2 | ||
# with: | ||
# python-version: '3.7' | ||
# | ||
# - name: Setup Minikube | ||
# uses: manusa/[email protected] | ||
# with: | ||
# minikube version: 'v1.16.0' | ||
# kubernetes version: 'v1.19.2' | ||
# | ||
# - name: Install socat | ||
# run: sudo apt-get install socat | ||
# | ||
# - name: Build Core Docker Images and Run Tests | ||
# run: CORE_ONLY=true ./gradlew --no-daemon composeBuild test -x :airbyte-webapp:test --scan | ||
# env: | ||
# GIT_REVISION: ${{ github.sha }} | ||
# CORE_ONLY: true | ||
# | ||
# - name: Run Kubernetes End-to-End Acceptance Tests | ||
# run: | | ||
# ./tools/bin/acceptance_test_kube.sh | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '14' | ||
|
||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '14.7' | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.7' | ||
|
||
- name: Setup Minikube | ||
uses: manusa/[email protected] | ||
with: | ||
minikube version: 'v1.21.0-beta.0' | ||
kubernetes version: 'v1.20.7' | ||
|
||
- name: Install socat (required for port forwarding) | ||
run: sudo apt-get install socat | ||
|
||
- name: Build Core Docker Images and Run Tests | ||
run: CORE_ONLY=true ./gradlew --no-daemon build --scan --rerun-tasks | ||
|
||
- name: Run Kubernetes End-to-End Acceptance Tests | ||
run: | | ||
IS_MINIKUBE=true ./tools/bin/acceptance_test_kube.sh |
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,11 @@ | ||
plugins { | ||
id "java-library" | ||
} | ||
|
||
dependencies { | ||
implementation 'org.apache.commons:commons-compress:1.20' | ||
implementation 'com.github.docker-java:docker-java:3.2.8' | ||
implementation 'com.github.docker-java:docker-java-transport-httpclient5:3.2.8' | ||
|
||
testImplementation 'org.apache.commons:commons-lang3:3.11' | ||
} |
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
File renamed without changes.
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
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
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
Oops, something went wrong.