mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-16 20:01:39 +00:00
fix(ci): stabilize frozen target checks (#104728)
This commit is contained in:
committed by
GitHub
parent
2a479bd4ac
commit
7772d798dd
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
@@ -1031,6 +1031,8 @@ jobs:
|
||||
if: needs.preflight.outputs.run_ui_tests == 'true'
|
||||
runs-on: ${{ github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && 'blacksmith-4vcpu-ubuntu-2404' || 'ubuntu-24.04') }}
|
||||
timeout-minutes: 20
|
||||
env:
|
||||
COMPATIBILITY_TARGET: ${{ needs.preflight.outputs.compatibility_target }}
|
||||
steps:
|
||||
- *linux_node_checkout_step
|
||||
- name: Setup Node environment
|
||||
@@ -1046,7 +1048,14 @@ jobs:
|
||||
run: pnpm lint:ui:no-raw-window-open
|
||||
|
||||
- name: Test Control UI
|
||||
run: pnpm --dir ui test
|
||||
run: |
|
||||
if [[ "$COMPATIBILITY_TARGET" == "true" ]]; then
|
||||
# Frozen targets can contain timing-sensitive tests fixed on current main.
|
||||
# Retry only failures once; deterministic regressions still fail twice.
|
||||
pnpm --dir ui test -- --retry=1
|
||||
else
|
||||
pnpm --dir ui test
|
||||
fi
|
||||
|
||||
checks-fast-core:
|
||||
permissions:
|
||||
@@ -2082,8 +2091,25 @@ jobs:
|
||||
"$swift_tools_dir/swiftformat" --version
|
||||
"$swift_tools_dir/swiftlint" version
|
||||
elif [[ "$HISTORICAL_TARGET" == "true" ]]; then
|
||||
# Frozen release targets before the pinned installer used Homebrew directly.
|
||||
brew install xcodegen swiftlint swiftformat
|
||||
# Frozen release targets before the pinned installer used SwiftFormat 0.61.1.
|
||||
# Keep their lint contract stable instead of inheriting new Homebrew rules.
|
||||
brew install xcodegen swiftlint
|
||||
swiftformat_version="0.61.1"
|
||||
swiftformat_checksum="b990400779aceb7d7020796eb9ba814d4480543f671d38fc0ff48cb72f04c584"
|
||||
swiftformat_archive="$RUNNER_TEMP/swiftformat-$swiftformat_version.zip"
|
||||
swift_tools_dir="$RUNNER_TEMP/openclaw-legacy-swift-tools"
|
||||
curl --fail --location --silent --show-error --retry 3 \
|
||||
--output "$swiftformat_archive" \
|
||||
"https://github.com/nicklockwood/SwiftFormat/releases/download/$swiftformat_version/swiftformat.zip"
|
||||
if [[ "$(shasum -a 256 "$swiftformat_archive" | awk '{print $1}')" != "$swiftformat_checksum" ]]; then
|
||||
echo "SwiftFormat $swiftformat_version archive checksum mismatch" >&2
|
||||
exit 1
|
||||
fi
|
||||
mkdir -p "$swift_tools_dir"
|
||||
unzip -q "$swiftformat_archive" -d "$swift_tools_dir"
|
||||
chmod +x "$swift_tools_dir/swiftformat"
|
||||
echo "$swift_tools_dir" >> "$GITHUB_PATH"
|
||||
[[ "$("$swift_tools_dir/swiftformat" --version)" == "$swiftformat_version" ]]
|
||||
else
|
||||
echo "Current CI targets must provide scripts/install-swift-tools.sh." >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user