From d5ce4ce75d9f7769a123b96e5b702c622b7993a3 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Oct 2025 10:28:45 +0000 Subject: [PATCH 1/2] Fix workshop and identity test setup by waiting for databases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added --wait flag to docker compose up command to ensure PostgreSQL and MongoDB are fully healthy before running tests. This prevents test failures due to database connection issues when services aren't ready. Fixes test failures in: - Run identity tests step - Run workshop tests step - Run community tests step 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/pr-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 4cfe0802..86594496 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -217,7 +217,7 @@ jobs: go-version: '1.23' - name: Start the database - run: docker compose -f services/docker-database.yml up -d + run: docker compose -f services/docker-database.yml up -d --wait - name: Run identity tests run: | From 9894abfabcd901f8b761f12ab629097971bf9fbf Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Oct 2025 10:29:46 +0000 Subject: [PATCH 2/2] Install Cairo system dependencies for workshop tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added installation of libcairo2-dev, pkg-config, and python3-dev before running workshop tests. These system dependencies are required by pycairo, which is a dependency of xhtml2pdf used in the workshop service for PDF generation. Fixes error: - Dependency "cairo" not found during pip install of requirements 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/pr-build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 86594496..e76aff84 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -241,6 +241,11 @@ jobs: working-directory: services/community + - name: Install system dependencies for workshop + run: | + sudo apt-get update + sudo apt-get install -y libcairo2-dev pkg-config python3-dev + - name: Run workshop tests run: | cd services/workshop