Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,11 @@ jobs:
# Fallback: keep the required check reported even when the Go path
# filter deselects this job (skipped jobs never satisfy branch
# protection and permanently block frontend-only PRs).
# The job default cwd (edge-server) does not exist when checkout was
# deselected; anchor the fallback at the repo root.
- name: Report no-Go-changes skip (required check)
if: ${{ !cancelled() && github.event_name != 'workflow_dispatch' && needs.changes.result == 'success' && needs.changes.outputs.go != 'true' }}
working-directory: .
run: |
echo "skipped: no Go changes; reporting success for required check go-edge"
exit 0
Expand All @@ -170,6 +173,7 @@ jobs:
# the skipped real gates as green.
- name: Fail when Go path filter failed
if: ${{ !cancelled() && github.event_name != 'workflow_dispatch' && needs.changes.result != 'success' }}
working-directory: .
run: |
echo "::error::changes job result: ${{ needs.changes.result }}; cannot decide Go gates for go-edge"
exit 1
Expand Down Expand Up @@ -348,8 +352,11 @@ jobs:
# Fallback: keep the required check reported even when the Go path
# filter deselects this job (skipped jobs never satisfy branch
# protection and permanently block frontend-only PRs).
# The job default cwd (hub-server) does not exist when checkout was
# deselected; anchor the fallback at the repo root.
- name: Report no-Go-changes skip (required check)
if: ${{ !cancelled() && github.event_name != 'workflow_dispatch' && needs.changes.result == 'success' && needs.changes.outputs.go != 'true' }}
working-directory: .
run: |
echo "skipped: no Go changes; reporting success for required check go-hub"
exit 0
Expand All @@ -359,6 +366,7 @@ jobs:
# the skipped real gates as green.
- name: Fail when Go path filter failed
if: ${{ !cancelled() && github.event_name != 'workflow_dispatch' && needs.changes.result != 'success' }}
working-directory: .
run: |
echo "::error::changes job result: ${{ needs.changes.result }}; cannot decide Go gates for go-hub"
exit 1
Expand Down
4 changes: 4 additions & 0 deletions scripts/verify/tests/verify-ci-gates.Tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,11 @@ def restore_go_hub_job_path_filter(text: str) -> str:
" # Fallback: keep the required check reported even when the Go path\n"
" # filter deselects this job (skipped jobs never satisfy branch\n"
" # protection and permanently block frontend-only PRs).\n"
" # The job default cwd (hub-server) does not exist when checkout was\n"
" # deselected; anchor the fallback at the repo root.\n"
" - name: Report no-Go-changes skip (required check)\n"
" if: ${{ !cancelled() && github.event_name != 'workflow_dispatch' && needs.changes.result == 'success' && needs.changes.outputs.go != 'true' }}\n"
" working-directory: .\n"
" run: |\n"
' echo "skipped: no Go changes; reporting success for required check go-hub"\n'
" exit 0\n"
Expand Down Expand Up @@ -180,6 +183,7 @@ def remove_go_fallback_changes_success_guard(text: str) -> str:
" # the skipped real gates as green.\n"
" - name: Fail when Go path filter failed\n"
" if: ${{ !cancelled() && github.event_name != 'workflow_dispatch' && needs.changes.result != 'success' }}\n"
" working-directory: .\n"
" run: |\n"
' echo "::error::changes job result: ${{ needs.changes.result }}; cannot decide Go gates for go-hub"\n'
" exit 1\n"
Expand Down
Loading