mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
ci: drop Typesense from the integration-test workflow
The relay-e2e and desktop-e2e jobs started Typesense via `docker compose
up -d ... typesense ...`, waited on a `buzz-typesense` healthcheck, and passed
TYPESENSE_URL/TYPESENSE_API_KEY to the relay. The service was removed from
compose, so `docker compose up` failed with 'no such service: typesense' and
took all four E2E jobs down at setup time. Remove the service from both job
blocks, drop the healthcheck wait, and drop the two now-dead relay env vars
(the relay stopped reading them when the config fields were removed in
f1f6bbf3c).
Co-authored-by: Tyler Longwell <tlongwell@block.xyz>
Signed-off-by: Tyler Longwell <tlongwell@block.xyz>
This commit is contained in:
co-authored by
Tyler Longwell
parent
4e117adb06
commit
a7d3817481
@@ -305,7 +305,7 @@ jobs:
|
|||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
||||||
- uses: cashapp/activate-hermit@e49f5cb4dd64ff0b0b659d1d8df499595451155a # v1
|
- uses: cashapp/activate-hermit@e49f5cb4dd64ff0b0b659d1d8df499595451155a # v1
|
||||||
- name: Start integration services
|
- name: Start integration services
|
||||||
run: docker compose up -d postgres redis typesense minio minio-init
|
run: docker compose up -d postgres redis minio minio-init
|
||||||
- name: Get pnpm store directory
|
- name: Get pnpm store directory
|
||||||
id: pnpm-cache
|
id: pnpm-cache
|
||||||
run: echo "STORE_PATH=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
|
run: echo "STORE_PATH=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
|
||||||
@@ -357,7 +357,6 @@ jobs:
|
|||||||
}
|
}
|
||||||
wait_healthy "Postgres" "buzz-postgres"
|
wait_healthy "Postgres" "buzz-postgres"
|
||||||
wait_healthy "Redis" "buzz-redis"
|
wait_healthy "Redis" "buzz-redis"
|
||||||
wait_healthy "Typesense" "buzz-typesense"
|
|
||||||
wait_healthy "MinIO" "buzz-minio"
|
wait_healthy "MinIO" "buzz-minio"
|
||||||
- name: Download relay binary
|
- name: Download relay binary
|
||||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||||
@@ -395,8 +394,6 @@ jobs:
|
|||||||
nohup env \
|
nohup env \
|
||||||
DATABASE_URL=postgres://buzz:buzz_dev@localhost:5432/buzz \
|
DATABASE_URL=postgres://buzz:buzz_dev@localhost:5432/buzz \
|
||||||
REDIS_URL=redis://localhost:6379 \
|
REDIS_URL=redis://localhost:6379 \
|
||||||
TYPESENSE_URL=http://localhost:8108 \
|
|
||||||
TYPESENSE_API_KEY=buzz_dev_key \
|
|
||||||
RELAY_URL=ws://localhost:3000 \
|
RELAY_URL=ws://localhost:3000 \
|
||||||
BUZZ_BIND_ADDR=0.0.0.0:3000 \
|
BUZZ_BIND_ADDR=0.0.0.0:3000 \
|
||||||
BUZZ_REQUIRE_AUTH_TOKEN=false \
|
BUZZ_REQUIRE_AUTH_TOKEN=false \
|
||||||
@@ -472,7 +469,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
save-if: ${{ github.event_name != 'pull_request' }}
|
save-if: ${{ github.event_name != 'pull_request' }}
|
||||||
- name: Start integration services
|
- name: Start integration services
|
||||||
run: docker compose up -d postgres redis typesense minio minio-init
|
run: docker compose up -d postgres redis minio minio-init
|
||||||
- name: Wait for integration services
|
- name: Wait for integration services
|
||||||
run: |
|
run: |
|
||||||
wait_healthy() {
|
wait_healthy() {
|
||||||
@@ -491,7 +488,6 @@ jobs:
|
|||||||
}
|
}
|
||||||
wait_healthy "Postgres" "buzz-postgres"
|
wait_healthy "Postgres" "buzz-postgres"
|
||||||
wait_healthy "Redis" "buzz-redis"
|
wait_healthy "Redis" "buzz-redis"
|
||||||
wait_healthy "Typesense" "buzz-typesense"
|
|
||||||
wait_healthy "MinIO" "buzz-minio"
|
wait_healthy "MinIO" "buzz-minio"
|
||||||
- name: Download relay binary
|
- name: Download relay binary
|
||||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||||
@@ -529,8 +525,6 @@ jobs:
|
|||||||
nohup env \
|
nohup env \
|
||||||
DATABASE_URL=postgres://buzz:buzz_dev@localhost:5432/buzz \
|
DATABASE_URL=postgres://buzz:buzz_dev@localhost:5432/buzz \
|
||||||
REDIS_URL=redis://localhost:6379 \
|
REDIS_URL=redis://localhost:6379 \
|
||||||
TYPESENSE_URL=http://localhost:8108 \
|
|
||||||
TYPESENSE_API_KEY=buzz_dev_key \
|
|
||||||
RELAY_URL=ws://localhost:3000 \
|
RELAY_URL=ws://localhost:3000 \
|
||||||
BUZZ_BIND_ADDR=0.0.0.0:3000 \
|
BUZZ_BIND_ADDR=0.0.0.0:3000 \
|
||||||
BUZZ_REQUIRE_AUTH_TOKEN=false \
|
BUZZ_REQUIRE_AUTH_TOKEN=false \
|
||||||
|
|||||||
Reference in New Issue
Block a user