mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-22 20:41:11 +00:00
fix(ci): stop unrelated main updates from forcing PR rebases (#107050)
* fix(ci): stop unrelated main updates from forcing PR rebases * docs(ci): document reusable aggregate proof * docs(ci): clarify immutable gate success * chore(ci): refresh stalled PR head
This commit is contained in:
committed by
GitHub
parent
b58a75d726
commit
606e2f5dba
93
.github/workflows/ci.yml
vendored
93
.github/workflows/ci.yml
vendored
@@ -50,8 +50,6 @@ on:
|
||||
- "docs/**"
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize, ready_for_review, converted_to_draft]
|
||||
paths-ignore:
|
||||
- "CHANGELOG.md"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -2777,6 +2775,97 @@ jobs:
|
||||
;;
|
||||
esac
|
||||
|
||||
ci-gate:
|
||||
permissions:
|
||||
contents: read
|
||||
name: openclaw/ci-gate
|
||||
needs:
|
||||
- runner-admission
|
||||
- preflight
|
||||
- security-fast
|
||||
- pnpm-store-warmup
|
||||
- build-artifacts
|
||||
- native-i18n
|
||||
- checks-ui
|
||||
- control-ui-i18n
|
||||
- checks-fast-core
|
||||
- qa-smoke-ci-profile
|
||||
- checks-fast-plugin-contracts-shard
|
||||
- checks-fast-channel-contracts-shard
|
||||
- checks-node-compat
|
||||
- checks-node-core-test-nondist-shard
|
||||
- check-shard
|
||||
- check-additional-shard
|
||||
- check-docs
|
||||
- skills-python
|
||||
- checks-windows
|
||||
- macos-node
|
||||
- macos-swift
|
||||
- ios-build
|
||||
- android
|
||||
if: ${{ always() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) }}
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- name: Verify selected CI lanes
|
||||
shell: bash
|
||||
env:
|
||||
REQUIRED_RESULTS: |
|
||||
runner-admission=${{ needs.runner-admission.result }}
|
||||
preflight=${{ needs.preflight.result }}
|
||||
security-fast=${{ needs.security-fast.result }}
|
||||
SELECTED_RESULTS: |
|
||||
pnpm-store-warmup=${{ needs.pnpm-store-warmup.result }}
|
||||
build-artifacts=${{ needs.build-artifacts.result }}
|
||||
native-i18n=${{ needs.native-i18n.result }}
|
||||
checks-ui=${{ needs.checks-ui.result }}
|
||||
control-ui-i18n=${{ needs.control-ui-i18n.result }}
|
||||
checks-fast-core=${{ needs.checks-fast-core.result }}
|
||||
qa-smoke-ci-profile=${{ needs.qa-smoke-ci-profile.result }}
|
||||
checks-fast-plugin-contracts-shard=${{ needs.checks-fast-plugin-contracts-shard.result }}
|
||||
checks-fast-channel-contracts-shard=${{ needs.checks-fast-channel-contracts-shard.result }}
|
||||
checks-node-compat=${{ needs.checks-node-compat.result }}
|
||||
checks-node-core-test-nondist-shard=${{ needs.checks-node-core-test-nondist-shard.result }}
|
||||
check-shard=${{ needs.check-shard.result }}
|
||||
check-additional-shard=${{ needs.check-additional-shard.result }}
|
||||
check-docs=${{ needs.check-docs.result }}
|
||||
skills-python=${{ needs.skills-python.result }}
|
||||
checks-windows=${{ needs.checks-windows.result }}
|
||||
macos-node=${{ needs.macos-node.result }}
|
||||
macos-swift=${{ needs.macos-swift.result }}
|
||||
ios-build=${{ needs.ios-build.result }}
|
||||
android=${{ needs.android.result }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
failures=0
|
||||
while IFS= read -r entry; do
|
||||
[[ -n "$entry" ]] || continue
|
||||
name="${entry%%=*}"
|
||||
result="${entry#*=}"
|
||||
echo "${name}: ${result}"
|
||||
if [[ "$result" != "success" ]]; then
|
||||
echo "::error title=Required CI job did not succeed::${name} finished with ${result}"
|
||||
failures=1
|
||||
fi
|
||||
done <<< "$REQUIRED_RESULTS"
|
||||
|
||||
while IFS= read -r entry; do
|
||||
[[ -n "$entry" ]] || continue
|
||||
name="${entry%%=*}"
|
||||
result="${entry#*=}"
|
||||
echo "${name}: ${result}"
|
||||
case "$result" in
|
||||
success | skipped) ;;
|
||||
*)
|
||||
echo "::error title=Selected CI job did not succeed::${name} finished with ${result}"
|
||||
failures=1
|
||||
;;
|
||||
esac
|
||||
done <<< "$SELECTED_RESULTS"
|
||||
|
||||
exit "$failures"
|
||||
|
||||
ci-timings-summary:
|
||||
permissions:
|
||||
actions: read
|
||||
|
||||
Reference in New Issue
Block a user