From 987f81307c007f6078af85219d28d8ffbb4dc48c Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 20 Oct 2026 13:52:22 +0200 Subject: [PATCH] ci: gate /ai agent jobs on pr-info success; fail /updatesqlx if the EE pin moves mid-run Co-Authored-By: Claude Opus 5.5 --- .github/workflows/claude.yml | 4 ++-- .github/workflows/git-commands.yaml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index f4238d89fe..464df4249c 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -67,7 +67,7 @@ jobs: claude-code-action-ee: needs: [pr-info] - if: needs.pr-info.outputs.ee_repo_ref != '' + if: needs.pr-info.result == 'success' && needs.pr-info.outputs.ee_repo_ref != '' runs-on: ubicloud-standard-8 permissions: contents: write @@ -115,7 +115,7 @@ jobs: claude-code-action: needs: [pr-info] - if: needs.pr-info.outputs.ee_repo_ref == '' + if: needs.pr-info.result == 'success' && needs.pr-info.outputs.ee_repo_ref == '' runs-on: ubicloud-standard-8 permissions: contents: write diff --git a/.github/workflows/git-commands.yaml b/.github/workflows/git-commands.yaml index 19c4b04d2f..b24118e008 100644 --- a/.github/workflows/git-commands.yaml +++ b/.github/workflows/git-commands.yaml @@ -125,6 +125,13 @@ jobs: git config pull.rebase true git pull origin $BRANCH_NAME + # EE was checked out at the pin read before this pull; a push in between can + # move it, and the EE checkout holds no credential to fetch the new one. + if [ -f backend/ee-repo-ref.txt ] && [ "$(tr -d '[:space:]' < backend/ee-repo-ref.txt)" != "$(git -C windmill-ee-private rev-parse HEAD)" ]; then + echo "ee-repo-ref.txt changed during the run; re-run /updatesqlx" + false + fi + mkdir -p frontend/build cd backend cargo install sqlx-cli --version 0.8.5