mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-15 22:47:59 +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
|
@ -95,7 +95,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -110,7 +110,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -121,7 +121,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -136,7 +136,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -147,7 +147,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -162,7 +162,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -173,7 +173,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -188,7 +188,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -199,7 +199,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -214,7 +214,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -225,7 +225,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -240,7 +240,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -251,7 +251,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -266,7 +266,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -277,7 +277,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -292,7 +292,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -303,7 +303,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -318,7 +318,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -329,7 +329,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -344,7 +344,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -355,7 +355,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -370,7 +370,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -381,7 +381,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -396,7 +396,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -407,7 +407,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -422,7 +422,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -433,7 +433,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -448,7 +448,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -459,7 +459,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -474,7 +474,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -485,7 +485,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -500,7 +500,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -511,7 +511,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -526,7 +526,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -537,7 +537,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -552,7 +552,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -563,7 +563,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-72",
|
||||
"id": "rec-0ac2d8c6c619",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -578,7 +578,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368463,
|
||||
"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