Skip to content

Commit

Permalink
Merge branch 'teradata_master' into query_band
Browse files Browse the repository at this point in the history
  • Loading branch information
sc250072 committed Oct 21, 2024
2 parents 138006c + fd25c02 commit 6c62bcf
Show file tree
Hide file tree
Showing 527 changed files with 36,507 additions and 30,204 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/airbyte-ci-teradata-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: airbyte-ci-teradata-ci
on:
push:
branches:
- td_develop
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
jobs:
teradata-tests:
name: "Run Airbyte Teradata Destination Connector Unit and Integration Tests"
runs-on: "ubuntu-22.04"
steps:
- name: "Checkout Source Code"
uses: actions/checkout@v4
with:
ref: td_develop
persist-credentials: false
- name: "Install PIP"
run: |
sudo apt-get update
sudo apt install python3-pip
- name: "Install Python"
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: "Install Java 17"
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: "Install Node 16"
uses: actions/setup-node@v4
with:
node-version: '16'
- name: Install jq
run: sudo apt install -y jq
- name: "Install Docker and Docker Compose"
run: |
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo chmod 666 /var/run/docker.sock
- name: Download Test artifacts from Teradata S3
run: |
mkdir airbyte-integrations/connectors/destination-teradata/secrets
aws s3 cp s3://${{ vars.NON_SSL_CSAE_ENV_AWS_PATH }} airbyte-integrations/connectors/destination-teradata/secrets
aws s3 cp s3://${{ vars.SSL_CSAE_ENV_AWS_PATH }} airbyte-integrations/connectors/destination-teradata/secrets
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
- name: Install airbyte-ci binary
id: install-airbyte-ci
shell: bash
run: |
curl -sSL https://connectors.airbyte.com/files/airbyte-ci/releases/ubuntu/3.0.2/airbyte-ci --output airbyte-ci-bin
sudo mv airbyte-ci-bin /usr/local/bin/airbyte-ci
sudo chmod +x /usr/local/bin/airbyte-ci
- name: Test connectors
run: |
airbyte-ci connectors --name=destination-teradata test
mkdir integrationtestreport
ls -al ./airbyte-integrations/connectors/destination-teradata/build/reports/tests/integrationTestJava
cp -r ./airbyte-integrations/connectors/destination-teradata/build/reports/tests/integrationTestJava integrationtestreport
70 changes: 70 additions & 0 deletions .github/workflows/airbyte-ci-teradata-ci_branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: airbyte-ci-teradata-ci-branch
on:
push:
branches-ignore:
- td_develop
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
jobs:
teradata-tests:
name: "Run Airbyte Teradata Destination Connector Unit and Integration Tests"
runs-on: "ubuntu-22.04"
steps:
- name: "Checkout Source Code"
uses: actions/checkout@v4
with:
ref: ${{ vars.BRANCH }}
persist-credentials: false
- name: "Install PIP"
run: |
sudo apt-get update
sudo apt install python3-pip
- name: "Install Python"
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: "Install Java 17"
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: "Install Node 16"
uses: actions/setup-node@v4
with:
node-version: '16'
- name: Install jq
run: sudo apt install -y jq
- name: "Install Docker and Docker Compose"
run: |
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo chmod 666 /var/run/docker.sock
- name: Download Test artifacts from Teradata S3
run: |
mkdir airbyte-integrations/connectors/destination-teradata/secrets
aws s3 cp s3://${{ vars.NON_SSL_CSAE_ENV_AWS_PATH }} airbyte-integrations/connectors/destination-teradata/secrets
aws s3 cp s3://${{ vars.SSL_CSAE_ENV_AWS_PATH }} airbyte-integrations/connectors/destination-teradata/secrets
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
- name: Install airbyte-ci binary
id: install-airbyte-ci
shell: bash
run: |
curl -sSL https://connectors.airbyte.com/files/airbyte-ci/releases/ubuntu/4.17.0/airbyte-ci --output airbyte-ci-bin
sudo mv airbyte-ci-bin /usr/local/bin/airbyte-ci
sudo chmod +x /usr/local/bin/airbyte-ci
- name: Test connectors
run: |
airbyte-ci connectors --name=destination-teradata test
66 changes: 66 additions & 0 deletions .github/workflows/airbyte-ci-teradata-master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: airbyte-ci-teradata-master
on:
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
jobs:
teradata-tests:
name: "Run Airbyte Teradata Destination Connector Unit and Integration Tests"
runs-on: "ubuntu-22.04"
steps:
- name: "Checkout Source Code"
uses: actions/checkout@v4
with:
ref: master
persist-credentials: false
- name: "Install PIP"
run: |
sudo apt-get update
sudo apt install python3-pip
- name: "Install Python"
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: "Install Java 17"
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: "Install Node 16"
uses: actions/setup-node@v4
with:
node-version: '16'
- name: Install jq
run: sudo apt install -y jq
- name: "Install Docker and Docker Compose"
run: |
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo chmod 666 /var/run/docker.sock
- name: "Download Test artifacts from Teradata S3"
run: |
mkdir airbyte-integrations/connectors/destination-teradata/secrets
aws s3 cp s3://${{ vars.NON_SSL_CSAE_ENV_AWS_PATH }} airbyte-integrations/connectors/destination-teradata/secrets
aws s3 cp s3://${{ vars.SSL_CSAE_ENV_AWS_PATH }} airbyte-integrations/connectors/destination-teradata/secrets
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
- name: "Install airbyte-ci binary"
id: install-airbyte-ci
shell: bash
run: |
curl -sSL https://connectors.airbyte.com/files/airbyte-ci/releases/ubuntu/4.17.0/airbyte-ci --output airbyte-ci-bin
sudo mv airbyte-ci-bin /usr/local/bin/airbyte-ci
sudo chmod +x /usr/local/bin/airbyte-ci
- name: "Run Teradata Destination Connector Integration Tests"
run: |
airbyte-ci connectors --name=destination-teradata test
78 changes: 78 additions & 0 deletions .github/workflows/airbyte-ci-teradata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: airbyte-ci-teradata
on:
push:
branches:
- td_develop
workflow_dispatch:
schedule:
- cron: "0 6 * * *"
permissions:
contents: write
pages: write
id-token: write
jobs:
teradata-tests:
name: "Run Airbyte Teradata Destination Connector Unit and Integration Tests"
runs-on: "ubuntu-22.04"
steps:
- name: "Checkout Source Code"
uses: actions/checkout@v4
with:
ref: ${{ vars.BRANCH }}
persist-credentials: false
- name: "Install PIP"
run: |
sudo apt-get update
sudo apt install python3-pip
- name: "Install Python"
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: "Install Java 17"
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: "Install Node 16"
uses: actions/setup-node@v4
with:
node-version: '16'
- name: Install jq
run: sudo apt install -y jq
- name: "Install Docker and Docker Compose"
run: |
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo chmod 666 /var/run/docker.sock
- name: Download Test artifacts from Teradata S3
run: |
mkdir airbyte-integrations/connectors/destination-teradata/secrets
aws s3 cp s3://${{ vars.NON_SSL_CSAE_ENV_AWS_PATH }} airbyte-integrations/connectors/destination-teradata/secrets
aws s3 cp s3://${{ vars.SSL_CSAE_ENV_AWS_PATH }} airbyte-integrations/connectors/destination-teradata/secrets
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
- name: "Run Teradata Destination Connector Integration Tests"
run: |
REMOTE_CONNECTOR_CATALOG_URL=https://github.com/SatishChGit/AirbyteEnv/blob/main/oss_registry.json
./gradlew :airbyte-integrations:connectors:destination-teradata:integrationTest
- name: Build GITHUB Page for Teradata Airbyte Connector Integration Tests Report
if: always()
uses: actions/jekyll-build-pages@v1
with:
source: airbyte-integrations/connectors/destination-teradata/build/reports/tests/integrationTestJava
destination: ./_site
- name: Upload Teradata Airbyte Connector Integration Tests Report to GITHUB page
if: always()
uses: actions/upload-pages-artifact@v2
- name: Publish Teradata Airbyte Connector Integration Tests Report to GITHUB page
if: always()
id: deployment
uses: actions/deploy-pages@v2
4 changes: 2 additions & 2 deletions .github/workflows/airbyte-ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
uses: ./.github/actions/run-airbyte-ci
with:
context: "pull_request"
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_2 }}
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_CACHE_5 }}
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }}
Expand All @@ -98,7 +98,7 @@ jobs:
uses: ./.github/actions/run-airbyte-ci
with:
context: "manual"
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_2 }}
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_CACHE_5 }}
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cdk_connectors_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
uses: ./.github/actions/run-airbyte-ci
with:
context: ${{ github.event_name == 'pull_request' && 'pull_request' || 'manual' }}
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_2 }}
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_CACHE_5 }}
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/community_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ jobs:
uses: ./.github/actions/run-airbyte-ci
with:
context: "pull_request"
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_2 }}
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_CACHE_4 }}
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }}
Expand Down Expand Up @@ -237,7 +237,7 @@ jobs:
uses: ./.github/actions/run-airbyte-ci
with:
context: "pull_request"
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_2 }}
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_CACHE_4 }}
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/connectors_nightly_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
with:
context: "master"
ci_job_key: "nightly_builds"
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_2 }}
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_CACHE_3 }}
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/connectors_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
uses: ./.github/actions/run-airbyte-ci
with:
context: "manual"
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_2 }}
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_CACHE_3 }}
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }}
Expand All @@ -121,7 +121,7 @@ jobs:
uses: ./.github/actions/run-airbyte-ci
with:
context: "pull_request"
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_2 }}
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_CACHE_3 }}
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/connectors_up_to_date.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: ./.github/actions/run-airbyte-ci
with:
context: "master"
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_2 }}
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_CACHE_3 }}
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/connectors_version_increment_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
uses: ./.github/actions/run-airbyte-ci
with:
context: "pull_request"
# dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_2 }} Commenting this out as we believe Dagger cloud caching is causing excessively long jobs for such a small check
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_CACHE_2 }}
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/connectors_weekly_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
with:
context: "master"
ci_job_key: "weekly_alpha_test"
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_2 }}
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_CACHE_3 }}
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }}
Expand Down
Loading

0 comments on commit 6c62bcf

Please sign in to comment.