From 06d1be05eeb7c827bb7f1f6195d3573094924af5 Mon Sep 17 00:00:00 2001 From: Gemini CLI Date: Sun, 17 May 2026 18:04:25 +0200 Subject: [PATCH] fix: increase CI timeouts and add missing mock checks in Dagger --- .forgejo/workflows/ci.yml | 5 ++++- ci/main.go | 10 ++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index ec20688..36cf494 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: check: name: Full Project Check runs-on: codeberg-small - timeout-minutes: 30 + timeout-minutes: 60 steps: - uses: actions/checkout@v4 @@ -39,6 +39,7 @@ jobs: runs-on: codeberg-small needs: check if: github.ref == 'refs/heads/main' + timeout-minutes: 60 steps: - uses: actions/checkout@v4 @@ -73,6 +74,7 @@ jobs: runs-on: codeberg-small needs: check if: github.ref == 'refs/heads/main' + timeout-minutes: 60 steps: - uses: actions/checkout@v4 @@ -117,6 +119,7 @@ jobs: always() && github.ref == 'refs/heads/main' && (needs.build-linux.result == 'success' || needs.deploy-playstore.result == 'success') + timeout-minutes: 60 steps: - uses: actions/checkout@v4 diff --git a/ci/main.go b/ci/main.go index 992dd36..0ab5ef7 100644 --- a/ci/main.go +++ b/ci/main.go @@ -41,7 +41,7 @@ func (m *Ci) Base() *dagger.Container { return dag.Container(). From("ghcr.io/cirruslabs/flutter:3.41.6"). WithExec([]string{"apt-get", "update"}). - WithExec([]string{"apt-get", "install", "-y", "clang", "cmake", "ninja-build", "pkg-config", "libgtk-3-dev", "liblzma-dev", "libsecret-1-dev", "libgcrypt20-dev", "libjsoncpp-dev", "sqlite3", "curl", "python3", "iproute2", "netcat-openbsd", "xvfb", "libosmesa6", "libegl1", "lld"}). + WithExec([]string{"apt-get", "install", "-y", "clang", "cmake", "ninja-build", "pkg-config", "libgtk-3-dev", "liblzma-dev", "libsecret-1-dev", "libgcrypt20-dev", "libjsoncpp-dev", "sqlite3", "curl", "python3", "iproute2", "netcat-openbsd", "xvfb", "libosmesa6", "libegl1", "lld", "git"}). WithMountedCache("/root/.pub-cache", dag.CacheVolume("flutter-pub-cache")). WithMountedCache("/root/.gradle", dag.CacheVolume("gradle-cache")). WithEnvVariable("PUB_CACHE", "/root/.pub-cache"). @@ -208,6 +208,12 @@ func (m *Ci) Check(ctx context.Context) (string, error) { return analyze, err } + // Verify mocks + mocks, err := m.CheckMocks(ctx) + if err != nil { + return mocks, err + } + // Run coverage gate (includes unit tests) coverage, err := m.Coverage(ctx) if err != nil { @@ -226,7 +232,7 @@ func (m *Ci) Check(ctx context.Context) (string, error) { return testIntegration, err } - return fmt.Sprintf("All checks passed!\n\nAnalysis:\n%s\n\n%s\n\nBackend Tests:\n%s\n\nIntegration Tests:\n%s\n", analyze, coverage, testBackend, testIntegration), nil + return fmt.Sprintf("All checks passed!\n\nAnalysis:\n%s\n\n%s\n\n%s\n\nBackend Tests:\n%s\n\nIntegration Tests:\n%s\n", analyze, mocks, coverage, testBackend, testIntegration), nil } // Generate build history Hugo content by scanning the remote server