[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:
Jakob Ackermann
2026-06-15 08:08:00 +00:00
committed by Copybot
parent d5384d9fdb
commit 58970cd6ea
6 changed files with 49 additions and 3 deletions
@@ -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)