feat(usable): integrate current dbtool implementation snapshot
Some checks failed
release-smoke / macos-13 / x86_64-apple-darwin (push) Has been cancelled
release-smoke / ubuntu-latest / x86_64-unknown-linux-gnu (push) Has been cancelled
release-smoke / windows-latest / x86_64-pc-windows-msvc (push) Has been cancelled

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Paperclip CTO
2026-04-02 08:26:18 +00:00
parent a28dab4cd9
commit d5f69462b0
73 changed files with 5895 additions and 322 deletions

View File

@@ -19,7 +19,8 @@ sidecar_image="${QA_SIDECAR_IMAGE:-paperclip-local-db-codex}"
docker_network="${QA_DOCKER_NETWORK:-dbtool-cli-v1_default}"
postgres_container="${QA_POSTGRES_CONTAINER:-dbtool-cli-v1-postgres-1}"
mysql_container="${QA_MYSQL_CONTAINER:-dbtool-cli-v1-mysql-1}"
postgres_user="${QA_POSTGRES_USER:-dbtool}"
postgres_admin_user="${QA_POSTGRES_ADMIN_USER:-postgres}"
postgres_admin_password="${QA_POSTGRES_ADMIN_PASSWORD:-dbtoolroot}"
postgres_db="${QA_POSTGRES_DB:-dbtool_demo}"
mysql_root_password="${QA_MYSQL_ROOT_PASSWORD:-dbtoolroot}"
sidecar_root="/tmp/work"
@@ -42,8 +43,8 @@ mkdir -p "$output_dir"
docker image inspect "$sidecar_image" >/dev/null
docker exec -i "$postgres_container" \
psql -v ON_ERROR_STOP=1 -U "$postgres_user" -d "$postgres_db" \
docker exec -e "PGPASSWORD=$postgres_admin_password" -i "$postgres_container" \
psql -v ON_ERROR_STOP=1 -U "$postgres_admin_user" -d "$postgres_db" \
< "$root_dir/examples/fixtures/postgres/init.sql" >/dev/null
docker exec -i "$mysql_container" \
@@ -78,10 +79,10 @@ docker exec \
-e QA_EXECUTION_PATH=sidecar \
-e QA_COMMIT_SHA="$commit_sha" \
-e QA_BRANCH_NAME="$branch_name" \
-e DBTOOL_POSTGRES_HOST=postgres \
-e DBTOOL_POSTGRES_HOST="${DBTOOL_POSTGRES_HOST:-$postgres_container}" \
-e DBTOOL_POSTGRES_PORT=5432 \
-e DBTOOL_POSTGRES_NET_PORT=59999 \
-e DBTOOL_MYSQL_HOST=mysql \
-e DBTOOL_MYSQL_HOST="${DBTOOL_MYSQL_HOST:-$mysql_container}" \
-e DBTOOL_MYSQL_PORT=3306 \
-e DBTOOL_MYSQL_NET_PORT=59998 \
"$cid" \