File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -393,7 +393,21 @@ function fetchInstancesByCompose(
393393 var branchName = instance . getBranchName ( ) ;
394394 composeMasterConfig . children [ branchName ] = composeMasterConfig . children [ branchName ] || { } ;
395395 var composeMasterConfigIsolationChild = composeMasterConfig . children [ branchName ] ;
396- if ( instance . attrs . isIsolationGroupMaster && ! instance . attrs . inputClusterConfig . parentInputClusterConfigId ) {
396+ if ( instance . attrs . isIsolationGroupMaster &&
397+ (
398+ ! instance . attrs . inputClusterConfig . parentInputClusterConfigId ||
399+ instance . attrs . inputClusterConfig . parentInputClusterConfigId !== instance . attrs . inputClusterConfig . _id
400+ )
401+ ) {
402+ if ( composeMasterConfigIsolationChild . master ) {
403+ if ( instance . attrs . isTesting ) {
404+ composeMasterConfigIsolationChild . testing = composeMasterConfigIsolationChild . testing || [ ] ;
405+ composeMasterConfigIsolationChild . testing . push ( instance ) ;
406+ return ;
407+ }
408+ composeMasterConfigIsolationChild . testing = composeMasterConfigIsolationChild . testing || [ ] ;
409+ composeMasterConfigIsolationChild . testing . push ( composeMasterConfigIsolationChild . master ) ;
410+ }
397411 composeMasterConfigIsolationChild . master = instance ;
398412 return ;
399413 }
You can’t perform that action at this time.
0 commit comments