Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore duplicate values in artifact_collection_duration in Postgre #1642

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Jul 6, 2023

Since #1637, we record artifact duration collection unconditionally, even if some benchmarks were skipped (and thus computed sometime before). SQLite was able to handle this, but Postgre errors out on a duplicate key.

This PR changes the behaviour of Postgre to also ignore the duplicate records. This situation actually shouldn't even happen on the server (unless we manually backfill runtime benchmarks for an already benchmarked artifact, which we will probably want to do for a few artifacts), but it would be nice if it was handled gracefully anyway.

@Mark-Simulacrum Mark-Simulacrum merged commit b8e388e into rust-lang:master Jul 10, 2023
@Kobzol Kobzol deleted the db-record-duration branch July 10, 2023 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants