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
7 changes: 7 additions & 0 deletions e2e/helpers/deno-test-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ export function getTestRunId(): string {
}

export function scopedName(base: string): string {
const configuredProjectName = Deno.env
.get("BRAINTRUST_E2E_PROJECT_NAME")
?.trim();
if (configuredProjectName) {
return configuredProjectName;
}

return `${base}-${getTestRunId()
.toLowerCase()
.replace(/[^a-z0-9-]/g, "-")}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,20 +186,6 @@
"prompt_tokens": 14771,
"tokens": 14883
}
},
{
"name": "bash",
"type": "tool",
"children": [],
"input": "{\"command\":\"/bin/bash -lc 'touch /workspace/generate-started; sleep 5; printf GENERATE_OK'\"}",
"metadata": {
"braintrust": {
"integration_name": "ai-sdk",
"sdk_language": "typescript"
},
"toolCallId": "<toolCallId:1>",
"toolName": "bash"
}
}
],
"input": {
Expand Down Expand Up @@ -534,20 +520,6 @@
"prompt_tokens": 22371,
"tokens": 22567
}
},
{
"name": "bash",
"type": "tool",
"children": [],
"input": "{\"command\":\"/bin/bash -lc 'touch /workspace/stream-started; sleep 5; printf STREAM_OK'\"}",
"metadata": {
"braintrust": {
"integration_name": "ai-sdk",
"sdk_language": "typescript"
},
"toolCallId": "<toolCallId:1>",
"toolName": "bash"
}
}
],
"input": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,62 +266,52 @@ span_tree:
│ "model": "gpt-5.4-mini",
│ "provider": "codex"
│ }
│ ├── doGenerate [llm]
│ │ input: {
│ │ "messages": [
│ │ {
│ │ "role": "user"
│ │ }
│ │ ],
│ │ "model": {
│ │ "modelId": "gpt-5.4-mini",
│ │ "provider": "codex"
│ │ }
│ │ }
│ │ output: {
│ │ "finishReason": {
│ │ "raw": "stop",
│ │ "unified": "stop"
│ │ },
│ │ "response": {
│ │ "id": "<span:1>"
│ │ },
│ │ "usage": {
│ │ "inputTokens": {
│ │ "cacheRead": 7168,
│ │ "cacheWrite": 0,
│ │ "noCache": 7603,
│ │ "total": 14771
│ │ },
│ │ "outputTokens": {
│ │ "total": 112
│ │ }
│ │ }
│ │ }
│ │ metadata: {
│ │ "braintrust": {
│ │ "integration_name": "ai-sdk",
│ │ "sdk_language": "typescript"
│ │ },
│ │ "model": "gpt-5.4-mini",
│ │ "provider": "codex"
│ │ }
│ │ metrics: {
│ │ "completion_tokens": 112,
│ │ "prompt_cache_creation_tokens": 0,
│ │ "prompt_cached_tokens": 7168,
│ │ "prompt_tokens": 14771,
│ │ "tokens": 14883
│ │ }
│ └── bash [tool]
│ input: "{\"command\":\"/bin/bash -lc 'touch /workspace/generate-started; sleep 5; printf GENERATE_OK'\"}"
│ └── doGenerate [llm]
│ input: {
│ "messages": [
│ {
│ "role": "user"
│ }
│ ],
│ "model": {
│ "modelId": "gpt-5.4-mini",
│ "provider": "codex"
│ }
│ }
│ output: {
│ "finishReason": {
│ "raw": "stop",
│ "unified": "stop"
│ },
│ "response": {
│ "id": "<span:1>"
│ },
│ "usage": {
│ "inputTokens": {
│ "cacheRead": 7168,
│ "cacheWrite": 0,
│ "noCache": 7603,
│ "total": 14771
│ },
│ "outputTokens": {
│ "total": 112
│ }
│ }
│ }
│ metadata: {
│ "braintrust": {
│ "integration_name": "ai-sdk",
│ "sdk_language": "typescript"
│ },
│ "toolCallId": "<toolCallId:1>",
│ "toolName": "bash"
│ "model": "gpt-5.4-mini",
│ "provider": "codex"
│ }
│ metrics: {
│ "completion_tokens": 112,
│ "prompt_cache_creation_tokens": 0,
│ "prompt_cached_tokens": 7168,
│ "prompt_tokens": 14771,
│ "tokens": 14883
│ }
├── HarnessAgent.stream [task]
│ input: {
Expand Down Expand Up @@ -550,60 +540,50 @@ span_tree:
"model": "gpt-5.4-mini",
"provider": "codex"
}
├── doGenerate [llm]
│ input: {
│ "messages": [
│ {
│ "role": "user"
│ }
│ ],
│ "model": {
│ "modelId": "gpt-5.4-mini",
│ "provider": "codex"
│ }
│ }
│ output: {
│ "finishReason": {
│ "raw": "stop",
│ "unified": "stop"
│ },
│ "response": {
│ "id": "<span:1>"
│ },
│ "usage": {
│ "inputTokens": {
│ "cacheRead": 14336,
│ "cacheWrite": 0,
│ "noCache": 8035,
│ "total": 22371
│ },
│ "outputTokens": {
│ "total": 196
│ }
│ }
│ }
│ metadata: {
│ "braintrust": {
│ "integration_name": "ai-sdk",
│ "sdk_language": "typescript"
│ },
│ "model": "gpt-5.4-mini",
│ "provider": "codex"
│ }
│ metrics: {
│ "completion_tokens": 196,
│ "prompt_cache_creation_tokens": 0,
│ "prompt_cached_tokens": 14336,
│ "prompt_tokens": 22371,
│ "tokens": 22567
│ }
└── bash [tool]
input: "{\"command\":\"/bin/bash -lc 'touch /workspace/stream-started; sleep 5; printf STREAM_OK'\"}"
└── doGenerate [llm]
input: {
"messages": [
{
"role": "user"
}
],
"model": {
"modelId": "gpt-5.4-mini",
"provider": "codex"
}
}
output: {
"finishReason": {
"raw": "stop",
"unified": "stop"
},
"response": {
"id": "<span:1>"
},
"usage": {
"inputTokens": {
"cacheRead": 14336,
"cacheWrite": 0,
"noCache": 8035,
"total": 22371
},
"outputTokens": {
"total": 196
}
}
}
metadata: {
"braintrust": {
"integration_name": "ai-sdk",
"sdk_language": "typescript"
},
"toolCallId": "<toolCallId:1>",
"toolName": "bash"
"model": "gpt-5.4-mini",
"provider": "codex"
}
metrics: {
"completion_tokens": 196,
"prompt_cache_creation_tokens": 0,
"prompt_cached_tokens": 14336,
"prompt_tokens": 22371,
"tokens": 22567
}
Original file line number Diff line number Diff line change
Expand Up @@ -186,20 +186,6 @@
"prompt_tokens": 22357,
"tokens": 22546
}
},
{
"name": "bash",
"type": "tool",
"children": [],
"input": "{\"command\":\"/bin/bash -lc 'touch /workspace/generate-started; sleep 5; printf GENERATE_OK'\"}",
"metadata": {
"braintrust": {
"integration_name": "ai-sdk",
"sdk_language": "typescript"
},
"toolCallId": "<toolCallId:1>",
"toolName": "bash"
}
}
],
"input": {
Expand Down Expand Up @@ -534,20 +520,6 @@
"prompt_tokens": 22309,
"tokens": 22462
}
},
{
"name": "bash",
"type": "tool",
"children": [],
"input": "{\"command\":\"/bin/bash -lc 'touch /workspace/stream-started; sleep 5; printf STREAM_OK'\"}",
"metadata": {
"braintrust": {
"integration_name": "ai-sdk",
"sdk_language": "typescript"
},
"toolCallId": "<toolCallId:1>",
"toolName": "bash"
}
}
],
"input": {
Expand Down
Loading
Loading