Skip to content

Commit 5676bcf

Browse files
committed
refactor(ci): remove deprecated bash CLI test jobs
Remove cli:smoke:test and cli:e2e:dind jobs that tested the legacy bash script. All CLI functionality is now covered by the Node.js CLI and tested via cli:node:smoke, cli:node:e2e:dind, and cli:node:full:dind.
1 parent bd871bc commit 5676bcf

1 file changed

Lines changed: 0 additions & 78 deletions

File tree

.gitlab-ci.yml

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -85,84 +85,6 @@ reporter:tests:
8585
rules:
8686
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
8787

88-
cli:smoke:test:
89-
stage: test
90-
image: alpine:3.20
91-
variables:
92-
GIT_STRATEGY: fetch
93-
before_script:
94-
- apk add --no-cache bash curl git docker-cli docker-compose
95-
script:
96-
- bash -n ./postgres_ai
97-
- |
98-
set -euo pipefail
99-
out=$(./postgres_ai help | tr -d "\r")
100-
echo "$out" | grep -q "Postgres AI CLI"
101-
echo "$out" | grep -q "COMMANDS:"
102-
rules:
103-
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
104-
105-
cli:e2e:dind:
106-
stage: test
107-
image: alpine:3.20
108-
services:
109-
- name: docker:24-dind
110-
command: ["--tls=false"]
111-
needs:
112-
- job: build:test:images
113-
variables:
114-
DOCKER_HOST: tcp://docker:2375
115-
DOCKER_TLS_CERTDIR: ""
116-
DOCKER_API_VERSION: "1.43"
117-
GIT_STRATEGY: fetch
118-
PGAI_TAG: ${CI_COMMIT_REF_SLUG}
119-
before_script:
120-
- apk add --no-cache bash curl git coreutils docker-cli docker-compose openssl
121-
- docker version
122-
# Pull images from GitLab Container Registry
123-
- echo "$CI_REGISTRY_PASSWORD" | docker login "$CI_REGISTRY" -u "$CI_REGISTRY_USER" --password-stdin
124-
- |
125-
echo "Pulling images from GitLab Container Registry..."
126-
docker pull "$CI_REGISTRY_IMAGE/postgres-ai-configs:$PGAI_TAG"
127-
docker pull "$CI_REGISTRY_IMAGE/reporter:$PGAI_TAG"
128-
docker pull "$CI_REGISTRY_IMAGE/monitoring-flask-backend:$PGAI_TAG"
129-
echo "Images ready:"
130-
docker images | grep "$CI_REGISTRY_IMAGE"
131-
# Create .env file with registry and tag
132-
- |
133-
cat > .env << EOF
134-
PGAI_REGISTRY=$CI_REGISTRY_IMAGE
135-
PGAI_TAG=$PGAI_TAG
136-
EOF
137-
script:
138-
- set -euo pipefail
139-
- bash -n ./postgres_ai
140-
- ./postgres_ai check || true
141-
- ./postgres_ai quickstart --demo -y
142-
- timeout 60 ./postgres_ai status
143-
- timeout 10 ./postgres_ai logs grafana || true
144-
- ./postgres_ai config
145-
- ./postgres_ai update-config
146-
- ./postgres_ai list-instances || true
147-
- ./postgres_ai add-key "test_key_123"
148-
- ./postgres_ai show-key
149-
- ./postgres_ai remove-key
150-
- ./postgres_ai generate-grafana-password || true
151-
- ./postgres_ai show-grafana-credentials || true
152-
- ./postgres_ai add-instance "postgresql://postgres:postgres@target-db:5432/target_database" "ci-demo"
153-
- ./postgres_ai test-instance "ci-demo" || true
154-
- printf "y\n" | ./postgres_ai reset sink-postgres
155-
- ./postgres_ai restart
156-
- ./postgres_ai stop
157-
- ./postgres_ai start
158-
- printf "y\n" | ./postgres_ai reset
159-
- ./postgres_ai clean
160-
after_script:
161-
- docker ps -a || true
162-
- docker system prune -af || true
163-
rules:
164-
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
165-
16688
cli:node:smoke:
16789
stage: test
16890
image: node:20-alpine

0 commit comments

Comments
 (0)