mirror of
https://github.com/langgenius/dify.git
synced 2026-08-26 18:36:52 -04:00
dbefcedb7f
When CI runs parallel suite jobs, each job's vitest globalSetup calls provisionApps() independently. Simultaneous findAppByName() calls all return 'not found' (race condition), causing each job to importFromDsl and create duplicate apps — especially in auto_test1 (ws2-workflow.yml). Fix: 1. Check if all DIFY_E2E_*_APP_ID env vars are pre-set (from CI provision job outputs). If so, skip provisionApps entirely and reuse those IDs. 2. Fall back to env-sourced app IDs in capabilities assignment so that provision job outputs are always honoured even if provisionApps runs.