-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added task_type parameter for correct model loading (#245)
* started adding task_type * started adding quality control tests * fixed integration tests, added separate models for tasks * [CodeBuild] fix saas db naming error * Use batch build for AWS CodeBuild to speed up tests against backends. [CodeBuild] * Build and export SLC before running SaaS integration tests to avoid waiting for the SLC build while the SaaS DB is already running [CodeBuild] * Use itde_config fixture instead itde fiture to avoid starting the itde without need and make db_conn a session fixture [CodeBuild] * Save SaaS Database id in pytest stash to not recreate a SaaS DB for each test. It seems to be a bug that a session scope fixture is called for every test. This might happen because backend is parameterized. [CodeBuild] * Increase DB Mem Size for ITDE to hopefully stabalize onprem tests in CodeBuild [CodeBuild] * Increase VM Size for onprem tests in CodeBuild to hopefully stabalize them [CodeBuild] Co-authored-by: Torsten Kilias <[email protected]>
- Loading branch information
1 parent
65b80ae
commit 4cca904
Showing
78 changed files
with
881 additions
and
367 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 |
---|---|---|
@@ -1,29 +1,20 @@ | ||
version: 0.2 | ||
|
||
env: | ||
shell: bash | ||
secrets-manager: | ||
DOCKER_USER: "Dockerhub:User" | ||
DOCKER_PASSWORD: "Dockerhub:AccessToken" | ||
SAAS_HOST: "ExasolSaaSDatabase:SAAS_HOST" | ||
SAAS_ACCOUNT_ID: "ExasolSaaSDatabase:SAAS_ACCOUNT_ID" | ||
SAAS_PAT: "ExasolSaaSDatabase:SAAS_PAT" | ||
|
||
phases: | ||
install: | ||
runtime-versions: | ||
python: 3.10 | ||
commands: | ||
- curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.4.2 python3 - | ||
- export PATH=$PATH:$HOME/.local/bin | ||
- poetry env use $(command -v "python3.10") | ||
- poetry --version | ||
- poetry install | ||
- poetry build | ||
pre_build: | ||
commands: | ||
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USER" --password-stdin | ||
build: | ||
commands: | ||
- poetry run nox -s start_database | ||
- poetry run nox -s integration_tests | ||
batch: | ||
fast-fail: false | ||
build-graph: | ||
- identifier: without_db_tests | ||
env: | ||
compute-type: BUILD_GENERAL1_MEDIUM | ||
privileged-mode: true | ||
buildspec: ./buildspec_without_db.yml | ||
- identifier: saas_tests | ||
env: | ||
compute-type: BUILD_GENERAL1_MEDIUM | ||
privileged-mode: true | ||
buildspec: ./buildspec_saas.yml | ||
- identifier: onprem_tests | ||
env: | ||
compute-type: BUILD_GENERAL1_LARGE | ||
privileged-mode: true | ||
buildspec: ./buildspec_onprem.yml |
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,26 @@ | ||
version: 0.2 | ||
|
||
env: | ||
shell: bash | ||
secrets-manager: | ||
DOCKER_USER: "Dockerhub:User" | ||
DOCKER_PASSWORD: "Dockerhub:AccessToken" | ||
|
||
phases: | ||
install: | ||
runtime-versions: | ||
python: 3.10 | ||
commands: | ||
- curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.4.2 python3 - | ||
- export PATH=$PATH:$HOME/.local/bin | ||
- poetry env use $(command -v "python3.10") | ||
- poetry --version | ||
- poetry install | ||
- poetry build | ||
pre_build: | ||
commands: | ||
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USER" --password-stdin | ||
build: | ||
commands: | ||
- poetry run nox -s start_database | ||
- poetry run nox -s onprem_integration_tests |
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,29 @@ | ||
version: 0.2 | ||
|
||
env: | ||
shell: bash | ||
secrets-manager: | ||
DOCKER_USER: "Dockerhub:User" | ||
DOCKER_PASSWORD: "Dockerhub:AccessToken" | ||
SAAS_HOST: "ExasolSaaSDatabase:SAAS_HOST" | ||
SAAS_ACCOUNT_ID: "ExasolSaaSDatabase:SAAS_ACCOUNT_ID" | ||
SAAS_PAT: "ExasolSaaSDatabase:SAAS_PAT" | ||
|
||
phases: | ||
install: | ||
runtime-versions: | ||
python: 3.10 | ||
commands: | ||
- curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.4.2 python3 - | ||
- export PATH=$PATH:$HOME/.local/bin | ||
- poetry env use $(command -v "python3.10") | ||
- poetry --version | ||
- poetry install | ||
- poetry build | ||
pre_build: | ||
commands: | ||
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USER" --password-stdin | ||
build: | ||
commands: | ||
- poetry run nox -s export_slc | ||
- poetry run nox -s saas_integration_tests |
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,25 @@ | ||
version: 0.2 | ||
|
||
env: | ||
shell: bash | ||
secrets-manager: | ||
DOCKER_USER: "Dockerhub:User" | ||
DOCKER_PASSWORD: "Dockerhub:AccessToken" | ||
|
||
phases: | ||
install: | ||
runtime-versions: | ||
python: 3.10 | ||
commands: | ||
- curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.4.2 python3 - | ||
- export PATH=$PATH:$HOME/.local/bin | ||
- poetry env use $(command -v "python3.10") | ||
- poetry --version | ||
- poetry install | ||
- poetry build | ||
pre_build: | ||
commands: | ||
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USER" --password-stdin | ||
build: | ||
commands: | ||
- poetry run nox -s without_db_integration_tests |
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
1 change: 1 addition & 0 deletions
1
exasol_transformers_extension/resources/templates/model_downloader_udf.jinja.sql
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.