This issue has been created
There is 1 update.
 
 
Cristal / cid:jira-generated-image-avatar-3ab800a3-468b-43d6-a24d-d4e2369d8861 CRISTAL-831 Open

external-deps-start can crash in case of branch switch

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-390ddef4-b6ad-4389-9c00-98cd02303df3 Manuel Leduc created this issue on 29/May/26 11:43
 
Summary: external-deps-start can crash in case of branch switch
Issue Type: cid:jira-generated-image-avatar-3ab800a3-468b-43d6-a24d-d4e2369d8861 Task
Affects Versions: 1.3.0
Assignee: Unassigned
Components: Development Issues only
Created: 29/May/26 11:43
Priority: cid:jira-generated-image-static-major-e61fa6fa-1b4d-43f9-999a-55d17de96596 Major
Reporter: Manuel Leduc
Description:

Reproduction steps

Note: I noticed the script crashing from time to time. The steps below are what I think made the script crash, without being 100% sure.

  1. Start the script (node ./scripts/external-deps-start.js PATH dev)
  2. In PATH, switch to another branch

Expected

The script stops gracefully with a waring, or adapts itself to the new context

Actual

The script crash and leave the cristal repository in an invalid intermediate state.
The servers (vite, realtime, etc) are not stopped and keep running in the backgroud.

Proposed fix

Add a mechanism to catch any error and act as a safety net to be sure everything is cleared correctly.
Optionally, add a mechanism to be "branch-aware" and do more dynamic adaptations.

 
 

1 update

 
cid:jira-generated-image-avatar-390ddef4-b6ad-4389-9c00-98cd02303df3 Changes by Manuel Leduc on 29/May/26 11:43
 
Assignee: Pierre Jeanjean