Skip to content

The open alternative to Salesforce, designed for AI.

Flush Redis between server runs in breaking changes CI (#19491)

Félix Malfait9b8cb610c341
diff --git a/.github/workflows/ci-breaking-changes.yaml b/.github/workflows/ci-breaking-changes.yaml
index 1e7dd7bb2e9..2876ea41940 100644
--- a/.github/workflows/ci-breaking-changes.yaml
+++ b/.github/workflows/ci-breaking-changes.yaml
@@ -251,6 +251,14 @@ jobs:
rm -f /tmp/current-server.pid
fi
+ - name: Flush Redis between server runs
+ run: |
+ # Clear all Redis caches to prevent stale data from the current branch
+ # server contaminating the main branch server. Both servers share the
+ # same Redis instance, and CoreEntityCacheService/WorkspaceCacheService
+ # persist cached entities across process restarts.
+ redis-cli -h localhost -p 6379 FLUSHALL || echo "::warning::Failed to flush Redis"
+
- name: Checkout main branch
run: |
git stash