@@ -239,6 +239,7 @@ func Run(options ...RunOption) {
239
239
gitpodConfigService := config .NewConfigService (cfg .RepoRoot + "/.gitpod.yml" , cstate .ContentReady (), log .Log )
240
240
go gitpodConfigService .Watch (ctx )
241
241
242
+ log .Info ("starting ports manager" )
242
243
portMgmt := ports .NewManager (
243
244
createExposedPortsImpl (cfg , gitpodService ),
244
245
& ports.PollingServedPortsObserver {
@@ -249,6 +250,7 @@ func Run(options ...RunOption) {
249
250
internalPorts ... ,
250
251
)
251
252
253
+ log .Info ("finished ports manager" )
252
254
if opts .RunGP {
253
255
cstate .MarkContentReady (csapi .WorkspaceInitFromOther )
254
256
} else {
@@ -257,6 +259,8 @@ func Run(options ...RunOption) {
257
259
go analyseConfigChanges (ctx , cfg , analytics , gitpodConfigService , gitpodService )
258
260
}
259
261
262
+ log .Info ("termMux" )
263
+
260
264
termMux := terminal .NewMux ()
261
265
termMuxSrv := terminal .NewMuxTerminalService (termMux )
262
266
termMuxSrv .DefaultWorkdir = cfg .RepoRoot
@@ -278,6 +282,8 @@ func Run(options ...RunOption) {
278
282
Gid : gitpodGID ,
279
283
}
280
284
285
+ log .Info ("taskManager" )
286
+
281
287
taskManager := newTasksManager (cfg , termMuxSrv , cstate , nil )
282
288
283
289
apiServices := []RegisterableService {
@@ -297,12 +303,14 @@ func Run(options ...RunOption) {
297
303
}
298
304
apiServices = append (apiServices , additionalServices ... )
299
305
306
+ log .Info ("installDotfiles" )
300
307
if ! cfg .isHeadless () {
301
308
// We need to checkout dotfiles first, because they may be changing the path which affects the IDE.
302
309
// TODO(cw): provide better feedback if the IDE start fails because of the dotfiles (provide any feedback at all).
303
310
installDotfiles (ctx , cfg , tokenService , childProcEnvvars )
304
311
}
305
312
313
+ log .Info ("ideWG" )
306
314
var ideWG sync.WaitGroup
307
315
ideWG .Add (1 )
308
316
go startAndWatchIDE (ctx , cfg , & cfg .IDE , childProcEnvvars , & ideWG , cstate , ideReady , WebIDE )
@@ -1302,6 +1310,7 @@ func startSSHServer(ctx context.Context, cfg *Config, wg *sync.WaitGroup, childP
1302
1310
}
1303
1311
1304
1312
func startContentInit (ctx context.Context , cfg * Config , wg * sync.WaitGroup , cst ContentState ) {
1313
+ log .Info ("starting content init" )
1305
1314
defer wg .Done ()
1306
1315
defer log .Info ("supervisor: workspace content available" )
1307
1316
@@ -1327,6 +1336,8 @@ func startContentInit(ctx context.Context, cfg *Config, wg *sync.WaitGroup, cst
1327
1336
log .Info ("Detected content.json in /.workspace folder, assuming PVC feature enabled" )
1328
1337
}
1329
1338
1339
+ log .Infof ("waiting for content.json to be available at %s" , fn )
1340
+
1330
1341
var contentFile * os.File
1331
1342
1332
1343
contentFile , err = os .Open (fn )
@@ -1341,6 +1352,7 @@ func startContentInit(ctx context.Context, cfg *Config, wg *sync.WaitGroup, cst
1341
1352
// TODO: rewrite using fsnotify
1342
1353
t := time .NewTicker (100 * time .Millisecond )
1343
1354
for range t .C {
1355
+ log .Infof ("waiting for %s to be available" , fnReady )
1344
1356
b , err := os .ReadFile (fnReady )
1345
1357
if err != nil {
1346
1358
if ! os .IsNotExist (err ) {
@@ -1368,12 +1380,14 @@ func startContentInit(ctx context.Context, cfg *Config, wg *sync.WaitGroup, cst
1368
1380
1369
1381
defer contentFile .Close ()
1370
1382
1383
+ log .Info ("supervisor: workspace content available" )
1371
1384
var src csapi.WorkspaceInitSource
1372
1385
src , err = executor .Execute (ctx , "/workspace" , contentFile , true )
1373
1386
if err != nil {
1374
1387
return
1375
1388
}
1376
1389
1390
+ log .Infof ("supervisor: remove %s" , fn )
1377
1391
err = os .Remove (fn )
1378
1392
if os .IsNotExist (err ) {
1379
1393
// file is gone - we're good
0 commit comments