mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-14 14:27:58 +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
|
@ -74,7 +74,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-777",
|
||||
"id": "rec-669968ea617e",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -89,7 +89,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368379,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -100,7 +100,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-777",
|
||||
"id": "rec-669968ea617e",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -115,7 +115,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368379,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -126,7 +126,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-777",
|
||||
"id": "rec-669968ea617e",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -141,7 +141,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368379,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -152,7 +152,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-777",
|
||||
"id": "rec-669968ea617e",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -167,7 +167,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368379,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -178,7 +178,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-777",
|
||||
"id": "rec-669968ea617e",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -193,7 +193,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368379,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -204,7 +204,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-777",
|
||||
"id": "rec-669968ea617e",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -219,7 +219,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368379,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -230,7 +230,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-777",
|
||||
"id": "rec-669968ea617e",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -245,7 +245,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368379,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -256,7 +256,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-777",
|
||||
"id": "rec-669968ea617e",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -271,7 +271,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368379,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -282,7 +282,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-777",
|
||||
"id": "rec-669968ea617e",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -297,7 +297,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368379,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -308,7 +308,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-777",
|
||||
"id": "rec-669968ea617e",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -323,7 +323,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368379,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -334,7 +334,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-777",
|
||||
"id": "rec-669968ea617e",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -349,7 +349,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368379,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -360,7 +360,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-777",
|
||||
"id": "rec-669968ea617e",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -375,7 +375,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368379,
|
||||
"created": 0,
|
||||
"model": "llama3.2:3b-instruct-fp16",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -386,7 +386,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl-777",
|
||||
"id": "rec-669968ea617e",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -401,7 +401,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1759368379,
|
||||
"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