Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

ci: extend npm-ci-retry coverage to the OS-conditional fallback blocks (#3001)

rUvf7672a104ad4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 307344efe8..d21cf3e810 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -137,11 +137,21 @@ jobs:
- name: Install dependencies
run: |
- if [ "${{ runner.os }}" == "Linux" ]; then
- npm ci --legacy-peer-deps
- else
- npm ci --legacy-peer-deps --omit=optional || npm ci --legacy-peer-deps --force
- fi
+ # Retries absorb the transient sharp/libvips "socket hang up" /
+ # 503 download flake (see .github/actions/npm-ci-retry) — this
+ # step predates that composite action and can't call it directly
+ # since it needs the OS-conditional --omit=optional fallback too.
+ for attempt in 1 2 3; do
+ if [ "${{ runner.os }}" == "Linux" ]; then
+ npm ci --legacy-peer-deps && exit 0
+ else
+ (npm ci --legacy-peer-deps --omit=optional || npm ci --legacy-peer-deps --force) && exit 0
+ fi
+ echo "npm ci failed (attempt $attempt/3) — retrying in 15s"
+ sleep 15
+ done
+ echo "npm ci failed after 3 attempts"
+ exit 1
shell: bash
- name: Build project
diff --git a/.github/workflows/verification-pipeline.yml b/.github/workflows/verification-pipeline.yml
index ce58cef94e..e4eff55d64 100644
--- a/.github/workflows/verification-pipeline.yml
+++ b/.github/workflows/verification-pipeline.yml
@@ -195,12 +195,22 @@ jobs:
- name: Install dependencies
run: |
- if [ "${{ runner.os }}" == "Linux" ]; then
- npm ci --legacy-peer-deps
- else
- # Skip optional platform-specific dependencies on macOS/Windows
- npm ci --legacy-peer-deps --omit=optional || npm ci --legacy-peer-deps --force
- fi
+ # Retries absorb the transient sharp/libvips "socket hang up" /
+ # 503 download flake (see .github/actions/npm-ci-retry) — this
+ # step predates that composite action and can't call it directly
+ # since it needs the OS-conditional --omit=optional fallback too.
+ for attempt in 1 2 3; do
+ if [ "${{ runner.os }}" == "Linux" ]; then
+ npm ci --legacy-peer-deps && exit 0
+ else
+ # Skip optional platform-specific dependencies on macOS/Windows
+ (npm ci --legacy-peer-deps --omit=optional || npm ci --legacy-peer-deps --force) && exit 0
+ fi
+ echo "npm ci failed (attempt $attempt/3) — retrying in 15s"
+ sleep 15
+ done
+ echo "npm ci failed after 3 attempts"
+ exit 1
shell: bash
- name: Run unit tests