From a7faa2080fb5d9bee3eac81f0fc5365cd663f010 Mon Sep 17 00:00:00 2001 From: shishu314 Date: Wed, 22 Oct 2025 16:01:02 -0400 Subject: [PATCH] feat(infra) - Update status for chained e2e (#11651) Co-authored-by: gemini-cli-robot --- .github/workflows/test_chained_e2e.yml | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/test_chained_e2e.yml b/.github/workflows/test_chained_e2e.yml index 95674f6719..c89f59b0e8 100644 --- a/.github/workflows/test_chained_e2e.yml +++ b/.github/workflows/test_chained_e2e.yml @@ -18,6 +18,10 @@ concurrency: cancel-in-progress: |- ${{ github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/heads/release/') }} +permissions: + contents: 'read' + statuses: 'write' + jobs: merge_queue_skipper: name: 'Merge Queue Skipper' @@ -67,6 +71,22 @@ jobs: const repo_name = String(fs.readFileSync(path.join(temp, 'repo_name'))); core.setOutput('repo_name', repo_name); + set_pending_status: + runs-on: 'gemini-cli-ubuntu-16-core' + needs: + - 'download_repo_name' + steps: + - name: 'Set pending status' + uses: 'myrotvorets/set-commit-status-action@16037e056d73b2d3c88e37e393ff369047f70886' # ratchet:myrotvorets/set-commit-status-action@master + if: 'always()' + with: + allowForks: 'true' + repo: '${{ needs.download_repo_name.outputs.repo_name }}' + sha: '${{ github.event.inputs.head_sha || github.event.workflow_run.head_sha }}' + token: '${{ secrets.GITHUB_TOKEN }}' + status: 'pending' + context: 'Set e2e pending Status' + e2e_linux: name: 'E2E Test (Linux) - ${{ matrix.sandbox }}' needs: 'download_repo_name' @@ -229,3 +249,20 @@ jobs: exit 1 fi echo "All required E2E jobs passed!" + + set_workflow_status: + runs-on: 'gemini-cli-ubuntu-16-core' + needs: + - 'download_repo_name' + - 'e2e' + steps: + - name: 'Set workflow status' + uses: 'myrotvorets/set-commit-status-action@16037e056d73b2d3c88e37e393ff369047f70886' # ratchet:myrotvorets/set-commit-status-action@master + if: 'always()' + with: + allowForks: 'true' + repo: '${{ needs.download_repo_name.outputs.repo_name }}' + sha: '${{ github.event.inputs.head_sha || github.event.workflow_run.head_sha }}' + token: '${{ secrets.GITHUB_TOKEN }}' + status: '${{ job.status }}' + context: 'Set E2E Status'