@@ -33,7 +33,7 @@ func (n ExecutorMock) IsStorePathExist(storePath string) bool {
3333func (n ExecutorMock ) Deploy (ctx context.Context , outPath , operation string ) (needToRestartComin bool , profilePath string , err error ) {
3434 return false , "" , nil
3535}
36- func (n ExecutorMock ) Eval (ctx context.Context , repositoryPath , repositorySubdir , commitId , systemAttr , hostname string ) (drvPath string , outPath string , machineId string , err error ) {
36+ func (n ExecutorMock ) Eval (ctx context.Context , repositoryPath , repositorySubdir , commitId , systemAttr , hostname string , submodules bool ) (drvPath string , outPath string , machineId string , err error ) {
3737 select {
3838 case <- ctx .Done ():
3939 return "" , "" , "" , ctx .Err ()
@@ -69,7 +69,7 @@ func TestBuilderBuild(t *testing.T) {
6969 s , err := store .New (bk , tmp + "/state.json" , tmp + "/gcroots" , 1 , 1 )
7070 assert .Nil (t , err )
7171 eMock := NewExecutorMock (false )
72- b := New (s , eMock , "" , "" , "" , "my-machine" , 2 * time .Second , 2 * time .Second )
72+ b := New (s , eMock , "" , "" , "" , "my-machine" , false , 2 * time .Second , 2 * time .Second )
7373 ctx := t .Context ()
7474
7575 // Run the evaluator
@@ -133,7 +133,7 @@ func TestEval(t *testing.T) {
133133 s , err := store .New (bk , tmp + "/state.json" , tmp + "/gcroots" , 1 , 1 )
134134 assert .Nil (t , err )
135135 eMock := NewExecutorMock (false )
136- b := New (s , eMock , "" , "" , "" , "" , 5 * time .Second , 5 * time .Second )
136+ b := New (s , eMock , "" , "" , "" , "" , false , 5 * time .Second , 5 * time .Second )
137137 _ = b .Eval (t .Context (), & protobuf.RepositoryStatus {})
138138 assert .True (t , b .isEvaluating .Load ())
139139 eMock .evalDone <- struct {}{}
@@ -155,7 +155,7 @@ func TestEvalAlreadyBuilt(t *testing.T) {
155155 s , err := store .New (bk , tmp + "/state.json" , tmp + "/gcroots" , 1 , 1 )
156156 assert .Nil (t , err )
157157 eMock := NewExecutorMock (true )
158- b := New (s , eMock , "" , "" , "" , "" , 5 * time .Second , 5 * time .Second )
158+ b := New (s , eMock , "" , "" , "" , "" , false , 5 * time .Second , 5 * time .Second )
159159 _ = b .Eval (t .Context (), & protobuf.RepositoryStatus {})
160160 assert .True (t , b .IsEvaluating ())
161161
@@ -179,7 +179,7 @@ func TestBuilderPreemption(t *testing.T) {
179179 s , err := store .New (bk , tmp + "/state.json" , tmp + "/gcroots" , 1 , 1 )
180180 assert .Nil (t , err )
181181 eMock := NewExecutorMock (false )
182- b := New (s , eMock , "" , "" , "" , "" , 5 * time .Second , 5 * time .Second )
182+ b := New (s , eMock , "" , "" , "" , "" , false , 5 * time .Second , 5 * time .Second )
183183 _ = b .Eval (t .Context (), & protobuf.RepositoryStatus {SelectedCommitId : "commit-1" })
184184 assert .True (t , b .isEvaluating .Load ())
185185 assert .EventuallyWithT (t , func (c * assert.CollectT ) {
@@ -202,7 +202,7 @@ func TestBuilderStop(t *testing.T) {
202202 s , err := store .New (bk , tmp + "/state.json" , tmp + "/gcroots" , 1 , 1 )
203203 assert .Nil (t , err )
204204 eMock := NewExecutorMock (false )
205- b := New (s , eMock , "" , "" , "" , "" , 5 * time .Second , 5 * time .Second )
205+ b := New (s , eMock , "" , "" , "" , "" , false , 5 * time .Second , 5 * time .Second )
206206 _ = b .Eval (t .Context (), & protobuf.RepositoryStatus {})
207207 assert .True (t , b .isEvaluating .Load ())
208208 b .Stop ()
@@ -220,7 +220,7 @@ func TestBuilderTimeout(t *testing.T) {
220220 s , err := store .New (bk , tmp + "/state.json" , tmp + "/gcroots" , 1 , 1 )
221221 assert .Nil (t , err )
222222 eMock := NewExecutorMock (false )
223- b := New (s , eMock , "" , "" , "" , "" , 1 * time .Second , 5 * time .Second )
223+ b := New (s , eMock , "" , "" , "" , "" , false , 1 * time .Second , 5 * time .Second )
224224 _ = b .Eval (t .Context (), & protobuf.RepositoryStatus {})
225225 assert .True (t , b .isEvaluating .Load ())
226226 assert .EventuallyWithT (t , func (c * assert.CollectT ) {
@@ -237,7 +237,7 @@ func TestBuilderSuspend(t *testing.T) {
237237 s , err := store .New (bk , tmp + "/state.json" , tmp + "/gcroots" , 1 , 1 )
238238 assert .Nil (t , err )
239239 eMock := NewExecutorMock (false )
240- b := New (s , eMock , "" , "" , "" , "" , 1 * time .Second , 5 * time .Second )
240+ b := New (s , eMock , "" , "" , "" , "" , false , 1 * time .Second , 5 * time .Second )
241241 _ = b .Suspend ()
242242 assert .True (t , b .isSuspended )
243243 _ = b .Eval (t .Context (), & protobuf.RepositoryStatus {})
0 commit comments