






















@@ -544,12 +544,6 @@ jobs:
544544include-hidden-files: true
545545retention-days: 1
546546547- - name: Cache dist-runtime build
548-uses: actions/cache@v5
549-with:
550-path: dist-runtime/
551-key: ${{ runner.os }}-dist-runtime-build-${{ github.sha }}
552-553547checks-fast-core:
554548permissions:
555549contents: read
@@ -1612,6 +1606,8 @@ jobs:
16121606group: extension-bundled
16131607 - check_name: check-additional-extension-package-boundary
16141608group: extension-package-boundary
1609+ - check_name: check-additional-runtime-topology-gateway
1610+group: runtime-topology-gateway
16151611 - check_name: check-additional-runtime-topology-architecture
16161612group: runtime-topology-architecture
16171613steps:
@@ -1710,6 +1706,7 @@ jobs:
17101706 - name: Run additional check shard
17111707env:
17121708ADDITIONAL_CHECK_GROUP: ${{ matrix.group }}
1709+RUN_CONTROL_UI_I18N: ${{ needs.preflight.outputs.run_control_ui_i18n }}
17131710OPENCLAW_EXTENSION_BOUNDARY_CONCURRENCY: 6
17141711shell: bash
17151712run: |
@@ -1762,6 +1759,12 @@ jobs:
17621759 run_check "test:extensions:package-boundary:compile" pnpm run test:extensions:package-boundary:compile
17631760 run_check "test:extensions:package-boundary:canary" pnpm run test:extensions:package-boundary:canary
17641761 ;;
1762+ runtime-topology-gateway)
1763+ if [ "$RUN_CONTROL_UI_I18N" = "true" ]; then
1764+ run_check "ui:i18n:check" pnpm ui:i18n:check
1765+ fi
1766+ run_check "gateway-watch-regression" pnpm test:gateway:watch-regression
1767+ ;;
17651768 runtime-topology-architecture)
17661769 run_check "check:architecture" pnpm check:architecture
17671770 ;;
@@ -1773,121 +1776,8 @@ jobs:
1773177617741777 exit "$failures"
177517781776- check-additional-runtime-topology-gateway:
1777-permissions:
1778-contents: read
1779-name: "check-additional-runtime-topology-gateway"
1780-needs: [preflight, build-artifacts]
1781-if: ${{ !cancelled() && always() && needs.preflight.outputs.run_check_additional == 'true' && needs.build-artifacts.result == 'success' }}
1782-runs-on: ubuntu-24.04
1783-timeout-minutes: 20
1784-steps:
1785- - name: Checkout
1786-shell: bash
1787-env:
1788-CHECKOUT_REPO: ${{ github.repository }}
1789-CHECKOUT_SHA: ${{ github.sha }}
1790-CHECKOUT_TOKEN: ${{ github.token }}
1791-run: |
1792- set -euo pipefail
1793-1794- workdir="$GITHUB_WORKSPACE"
1795- auth_header="$(printf 'x-access-token:%s' "$CHECKOUT_TOKEN" | base64 | tr -d '\n')"
1796-1797- reset_checkout_dir() {
1798- mkdir -p "$workdir"
1799- find "$workdir" -mindepth 1 -maxdepth 1 -exec rm -rf {} +
1800- }
1801-1802- checkout_attempt() {
1803- local attempt="$1"
1804-1805- reset_checkout_dir
1806- git init "$workdir" >/dev/null
1807- git config --global --add safe.directory "$workdir"
1808- git -C "$workdir" remote add origin "https://github.com/${CHECKOUT_REPO}"
1809- git -C "$workdir" config gc.auto 0
1810-1811- timeout --signal=TERM 30s git -C "$workdir" \
1812- -c protocol.version=2 \
1813- -c "http.https://github.com/.extraheader=AUTHORIZATION: basic ${auth_header}" \
1814- fetch --no-tags --prune --no-recurse-submodules --depth=1 origin \
1815- "+${CHECKOUT_SHA}:refs/remotes/origin/ci-target" || return 1
1816-1817- git -C "$workdir" checkout --force --detach "$CHECKOUT_SHA" || return 1
1818- test -f "$workdir/.github/actions/setup-node-env/action.yml" || return 1
1819- echo "checkout attempt ${attempt}/2 succeeded"
1820- }
1821-1822- for attempt in 1 2; do
1823- if checkout_attempt "$attempt"; then
1824- exit 0
1825- fi
1826- echo "checkout attempt ${attempt}/2 failed"
1827- sleep $((attempt * 5))
1828- done
1829-1830- echo "checkout failed after 2 attempts" >&2
1831- exit 1
1832-1833- - name: Setup Node environment
1834-uses: ./.github/actions/setup-node-env
1835-with:
1836-install-bun: "false"
1837-1838- - name: Restore dist cache
1839-id: gateway-dist-cache
1840-uses: actions/cache@v5
1841-with:
1842-path: dist/
1843-key: ${{ runner.os }}-dist-build-${{ github.sha }}
1844-1845- - name: Download dist artifact
1846-if: steps.gateway-dist-cache.outputs.cache-hit != 'true'
1847-uses: actions/download-artifact@v8
1848-with:
1849-name: dist-build
1850-path: dist/
1851-1852- - name: Restore dist-runtime cache
1853-id: gateway-dist-runtime-cache
1854-uses: actions/cache@v5
1855-with:
1856-path: dist-runtime/
1857-key: ${{ runner.os }}-dist-runtime-build-${{ github.sha }}
1858-1859- - name: Run runtime topology gateway checks
1860-env:
1861-RUN_CONTROL_UI_I18N: ${{ needs.preflight.outputs.run_control_ui_i18n }}
1862-shell: bash
1863-run: |
1864- set -euo pipefail
1865-1866- failures=0
1867-1868- run_check() {
1869- local label="$1"
1870- shift
1871-1872- echo "::group::${label}"
1873- if "$@"; then
1874- echo "[ok] ${label}"
1875- else
1876- echo "::error title=${label} failed::${label} failed"
1877- failures=1
1878- fi
1879- echo "::endgroup::"
1880- }
1881-1882- if [ "$RUN_CONTROL_UI_I18N" = "true" ]; then
1883- run_check "ui:i18n:check" pnpm ui:i18n:check
1884- fi
1885- run_check "gateway-watch-regression" node scripts/check-gateway-watch-regression.mjs --skip-build
1886-1887- exit "$failures"
1888-18891779 - name: Upload gateway watch regression artifacts
1890-if: always()
1780+if: always() && matrix.group == 'runtime-topology-gateway'
18911781uses: actions/upload-artifact@v7
18921782with:
18931783name: gateway-watch-regression
@@ -1898,24 +1788,19 @@ jobs:
18981788permissions:
18991789contents: read
19001790name: "check-additional"
1901-needs: [preflight, check-additional-shard, check-additional-runtime-topology-gateway]
1791+needs: [preflight, check-additional-shard]
19021792if: ${{ !cancelled() && always() && needs.preflight.outputs.run_check_additional == 'true' }}
19031793runs-on: ubuntu-24.04
19041794timeout-minutes: 5
19051795steps:
19061796 - name: Verify additional check shards
19071797env:
19081798SHARD_RESULT: ${{ needs.check-additional-shard.result }}
1909-GATEWAY_RESULT: ${{ needs.check-additional-runtime-topology-gateway.result }}
19101799run: |
19111800 if [ "$SHARD_RESULT" != "success" ]; then
19121801 echo "Additional check shards failed: $SHARD_RESULT" >&2
19131802 exit 1
19141803 fi
1915- if [ "$GATEWAY_RESULT" != "success" ]; then
1916- echo "Runtime topology gateway check failed: $GATEWAY_RESULT" >&2
1917- exit 1
1918- fi
1919180419201805 build-smoke:
19211806permissions:
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。