File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
components/server/src/workspace Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -1273,10 +1273,6 @@ export class WorkspaceStarter {
1273
1273
// ...and wait for the build to finish
1274
1274
buildResult = await result . buildPromise ;
1275
1275
if ( buildResult . getStatus ( ) == BuildStatus . DONE_FAILURE ) {
1276
- // Register a failed image build only if the image actually needed to be built; ie the build was not a no-op.
1277
- if ( result . actuallyNeedsBuild ) {
1278
- increaseImageBuildsCompletedTotal ( "failed" ) ;
1279
- }
1280
1276
throw new Error ( buildResult . getMessage ( ) ) ;
1281
1277
}
1282
1278
} catch ( err ) {
@@ -1352,6 +1348,7 @@ export class WorkspaceStarter {
1352
1348
`workspace image build failed: ${ message } ` ,
1353
1349
) ;
1354
1350
err = new StartInstanceError ( "imageBuildFailed" , err ) ;
1351
+ increaseImageBuildsCompletedTotal ( "failed" ) ;
1355
1352
}
1356
1353
this . analytics . track ( {
1357
1354
userId : user . id ,
You can’t perform that action at this time.
0 commit comments