-
Notifications
You must be signed in to change notification settings - Fork 76
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
Revamp how CDash removes old data #2093
Labels
Comments
It's worth noting that some tables like the banner table contain "global" rows (using the project ID 0, for example), which makes it more difficult than it initially appears. Great work putting together this list though! I'll gradually work though it as I have time. |
This was referenced Sep 20, 2024
github-merge-queue bot
pushed a commit
that referenced
this issue
Sep 24, 2024
In support of #2093, this PR adds foreign-key constraints to each of the label pivot tables, as well as a multitude of missing indexes.
github-merge-queue bot
pushed a commit
that referenced
this issue
Sep 27, 2024
This PR adds a foreign-key constraint to the `dynamicanalysisdefect` table, as well as associated indexing, in support of #2093. Dynamic analysis results are now cleaned up 100% automatically when their associated build results are removed.
github-merge-queue bot
pushed a commit
that referenced
this issue
Nov 4, 2024
This continues our ongoing effort described in #2093 to add foreign-key constraints wherever possible for better data integrity.
zackgalbreath
added a commit
that referenced
this issue
Nov 18, 2024
This PR adds a foreign-key constraint to the `configureerror` table in support of #2093.
github-merge-queue bot
pushed a commit
that referenced
this issue
Nov 18, 2024
This PR adds a foreign-key constraint to the `configureerror` table in support of #2093.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature Request
How can we make CDash better?
PRs #1655, #1656, and #1657 added foreign keys to many of CDash's tables, helping to protect our data integrity & make sure that old data gets deleted automatically when it is no longer referenced.
I audited the rest of CDash's tables and came up with the following list of recommendations.
Unused tables we could probably drop without impacting existing functionality
Tables that would benefit from foreign keys
Tables whose rows contain a timestamp that could be used for periodic deletion
It's worth noting here that the following tables are already cleaned up in
addDailyChanges()
:Shared data that could be deleted by periodic
NOT IN (...)
queries:Many of these tables are already being handled through clever queries in
remove_builds()
but if a row somehow "slips through the cracks" it currently requires manual intervention to delete it later on.Functionality to more generally reconsider:
The text was updated successfully, but these errors were encountered: