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
|
@ -21,7 +21,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl_2c653de2-afd4-4075-bc8d-8200562a191b",
|
||||
"id": "rec-3ef0f9aab128",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -36,7 +36,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1758326497,
|
||||
"created": 0,
|
||||
"model": "meta-llama-3.3-70b-instruct-121024",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -53,7 +53,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl_2c653de2-afd4-4075-bc8d-8200562a191b",
|
||||
"id": "rec-3ef0f9aab128",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -68,7 +68,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1758326497,
|
||||
"created": 0,
|
||||
"model": "meta-llama-3.3-70b-instruct-121024",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -85,7 +85,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl_2c653de2-afd4-4075-bc8d-8200562a191b",
|
||||
"id": "rec-3ef0f9aab128",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -100,7 +100,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1758326497,
|
||||
"created": 0,
|
||||
"model": "meta-llama-3.3-70b-instruct-121024",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -117,7 +117,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl_2c653de2-afd4-4075-bc8d-8200562a191b",
|
||||
"id": "rec-3ef0f9aab128",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -132,7 +132,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1758326497,
|
||||
"created": 0,
|
||||
"model": "meta-llama-3.3-70b-instruct-121024",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -149,7 +149,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl_2c653de2-afd4-4075-bc8d-8200562a191b",
|
||||
"id": "rec-3ef0f9aab128",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -164,7 +164,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1758326497,
|
||||
"created": 0,
|
||||
"model": "meta-llama-3.3-70b-instruct-121024",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -181,7 +181,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl_2c653de2-afd4-4075-bc8d-8200562a191b",
|
||||
"id": "rec-3ef0f9aab128",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -196,7 +196,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1758326497,
|
||||
"created": 0,
|
||||
"model": "meta-llama-3.3-70b-instruct-121024",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -213,7 +213,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl_2c653de2-afd4-4075-bc8d-8200562a191b",
|
||||
"id": "rec-3ef0f9aab128",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -228,7 +228,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1758326497,
|
||||
"created": 0,
|
||||
"model": "meta-llama-3.3-70b-instruct-121024",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -245,7 +245,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl_2c653de2-afd4-4075-bc8d-8200562a191b",
|
||||
"id": "rec-3ef0f9aab128",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -260,7 +260,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1758326497,
|
||||
"created": 0,
|
||||
"model": "meta-llama-3.3-70b-instruct-121024",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -277,7 +277,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl_2c653de2-afd4-4075-bc8d-8200562a191b",
|
||||
"id": "rec-3ef0f9aab128",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -292,7 +292,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1758326498,
|
||||
"created": 0,
|
||||
"model": "meta-llama-3.3-70b-instruct-121024",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
@ -309,7 +309,7 @@
|
|||
{
|
||||
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
||||
"__data__": {
|
||||
"id": "chatcmpl_2c653de2-afd4-4075-bc8d-8200562a191b",
|
||||
"id": "rec-3ef0f9aab128",
|
||||
"choices": [
|
||||
{
|
||||
"delta": {
|
||||
|
@ -324,7 +324,7 @@
|
|||
"logprobs": null
|
||||
}
|
||||
],
|
||||
"created": 1758326498,
|
||||
"created": 0,
|
||||
"model": "meta-llama-3.3-70b-instruct-121024",
|
||||
"object": "chat.completion.chunk",
|
||||
"service_tier": null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue