Skip to content

Commit 9934d26

Browse files
committed
Run platform bridges in parallel (cleanup prevents recursion)
1 parent 0b30203 commit 9934d26

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/code-quality.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,8 @@ jobs:
101101

102102
- name: Run PHPStan on platform bridges
103103
run: |
104-
# Platform bridges run SEQUENTIALLY because they depend on symfony/ai-platform
105-
# which is in the same directory tree. Running in parallel causes recursive vendor copies
106-
# when bridge A's vendor/symfony/ai-platform includes bridge B's vendor (if B finished first).
107104
source .github/workflows/.utils.sh
108105
109106
BRIDGES=$(find src/platform/src/Bridge/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | sort | tr '\n' ' ')
110107
echo "Bridges: $BRIDGES"
111-
for BRIDGE in $BRIDGES; do
112-
_run_task "$BRIDGE" "(cd src/platform/src/Bridge/$BRIDGE && $COMPOSER_UP && $PHPSTAN && rm -rf vendor)"
113-
done
108+
echo "$BRIDGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/platform/src/Bridge/{} && $COMPOSER_UP && $PHPSTAN)'"

0 commit comments

Comments
 (0)