mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-08-29 04:26:38 +00:00
test(python): exercise the shipped SDK profile directly
The keyless max-token smoke carried a disable overlay that reproduced the removed private carrier's reduced tool roster. That legacy roster is now owned by the standalone sdk-minimal profile, so mutating the full sdk profile hides the application the SDK actually ships.\n\nLaunch sdk without a patch for both the successful and invalid-config paths. The separate sdk-minimal process test continues to pin its exact platform-selected two-tool request.
This commit is contained in:
@@ -9,7 +9,6 @@ import { execa } from 'execa'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
const binScript = fileURLToPath(new URL('../../../apps/cli/src/bin.ts', import.meta.url))
|
||||
const patchPath = fileURLToPath(new URL('./keyless.patch.yml', import.meta.url))
|
||||
const repoRoot = fileURLToPath(new URL('../../..', import.meta.url))
|
||||
const decompress = promisify(zstdDecompress)
|
||||
|
||||
@@ -77,8 +76,6 @@ describe('Python SDK dsh profile keyless smoke', () => {
|
||||
binScript,
|
||||
'--profile',
|
||||
'sdk',
|
||||
'--patch',
|
||||
patchPath,
|
||||
], {
|
||||
cwd: repoRoot,
|
||||
env: {
|
||||
@@ -147,17 +144,7 @@ describe('Python SDK dsh profile keyless smoke', () => {
|
||||
},
|
||||
},
|
||||
})
|
||||
const tools = modelRequests[0]?.tools as { function?: { name?: string } }[]
|
||||
expect(modelRequests[0]?.max_tokens).toBe(1234)
|
||||
expect(tools.map(tool => tool.function?.name).sort()).toEqual([
|
||||
'bash',
|
||||
'edit',
|
||||
'read',
|
||||
'read_image',
|
||||
'subagent',
|
||||
'todo_write',
|
||||
'write',
|
||||
])
|
||||
|
||||
child.stdin.write(`${JSON.stringify({ jsonrpc: '2.0', id: 3, method: 'shutdown' })}\n`)
|
||||
const shutdown = await waitForLine(lines, value => value.id === 3, () => stderr)
|
||||
@@ -283,8 +270,6 @@ describe('Python SDK dsh profile keyless smoke', () => {
|
||||
binScript,
|
||||
'--profile',
|
||||
'sdk',
|
||||
'--patch',
|
||||
patchPath,
|
||||
], {
|
||||
cwd: repoRoot,
|
||||
env: {
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
# Preserve the focused SDK test roster over the shipped sdk profile.
|
||||
|
||||
- id: agent-instructions
|
||||
disabled: true
|
||||
- id: tool-jobs
|
||||
disabled: true
|
||||
- id: tool-fs-search
|
||||
disabled: true
|
||||
- id: skill-filesystem
|
||||
disabled: true
|
||||
- id: tool-skill
|
||||
disabled: true
|
||||
- id: tool-str-replace-editor
|
||||
disabled: true
|
||||
- id: tool-subagent-control
|
||||
disabled: true
|
||||
- id: tool-subagent-list-agents
|
||||
disabled: true
|
||||
- id: tool-subagent-fork
|
||||
disabled: true
|
||||
- id: tool-subagent-report
|
||||
disabled: true
|
||||
- id: tool-workflow
|
||||
disabled: true
|
||||
- id: tool-goal
|
||||
disabled: true
|
||||
- id: plan-mode
|
||||
disabled: true
|
||||
- id: tool-ralph
|
||||
disabled: true
|
||||
- id: tool-web
|
||||
disabled: true
|
||||
|
||||
- id: tool-subagent
|
||||
config:
|
||||
provider: spawn
|
||||
toolName: subagent
|
||||
backgroundMode: one-shot
|
||||
Reference in New Issue
Block a user