mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
[clsi] prepare for non-representative clsiServerIds (#34546)
* [clsi] forward instanceType to web * [clsi] expose zone in compile response * [clsi-perf] add new fields for instanceType and zone * [clsi] expose isPreEmptible flag in compile response * [clsi-perf] also add isPreEmptible field * [clsi] rename isPreEmptible -> isSpotInstance GitOrigin-RevId: 2bc2d772e0b14da83afb51f5f3e4fefd3f60b733
This commit is contained in:
@@ -25,6 +25,9 @@ describe('CompileController', () => {
|
||||
clsi: {
|
||||
url: 'http://clsi.example.com',
|
||||
outputUrlPrefix: '/zone/b',
|
||||
instanceType: 'c4d',
|
||||
zone: 'b',
|
||||
isSpotInstance: true,
|
||||
downloadHost: 'http://localhost:3013',
|
||||
},
|
||||
clsiCache: {
|
||||
@@ -149,6 +152,9 @@ describe('CompileController', () => {
|
||||
})),
|
||||
clsiCacheShard: undefined,
|
||||
baseHistoryVersion: undefined,
|
||||
instanceType: 'c4d',
|
||||
zone: 'b',
|
||||
isSpotInstance: true,
|
||||
},
|
||||
})
|
||||
.should.equal(true)
|
||||
@@ -178,6 +184,9 @@ describe('CompileController', () => {
|
||||
})),
|
||||
clsiCacheShard: undefined,
|
||||
baseHistoryVersion: undefined,
|
||||
instanceType: 'c4d',
|
||||
zone: 'b',
|
||||
isSpotInstance: true,
|
||||
},
|
||||
})
|
||||
.should.equal(true)
|
||||
@@ -227,6 +236,9 @@ describe('CompileController', () => {
|
||||
})),
|
||||
clsiCacheShard: undefined,
|
||||
baseHistoryVersion: undefined,
|
||||
instanceType: 'c4d',
|
||||
zone: 'b',
|
||||
isSpotInstance: true,
|
||||
},
|
||||
})
|
||||
})
|
||||
@@ -276,6 +288,9 @@ describe('CompileController', () => {
|
||||
})),
|
||||
clsiCacheShard: undefined,
|
||||
baseHistoryVersion: undefined,
|
||||
instanceType: 'c4d',
|
||||
zone: 'b',
|
||||
isSpotInstance: true,
|
||||
},
|
||||
})
|
||||
})
|
||||
@@ -309,6 +324,9 @@ describe('CompileController', () => {
|
||||
timings: ctx.timings,
|
||||
clsiCacheShard: undefined,
|
||||
baseHistoryVersion: undefined,
|
||||
instanceType: 'c4d',
|
||||
zone: 'b',
|
||||
isSpotInstance: true,
|
||||
},
|
||||
})
|
||||
.should.equal(true)
|
||||
@@ -345,6 +363,9 @@ describe('CompileController', () => {
|
||||
buildId: undefined,
|
||||
clsiCacheShard: undefined,
|
||||
baseHistoryVersion: undefined,
|
||||
instanceType: 'c4d',
|
||||
zone: 'b',
|
||||
isSpotInstance: true,
|
||||
},
|
||||
})
|
||||
.should.equal(true)
|
||||
@@ -380,6 +401,9 @@ describe('CompileController', () => {
|
||||
buildId: undefined,
|
||||
clsiCacheShard: undefined,
|
||||
baseHistoryVersion: undefined,
|
||||
instanceType: 'c4d',
|
||||
zone: 'b',
|
||||
isSpotInstance: true,
|
||||
},
|
||||
})
|
||||
.should.equal(true)
|
||||
@@ -413,6 +437,9 @@ describe('CompileController', () => {
|
||||
buildId: undefined,
|
||||
clsiCacheShard: undefined,
|
||||
baseHistoryVersion: undefined,
|
||||
instanceType: 'c4d',
|
||||
zone: 'b',
|
||||
isSpotInstance: true,
|
||||
},
|
||||
})
|
||||
.should.equal(true)
|
||||
|
||||
Reference in New Issue
Block a user