Skip to content

Change how errors are stored in the DB #1641

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

Merged
merged 2 commits into from
Jul 16, 2023

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Jul 6, 2023

Removes the error_series table, which was probably useless anyway, and adds a benchmark column to the error table instead. This will allow us to also store runtime errors in to the crate, e.g. under the name runtime:foo.

Tested this locally with both SQLite and Postgre. Old errors were migrated correctly and new errors were also recorded fine. Not sure for how long will the migration run, but hopefully there aren't that many errors in the database.

I had to create a new table in the migration, because it was not possible to drop the previous primary key.

@Kobzol Kobzol requested a review from Mark-Simulacrum July 6, 2023 11:12
@Mark-Simulacrum
Copy link
Member

Looks like CI is failing?

@Kobzol
Copy link
Contributor Author

Kobzol commented Jul 8, 2023

Thanks, fixed.

Kobzol added 2 commits July 12, 2023 22:20
Removes the `error_series` table, which was probably useless anyway, and adds a `benchmark` column to the `error` table instead. This will allow us to also store runtime errors in to the crate, e.g. under the name `runtime:foo`.
@Mark-Simulacrum Mark-Simulacrum merged commit 229bc65 into rust-lang:master Jul 16, 2023
@Kobzol Kobzol deleted the db-error branch July 17, 2023 05:32
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