Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: another attempt to fix e2e tests (#12195)

Max Deichmannc7e32af3a713
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index b1f95a91cd..5d47ef766d 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -141,7 +141,6 @@ jobs:
docker compose --progress plain --verbose -f docker-compose.build.yml build --print > /tmp/bake.json
docker buildx bake -f /tmp/bake.json
docker compose --progress plain -f docker-compose.build.yml up -d
- sleep 5 # Wait for PostgreSQL to accept connections
- name: Ensure no unhealthy status
run: |
if docker compose ps | grep "(unhealthy)"; then
@@ -156,7 +155,6 @@ jobs:
- name: Check server health
run: |
timeout 10 bash -c 'until curl -f http://localhost:3000/api/public/health; do sleep 2; done'
-
tests-web:
timeout-minutes: 30
runs-on: ubuntu-latest
@@ -225,7 +223,8 @@ jobs:
- name: Run dev containers
run: |
docker compose -f docker-compose.dev${{ matrix.deploy-mode }}.yml up -d
- sleep 5 # Wait for PostgreSQL to accept connections
+ sleep 5
+
docker compose ps
env:
POSTGRES_VERSION: ${{ matrix.postgres-version }}
@@ -317,7 +316,8 @@ jobs:
- name: Run + migrate
run: |
docker compose -f docker-compose.dev${{ matrix.deploy-mode }}.yml up -d
- sleep 5 # Wait for PostgreSQL to accept connections
+ sleep 5
+
docker compose ps
- name: Ensure no unhealthy status
run: |
@@ -330,7 +330,7 @@ jobs:
- name: Seed DB
run: |
pnpm run db:migrate
- pnpm run db:seed
+ pnpm --filter=shared run db:seed
pnpm run --filter=shared ch:up
- name: Download and extract ClickHouse client for dev-tables setup
if: matrix.deploy-mode == ''
@@ -389,7 +389,8 @@ jobs:
- name: Run + migrate
run: |
docker compose -f docker-compose.dev.yml up -d
- sleep 5 # Wait for PostgreSQL to accept connections
+ sleep 5
+
docker compose ps
env:
POSTGRES_VERSION: 15
@@ -404,7 +405,7 @@ jobs:
- name: Seed DB
run: |
pnpm run db:migrate
- pnpm run db:seed
+ pnpm --filter=shared run db:seed
pnpm run --filter=shared ch:up
- name: Build
run: pnpm --filter=worker... run build
@@ -476,12 +477,13 @@ jobs:
- name: Run + migrate
run: |
docker compose -f docker-compose.dev.yml up -d
+ sleep 5
+
docker compose ps
- sleep 5 # Wait for PostgreSQL to accept connections
- name: Ensure Docker dependencies are healthy
run: |
if docker compose ps | grep "(unhealthy)"; then
- echo "One or more services are unhealthy"
+ echo "One or more services are unhealthy"
exit 1
else
echo "All services are healthy"
@@ -490,7 +492,7 @@ jobs:
run: |
pnpm run db:migrate
pnpm --filter=shared run ch:up
- pnpm run db:seed
+ pnpm --filter=shared run db:seed
- name: Build
run: pnpm run build
env:
@@ -535,8 +537,9 @@ jobs:
- name: Run + migrate
run: |
docker compose -f docker-compose.dev.yml up -d
+ sleep 5
+
docker compose ps
- sleep 5 # Wait for PostgreSQL to accept connections
- name: Ensure Docker dependencies are healthy
run: |
if docker compose ps | grep "(unhealthy)"; then
@@ -549,7 +552,7 @@ jobs:
run: |
pnpm run db:migrate
pnpm --filter=shared run ch:up
- pnpm run db:seed:examples
+ pnpm --filter=shared run db:seed:examples
- name: Build
run: pnpm run build
env:
@@ -568,8 +571,7 @@ jobs:
all-ci-passed:
# This allows us to have a branch protection rule for tests and deploys with matrix
runs-on: ubuntu-latest
- needs:
- [
+ needs: [
lint,
prettier-check,
tests-web,
diff --git a/turbo.json b/turbo.json
index 48b3a9696c..4cd413f43a 100644
--- a/turbo.json
+++ b/turbo.json
@@ -14,11 +14,21 @@
"db:migrate": {
"cache": false
},
- "db:deploy": {},
- "db:reset": {},
- "db:push": {},
- "db:seed": {},
- "db:seed:examples": {},
+ "db:deploy": {
+ "cache": false
+ },
+ "db:reset": {
+ "cache": false
+ },
+ "db:push": {
+ "cache": false
+ },
+ "db:seed": {
+ "cache": false
+ },
+ "db:seed:examples": {
+ "cache": false
+ },
"dev": {
"cache": false,
"persistent": true,