Skip to content

Commit d553acd

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
chore(pi): narrow upgrade regression coverage
1 parent 5ece9fd commit d553acd

6 files changed

Lines changed: 4 additions & 397 deletions

File tree

‎apps/sim/executor/handlers/pi/cloud/cli-runtime.test.ts‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { PI_PACKAGE_VERSION } from '@/scripts/pi-sandbox-packages'
1010

1111
const exec = promisify(execFile)
1212

13-
async function invokeSandbox(version: string, exitCode = 0) {
13+
async function invokeSandbox(version: string) {
1414
const root = await mkdtemp(join(tmpdir(), 'sim-pi-cli-'))
1515
const workspace = join(root, 'workspace')
1616
const repo = join(workspace, 'repo')
@@ -28,7 +28,7 @@ if [ "$1" = "--version" ]; then
2828
fi
2929
printf "%s" "$PI_CODING_AGENT_DIR" > "${root}/invoked"
3030
printf "%s\\n" '{"type":"message_update","assistantMessageEvent":{"type":"text_delta","delta":"ok"}}'
31-
exit ${exitCode}
31+
exit 0
3232
`,
3333
{ mode: 0o700 }
3434
)
@@ -81,8 +81,4 @@ describe('sandbox Pi runtime boundary', () => {
8181
assistantMessageEvent: { type: 'text_delta', delta: 'ok' },
8282
})
8383
})
84-
85-
it('propagates a failing CLI even when the stdout filter succeeds', async () => {
86-
expect((await invokeSandbox(PI_PACKAGE_VERSION, 42)).code).toBe(42)
87-
})
8884
})

‎apps/sim/executor/handlers/pi/cloud/installed-cli.test.ts‎

Lines changed: 0 additions & 109 deletions
This file was deleted.

‎apps/sim/executor/handlers/pi/cloud/review/backend.test.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const mockAgentSession = {
4545
const sealedResourceLoader = { kind: 'sealed' }
4646

4747
const mockSdk = {
48-
SettingsManager: { inMemory: vi.fn(() => ({})) },
48+
SettingsManager: { inMemory: () => ({}) },
4949
SessionManager: { inMemory: vi.fn(() => ({})) },
5050
createAgentSession: mockCreateAgentSession,
5151
defineTool: vi.fn((tool) => tool),
@@ -201,7 +201,6 @@ describe('runCloudReviewPi', () => {
201201

202202
expect(mockSetRuntimeApiKey).toHaveBeenCalledWith('anthropic', 'sk-byok')
203203
expect(mockRemoveRuntimeApiKey).toHaveBeenCalledWith('anthropic')
204-
expect(mockSdk.SettingsManager.inMemory).toHaveBeenCalledWith({ cacheWarming: 'off' })
205204
expect(mockCreateSealedResourceLoader).toHaveBeenCalledTimes(1)
206205
expect(mockCreateAgentSession).toHaveBeenCalledWith(
207206
expect.objectContaining({

‎apps/sim/executor/handlers/pi/core/__fixtures__/provider.ts‎

Lines changed: 0 additions & 119 deletions
This file was deleted.

0 commit comments

Comments
 (0)