mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-14 22:33:48 +00:00
chore(tests): normalize recording IDs and timestamps to reduce git diff noise (#3676)
IDs are now deterministic hashes based on request content, and timestamps are normalized to constants, eliminating spurious changes when re-recording tests. ## Changes - Updated `inference_recorder.py` to normalize IDs and timestamps during recording - Added `scripts/normalize_recordings.py` utility to re-normalize existing recordings - Created documentation in `tests/integration/recordings/README.md` - Normalized 350 existing recording files
This commit is contained in:
parent
6bcd3e25f2
commit
3f36bfaeaa
348 changed files with 10154 additions and 8329 deletions
|
@ -78,7 +78,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -93,7 +93,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437832,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -104,7 +104,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -119,7 +119,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437832,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -130,7 +130,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -145,7 +145,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437832,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -156,7 +156,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -171,7 +171,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437832,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -182,7 +182,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -197,7 +197,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437832,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -208,7 +208,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -223,7 +223,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437832,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -234,7 +234,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -249,7 +249,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437832,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -260,7 +260,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -275,7 +275,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437832,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -286,7 +286,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -301,7 +301,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437832,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -312,7 +312,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -327,7 +327,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437832,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -338,7 +338,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -353,7 +353,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437832,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -364,7 +364,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -379,7 +379,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437832,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -390,7 +390,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -405,7 +405,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437832,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -416,7 +416,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -431,7 +431,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437832,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -442,7 +442,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -457,7 +457,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437832,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -468,7 +468,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -483,7 +483,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437832,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -494,7 +494,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -509,7 +509,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437833,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -520,7 +520,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -535,7 +535,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437833,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -546,7 +546,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -561,7 +561,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437833,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -572,7 +572,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -587,7 +587,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437833,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -598,7 +598,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -613,7 +613,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437833,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -624,7 +624,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -639,7 +639,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437833,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -650,7 +650,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -665,7 +665,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437833,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -676,7 +676,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -691,7 +691,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437833,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -702,7 +702,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -717,7 +717,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437833,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -728,7 +728,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -743,7 +743,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437833,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -754,7 +754,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -769,7 +769,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437833,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -780,7 +780,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-495",
|
||||
"id": "rec-71c9c6746a31",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -795,7 +795,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759437833,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue