Skip to content

Conversation

@ashwinb
Copy link
Contributor

@ashwinb ashwinb commented Sep 10, 2025

What does this PR do?

Duplicate chat completion IDs can be generated during tests especially if they are replaying recorded responses across different tests. No need to warn or error under those circumstances. In the wild, this is not likely to happen at all (no evidence) so we aren't really hiding any problem.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 10, 2025
Copy link
Contributor Author

ashwinb commented Sep 10, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

table="chat_completions",
data=record_data,
)
except IntegrityError as e:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a comment inline here with the motivation in the summary?

@ashwinb
Copy link
Contributor Author

ashwinb commented Sep 10, 2025

cc @derekhiggins this should help you as well

@ashwinb ashwinb merged commit 0c7f494 into main Sep 10, 2025
25 checks passed
@ashwinb ashwinb deleted the inf_store branch September 10, 2025 21:34
@derekhiggins
Copy link
Contributor

cc @derekhiggins this should help you as well

Yup, I've removed the patch I had to handle this from #3128

iamemilio pushed a commit to iamemilio/llama-stack that referenced this pull request Sep 24, 2025
…astack#3408)

# What does this PR do?

Duplicate chat completion IDs can be generated during tests especially
if they are replaying recorded responses across different tests. No need
to warn or error under those circumstances. In the wild, this is not
likely to happen at all (no evidence) so we aren't really hiding any
problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants