feat: load the env file at start-up, trim schema lookups, remove legacy samples
Start-up - Export the env file's variables for other libraries (the Cloud provider's client) into the process environment; the app's own settings and secrets are never exported, and a value already in the environment wins. - Use GOOGLE_GENAI_USE_ENTERPRISE in place of the deprecated GOOGLE_GENAI_USE_VERTEXAI. Target architect - Look each distinct resource type up once instead of once per setting: in the run of 2026-10-07 it made 39 lookups for 8 types and exhausted its budget. terraform_schema's find takes several names; budget 30 to 45. - A cut-off schema outline says so. Removed, as leftovers of the original pipeline that nothing read - terraform/ (no longer passed terraform validate), scripts/validate.sh, tests/test_package.py and the CI steps that ran on them. - The sample outputs under docs/ and requirements.yaml. - CI now pins Terraform 1.14.3, as the container image does. Plans record the case 01 run: completed at 100% in 18 minutes with no Revision, against 60 minutes and warnings before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
command -v terraform >/dev/null || { echo 'terraform is required'; exit 2; }
|
||||
terraform -chdir="$root/terraform" fmt -check -recursive
|
||||
terraform -chdir="$root/terraform" init -backend=false -input=false -no-color >/dev/null
|
||||
terraform -chdir="$root/terraform" validate -no-color
|
||||
if [[ "${RUN_PLAN:-false}" == "true" ]]; then
|
||||
: "${TF_VAR_project_id:?Set TF_VAR_project_id for plan}"
|
||||
terraform -chdir="$root/terraform" plan -refresh=false -lock=false -input=false -no-color
|
||||
fi
|
||||
python3 -m unittest discover -s "$root/tests" -v
|
||||
Reference in New Issue
Block a user