Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { createExtensionInferenceClient } from '../../../shared/extensions/exten
import { EXTENSION_NETWORK_LINK_BYTES_LIMIT } from '../../../shared/extensions/extensionNetwork'
import { createExtensionNetworkClient, createExtensionResourceClient } from '../../../shared/extensions/extensionResourceClient'
import { EXTENSION_CREATED_FILES_LIMIT } from '../../../shared/extensions/extensionResources'
import * as inferencePlatform from '../../../shared/extensions/inferencePlatform'
import { DEFAULT_THEME_PREFERENCE } from '../../../shared/theme/themePreferences'
import { ThemeService } from '../../themes/ThemeService'
import { ExtensionService } from '../ExtensionService'
Expand Down Expand Up @@ -912,6 +913,7 @@ it.each(['ready', 'checksum'] as const)('delivers resource progress before %s se
})

it('publishes deployment metadata without replacing the active model binding or rejecting its original invocation identity', async () => {
vi.spyOn(inferencePlatform, 'supportsInferenceRuntime').mockReturnValue(true)
const f = await fixture({ inference: { bootstrap: '', executable: '', admit: async () => async () => {} } }, manifest({
id: 'fixture.inference',
apiVersion: 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ import { rm } from 'node:fs/promises'
import { expect, it, onTestFinished, vi } from 'vitest'
import { inferenceDiagnosticSchema } from '../../../shared/diagnostics/inferenceDiagnostic'
import { inferenceBindingSchema } from '../../../shared/extensions/extensionInference'
import * as inferencePlatform from '../../../shared/extensions/inferencePlatform'
import { ExtensionInference } from '../ExtensionInference'
import { NativeInferenceProcess } from '../NativeInferenceProcess'
import { createStore, manifest } from './fixtures'
import { invocation, memoryInference } from './inferenceFixtures'

async function fixture(record?: ApplicationDiagnosticReporter) {
vi.spyOn(inferencePlatform, 'supportsInferenceRuntime').mockReturnValue(true)
const { root, store } = await createStore()
const owner = 'fixture.inference'
const contribution = manifest({ id: owner, apiVersion: 3, permissions: { inference: true }, contributes: { inference: {
Expand Down