From 829ae98a735b34187f3f95cac6b9819d25a28062 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 28 Jun 2026 11:35:24 +0800 Subject: [PATCH] fix(ci): skip deploy marker workflow loops --- .gitea/workflows/cd.yaml | 10 ++++++++++ .gitea/workflows/code-review.yaml | 3 +++ 2 files changed, 13 insertions(+) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 440b6129..33292ef3 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -65,6 +65,10 @@ env: jobs: tests: + # 2026-06-28 Codex: Gitea does not consistently short-circuit `[skip ci]` + # on CD-generated deploy commits. Skip jobs explicitly so marker commits + # do not trigger a self-feeding CD loop. + if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]') }} # 2026-04-30 Codex: run the tests job on the host runner and launch the # CI image explicitly. The act-managed job container can disappear mid-test # with Docker RWLayer=nil on the shared 110 daemon. @@ -320,6 +324,9 @@ jobs: fi build-and-deploy: + # 2026-06-28 Codex: keep CD-generated `[skip ci]` deploy commits from + # re-entering build/deploy and writing another deploy marker commit. + if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]') }} # 2026-04-30 Codex: Docker builds run on the host runner. Long docker build # steps were killing the transient act job container with RWLayer=nil. needs: [tests] @@ -1245,6 +1252,9 @@ jobs: fi post-deploy-checks: + # 2026-06-28 Codex: post-deploy checks belong to real deploy runs; skip + # CD-generated marker commits already read back by the prior deploy run. + if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]') }} needs: [build-and-deploy] timeout-minutes: 30 # 2026-04-30 Codex: keep post-deploy on the host runner too. Playwright diff --git a/.gitea/workflows/code-review.yaml b/.gitea/workflows/code-review.yaml index 7cd64ece..570bab29 100644 --- a/.gitea/workflows/code-review.yaml +++ b/.gitea/workflows/code-review.yaml @@ -23,6 +23,9 @@ env: jobs: ai-code-review: + # 2026-06-28 Codex: deploy marker commits are generated by CD and carry + # `[skip ci]`; skip review at job level to avoid queued runner churn. + if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]') }} runs-on: awoooi-ubuntu timeout-minutes: 8 steps: