Skip to content

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

chore(actions): Migrate workflows to Blacksmith runners (#12895)

blacksmith-sh[bot]231429548b08
diff --git a/.github/workflows/_deploy_ecs_service.yml b/.github/workflows/_deploy_ecs_service.yml
index 8eb64a4bf3..8200ab8b99 100644
--- a/.github/workflows/_deploy_ecs_service.yml
+++ b/.github/workflows/_deploy_ecs_service.yml
@@ -12,7 +12,7 @@ on:
required: true
jobs:
ecs-deploy:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
environment: ${{ inputs.environment }}
steps:
- name: Get app name
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 7906410e92..1aba0aad92 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -35,7 +35,7 @@ concurrency:
name: Deploy to ECS
jobs:
affected-services:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
outputs:
services: ${{ steps.affected-services.outputs.result }}
steps:
@@ -65,7 +65,7 @@ jobs:
console.log('Services', `${process.env.services}` ?? 'n/a');
affected-environments:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
outputs:
environments: ${{ steps.affected-environments.outputs.result }}
steps:
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index 2e127a1899..5cd676bae4 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -18,7 +18,7 @@ concurrency:
jobs:
pre-job:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
llm_connections_changed: ${{ steps.filter.outputs.llm_connections }}
@@ -45,7 +45,7 @@ jobs:
- 'packages/shared/src/server/llm/fetchLLMCompletion.ts'
lint:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
needs:
- pre-job
if: needs.pre-job.outputs.should_skip != 'true'
@@ -77,7 +77,7 @@ jobs:
run: pnpm run lint
prettier-check:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
needs:
- pre-job
if: needs.pre-job.outputs.should_skip != 'true'
@@ -121,7 +121,7 @@ jobs:
test-docker-build:
timeout-minutes: 20
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
needs:
- pre-job
if: needs.pre-job.outputs.should_skip != 'true'
@@ -185,7 +185,7 @@ jobs:
if-no-files-found: ignore
tests-web:
timeout-minutes: 30
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
needs:
- pre-job
if: needs.pre-job.outputs.should_skip != 'true'
@@ -250,9 +250,7 @@ jobs:
${{ runner.os }}-nextjs-web-${{ matrix.node-version }}-
- name: Run dev containers
run: |
- docker compose -f docker-compose.dev${{ matrix.deploy-mode }}.yml up -d
- sleep 5
-
+ docker compose -f docker-compose.dev${{ matrix.deploy-mode }}.yml up -d --wait --wait-timeout 180
docker compose ps
env:
POSTGRES_VERSION: ${{ matrix.postgres-version }}
@@ -301,7 +299,7 @@ jobs:
tests-worker:
timeout-minutes: 20
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
needs:
- pre-job
if: needs.pre-job.outputs.should_skip != 'true'
@@ -343,9 +341,7 @@ jobs:
cp .env.dev${{ matrix.deploy-mode }}.example worker/.env
- name: Run + migrate
run: |
- docker compose -f docker-compose.dev${{ matrix.deploy-mode }}.yml up -d
- sleep 5
-
+ docker compose -f docker-compose.dev${{ matrix.deploy-mode }}.yml up -d --wait --wait-timeout 180
docker compose ps
- name: Ensure no unhealthy status
run: |
@@ -379,7 +375,7 @@ jobs:
test-worker-llm-connections:
timeout-minutes: 20
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
needs:
- pre-job
if: startsWith(github.ref, 'refs/tags/') || (needs.pre-job.outputs.should_skip != 'true' && (needs.pre-job.outputs.llm_connections_changed == 'true' || github.event_name == 'workflow_dispatch'))
@@ -416,9 +412,7 @@ jobs:
cp .env.dev.example worker/.env
- name: Run + migrate
run: |
- docker compose -f docker-compose.dev.yml up -d
- sleep 5
-
+ docker compose -f docker-compose.dev.yml up -d --wait --wait-timeout 180
docker compose ps
env:
POSTGRES_VERSION: 15
@@ -452,7 +446,7 @@ jobs:
LANGFUSE_LLM_CONNECTION_GOOGLEAISTUDIO_KEY: ${{ secrets.LANGFUSE_LLM_CONNECTION_GOOGLEAISTUDIO_KEY }}
e2e-tests:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
needs:
- pre-job
if: needs.pre-job.outputs.should_skip != 'true'
@@ -504,9 +498,7 @@ jobs:
which migrate
- name: Run + migrate
run: |
- docker compose -f docker-compose.dev.yml up -d
- sleep 5
-
+ docker compose -f docker-compose.dev.yml up -d --wait --wait-timeout 180
docker compose ps
- name: Ensure Docker dependencies are healthy
run: |
@@ -531,7 +523,7 @@ jobs:
run: pnpm --filter=web run test:e2e
e2e-server-tests:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
needs:
- pre-job
if: needs.pre-job.outputs.should_skip != 'true'
@@ -564,9 +556,7 @@ jobs:
cp .env.dev.example .env
- name: Run + migrate
run: |
- docker compose -f docker-compose.dev.yml up -d
- sleep 5
-
+ docker compose -f docker-compose.dev.yml up -d --wait --wait-timeout 180
docker compose ps
- name: Ensure Docker dependencies are healthy
run: |
@@ -598,7 +588,7 @@ jobs:
all-ci-passed:
# This allows us to have a branch protection rule for tests and deploys with matrix
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
needs: [
lint,
prettier-check,
@@ -646,7 +636,7 @@ jobs:
# if something inside all-ci-passed was skipped, but everything that ran passed, we still want to deploy
if: always() && needs.all-ci-passed.outputs.success == 'true' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
environment: "protected branches"
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
packages: write
contents: read
@@ -677,10 +667,8 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3
- with:
- driver-opts: network=host
+ - name: Setup Blacksmith Builder
+ uses: useblacksmith/setup-docker-builder@v1
- name: Extract metadata (tags, labels) for Docker
id: meta-web
uses: docker/metadata-action@v4
@@ -699,7 +687,7 @@ jobs:
type=semver,pattern={{major}},enable=${{ !contains(github.ref, '-rc') }}
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v3') && !contains(github.ref, '-rc') }}
- name: Build and push Docker image (web)
- uses: docker/build-push-action@v4
+ uses: useblacksmith/build-push-action@v2
with:
context: .
file: ./web/Dockerfile
@@ -727,7 +715,7 @@ jobs:
type=semver,pattern={{major}},enable=${{ !contains(github.ref, '-rc') }}
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v3') && !contains(github.ref, '-rc') }}
- name: Build and push Docker image (worker)
- uses: docker/build-push-action@v4
+ uses: useblacksmith/build-push-action@v2
with:
context: .
file: ./worker/Dockerfile
diff --git a/docker-compose.dev-azure.yml b/docker-compose.dev-azure.yml
index 2dcb531864..7e3acc2be5 100644
--- a/docker-compose.dev-azure.yml
+++ b/docker-compose.dev-azure.yml
@@ -12,6 +12,12 @@ services:
ports:
- "8123:8123"
- "9000:9000"
+ healthcheck:
+ test: wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1
+ interval: 5s
+ timeout: 5s
+ retries: 10
+ start_period: 1s
depends_on:
- postgres
diff --git a/docker-compose.dev-redis-cluster.yml b/docker-compose.dev-redis-cluster.yml
index d38c8c2488..e70bcbbc9d 100644
--- a/docker-compose.dev-redis-cluster.yml
+++ b/docker-compose.dev-redis-cluster.yml
@@ -1,3 +1,15 @@
+x-redis-cluster-common-env: &redis-cluster-common-env
+ REDIS_PASSWORD: bitnami
+ REDIS_CLUSTER_DYNAMIC_IPS: "no"
+ REDIS_CLUSTER_ANNOUNCE_IP: 127.0.0.1
+ REDIS_NODES: 127.0.0.1:6370 127.0.0.1:6371 127.0.0.1:6372 127.0.0.1:6373 127.0.0.1:6374 127.0.0.1:6375
+
+x-redis-cluster-healthcheck: &redis-cluster-healthcheck
+ interval: 1s
+ timeout: 5s
+ retries: 30
+ start_period: 5s
+
services:
clickhouse:
image: docker.io/clickhouse/clickhouse-server:24.3
@@ -12,6 +24,12 @@ services:
ports:
- 127.0.0.1:8123:8123
- 127.0.0.1:9000:9000
+ healthcheck:
+ test: wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1
+ interval: 5s
+ timeout: 5s
+ retries: 10
+ start_period: 1s
depends_on:
- postgres
@@ -62,9 +80,13 @@ services:
volumes:
- redis-cluster_data-0:/bitnami/redis/data
environment:
- REDIS_PASSWORD: bitnami
+ <<: *redis-cluster-common-env
REDIS_PORT_NUMBER: 6370
- REDIS_NODES: 127.0.0.1:6370 127.0.0.1:6371 127.0.0.1:6372 127.0.0.1:6373 127.0.0.1:6374 127.0.0.1:6375
+ REDIS_CLUSTER_ANNOUNCE_PORT: 6370
+ REDIS_CLUSTER_ANNOUNCE_BUS_PORT: 16370
+ healthcheck:
+ <<: *redis-cluster-healthcheck
+ test: ["CMD-SHELL", "redis-cli -a bitnami -p 6370 cluster info | grep -q 'cluster_state:ok'"]
redis-node-1:
image: docker.io/bitnamilegacy/redis-cluster:8.0
@@ -72,9 +94,13 @@ services:
volumes:
- redis-cluster_data-1:/bitnami/redis/data
environment:
- REDIS_PASSWORD: bitnami
+ <<: *redis-cluster-common-env
REDIS_PORT_NUMBER: 6371
- REDIS_NODES: 127.0.0.1:6370 127.0.0.1:6371 127.0.0.1:6372 127.0.0.1:6373 127.0.0.1:6374 127.0.0.1:6375
+ REDIS_CLUSTER_ANNOUNCE_PORT: 6371
+ REDIS_CLUSTER_ANNOUNCE_BUS_PORT: 16371
+ healthcheck:
+ <<: *redis-cluster-healthcheck
+ test: ["CMD-SHELL", "redis-cli -a bitnami -p 6371 cluster info | grep -q 'cluster_state:ok'"]
redis-node-2:
image: docker.io/bitnamilegacy/redis-cluster:8.0
@@ -82,9 +108,13 @@ services:
volumes:
- redis-cluster_data-2:/bitnami/redis/data
environment:
- REDIS_PASSWORD: bitnami
+ <<: *redis-cluster-common-env
REDIS_PORT_NUMBER: 6372
- REDIS_NODES: 127.0.0.1:6370 127.0.0.1:6371 127.0.0.1:6372 127.0.0.1:6373 127.0.0.1:6374 127.0.0.1:6375
+ REDIS_CLUSTER_ANNOUNCE_PORT: 6372
+ REDIS_CLUSTER_ANNOUNCE_BUS_PORT: 16372
+ healthcheck:
+ <<: *redis-cluster-healthcheck
+ test: ["CMD-SHELL", "redis-cli -a bitnami -p 6372 cluster info | grep -q 'cluster_state:ok'"]
redis-node-3:
image: docker.io/bitnamilegacy/redis-cluster:8.0
@@ -92,9 +122,13 @@ services:
volumes:
- redis-cluster_data-3:/bitnami/redis/data
environment:
- REDIS_PASSWORD: bitnami
+ <<: *redis-cluster-common-env
REDIS_PORT_NUMBER: 6373
- REDIS_NODES: 127.0.0.1:6370 127.0.0.1:6371 127.0.0.1:6372 127.0.0.1:6373 127.0.0.1:6374 127.0.0.1:6375
+ REDIS_CLUSTER_ANNOUNCE_PORT: 6373
+ REDIS_CLUSTER_ANNOUNCE_BUS_PORT: 16373
+ healthcheck:
+ <<: *redis-cluster-healthcheck
+ test: ["CMD-SHELL", "redis-cli -a bitnami -p 6373 cluster info | grep -q 'cluster_state:ok'"]
redis-node-4:
image: docker.io/bitnamilegacy/redis-cluster:8.0
@@ -102,9 +136,13 @@ services:
volumes:
- redis-cluster_data-4:/bitnami/redis/data
environment:
- REDIS_PASSWORD: bitnami
+ <<: *redis-cluster-common-env
REDIS_PORT_NUMBER: 6374
- REDIS_NODES: 127.0.0.1:6370 127.0.0.1:6371 127.0.0.1:6372 127.0.0.1:6373 127.0.0.1:6374 127.0.0.1:6375
+ REDIS_CLUSTER_ANNOUNCE_PORT: 6374
+ REDIS_CLUSTER_ANNOUNCE_BUS_PORT: 16374
+ healthcheck:
+ <<: *redis-cluster-healthcheck
+ test: ["CMD-SHELL", "redis-cli -a bitnami -p 6374 cluster info | grep -q 'cluster_state:ok'"]
redis-node-5:
image: docker.io/bitnamilegacy/redis-cluster:8.0
@@ -118,12 +156,16 @@ services:
- redis-node-3
- redis-node-4
environment:
+ <<: *redis-cluster-common-env
REDISCLI_AUTH: bitnami
REDIS_CLUSTER_REPLICAS: 1
- REDIS_PASSWORD: bitnami
REDIS_PORT_NUMBER: 6375
- REDIS_NODES: 127.0.0.1:6370 127.0.0.1:6371 127.0.0.1:6372 127.0.0.1:6373 127.0.0.1:6374 127.0.0.1:6375
+ REDIS_CLUSTER_ANNOUNCE_PORT: 6375
+ REDIS_CLUSTER_ANNOUNCE_BUS_PORT: 16375
REDIS_CLUSTER_CREATOR: yes
+ healthcheck:
+ <<: *redis-cluster-healthcheck
+ test: ["CMD-SHELL", "redis-cli -a bitnami -p 6375 cluster info | grep -q 'cluster_state:ok'"]
volumes:
langfuse_postgres_data:
diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml
index 83f93b73b8..b9f2ecf720 100644
--- a/docker-compose.dev.yml
+++ b/docker-compose.dev.yml
@@ -15,6 +15,12 @@ services:
ports:
- ${HOST_IP:-127.0.0.1}:${CLICKHOUSE_HTTP_PORT:-8123}:8123
- ${HOST_IP:-127.0.0.1}:${CLICKHOUSE_NATIVE_PORT:-9000}:9000
+ healthcheck:
+ test: wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1
+ interval: 5s
+ timeout: 5s
+ retries: 10
+ start_period: 1s
depends_on:
- postgres
networks: