🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix: shared dependencies and improve docker ci (#2273)
Max Deichmann6ccc57312c8b
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.ymlindex eb64913a97..9299ea69c8 100644--- a/.github/workflows/pipeline.yml+++ b/.github/workflows/pipeline.yml@@ -40,19 +40,27 @@ jobs:- name: Checkoutuses: actions/checkout@v3- - name: Build Web Docker image- uses: docker/build-push-action@v4- with:- context: .- file: ./web/Dockerfile- push: false+ - name: Build and run both images from compose+ run: |+ docker compose -f docker-compose.build.yml up -d+ sleep 5 # Wait for PostgreSQL to accept connections- - name: Build Worker Docker image- uses: docker/build-push-action@v4- with:- context: .- file: ./worker/Dockerfile- push: false+ - name: Check server health+ run: |+ until curl -f http://localhost:3000/api/public/health; do sleep 5; done++ - name: Check worker health+ run: |+ until curl -f http://localhost:3030/api/health; do sleep 5; done++ - name: Ensure no unhealthy status+ run: |+ if docker-compose ps | grep "(unhealthy)"; then+ echo "One or more services are unhealthy"+ exit 1+ else+ echo "All services are healthy"+ fitests-web:runs-on: ubuntu-latestdiff --git a/docker-compose.build.yml b/docker-compose.build.ymlindex e16d2dfbc0..561955f143 100644--- a/docker-compose.build.yml+++ b/docker-compose.build.yml@@ -20,6 +20,11 @@ services:- LANGFUSE_WORKER_HOST=${LANGFUSE_WORKER_HOST:-worker}- LANGFUSE_WORKER_PASSWORD=${LANGFUSE_WORKER_PASSWORD:-mybasicauthsecret}restart: always+ healthcheck:+ test: ["CMD", "curl", "-f", "http://localhost:3000/api/public/health"]+ interval: 30s+ timeout: 10s+ retries: 3worker:build:@@ -41,6 +46,11 @@ services:- REDIS_AUTH=${REDIS_AUTH:-myredissecret}- LANGFUSE_WORKER_PASSWORD=${LANGFUSE_WORKER_PASSWORD:-mybasicauthsecret}restart: always+ healthcheck:+ test: ["CMD", "curl", "-f", "http://localhost:3030/api/health"]+ interval: 30s+ timeout: 10s+ retries: 3redis:image: redis:7.2.4diff --git a/packages/shared/package.json b/packages/shared/package.jsonindex 6d14940a1a..c6a3304411 100644--- a/packages/shared/package.json+++ b/packages/shared/package.json@@ -52,6 +52,7 @@"bcryptjs": "^2.4.3","kysely": "^0.27.3","langchain": "^0.1.36",+ "lodash": "^4.17.21","prisma-extension-kysely": "^2.1.0","zod": "^3.22.4","zod-to-json-schema": "^3.22.5"diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 44ddb45e08..7c5688374f 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -130,7 +130,10 @@ importers:version: 0.27.3langchain:specifier: ^0.1.36- version: 0.1.36+ version: 0.1.36([email protected])+ lodash:+ specifier: ^4.17.21+ version: 4.17.21prisma-extension-kysely:specifier: ^2.1.0version: 2.1.0(@prisma/[email protected])@@ -12440,7 +12443,7 @@ packages:resolution: {integrity: sha512-lG03Ru+XyOJFsjH3OMY6R/9U38IjDPfnOfDgO3ynhbDr+Dz8fak+X6L62vqu3iybQnj+lG84OttBuU9KY3L9kA==}engines: {node: '>=14.0.0'}resolution: {integrity: sha512-NTbnCL/jKWIeEI//Nm1oG8nhW3vkYWvEMr1MPotmTThTfeKfO87eV/OAzAyh6Ruy6GFs/qofRgQZGIe6XvXTNQ==}engines: {node: '>=18'}peerDependencies:@@ -12603,12 +12606,14 @@ packages:optional: truedependencies:'@anthropic-ai/sdk': 0.9.1+ '@aws-sdk/client-s3': 3.550.0+ '@aws-sdk/credential-provider-node': 3.549.0'@langchain/community': 0.0.47(@aws-sdk/[email protected])([email protected])'@langchain/core': 0.1.61'@langchain/openai': 0.0.33'@langchain/textsplitters': 0.0.0binary-extensions: 2.3.0- js-tiktoken: 1.0.11+ js-tiktoken: 1.0.12js-yaml: 4.1.0jsonpointer: 5.0.1langchainhub: 0.0.8@@ -12690,7 +12695,7 @@ packages:- voy-searchdev: falseresolution: {integrity: sha512-NTbnCL/jKWIeEI//Nm1oG8nhW3vkYWvEMr1MPotmTThTfeKfO87eV/OAzAyh6Ruy6GFs/qofRgQZGIe6XvXTNQ==}engines: {node: '>=18'}peerDependencies:@@ -12853,14 +12858,12 @@ packages:optional: truedependencies:'@anthropic-ai/sdk': 0.9.1- '@aws-sdk/client-s3': 3.550.0- '@aws-sdk/credential-provider-node': 3.549.0'@langchain/community': 0.0.47(@aws-sdk/[email protected])([email protected])'@langchain/core': 0.1.61'@langchain/openai': 0.0.33'@langchain/textsplitters': 0.0.0binary-extensions: 2.3.0- js-tiktoken: 1.0.12+ js-tiktoken: 1.0.11js-yaml: 4.1.0jsonpointer: 5.0.1langchainhub: 0.0.8