Skip to content

Hide test output details behind view - #4001

Merged
josephsnyder merged 1 commit into
Kitware:masterfrom
williamjallen:test-view
Sep 18, 2026
Merged

josephsnyder merged 1 commit into
Kitware:masterfrom
williamjallen:test-view

Conversation

@williamjallen

Copy link
Copy Markdown
Collaborator

CDash currently stores all tests in a build2test table, with test output stored deduplicated in a separate testoutput table. The deduplication step currently relies on the output being selective enough to identify entire unique (path,command,output) tuples, which is not always the case. Since Postgres doesn't support composite hash indexes and the data is too big for b-tree indexes (and other index types), we don't have an efficient way to look up unique tuples. This PR adds a new index on the hash of the data, as well as a view to hide the implementation details of the deduplication process. This PR was designed for maximum compatibility, but I intend to follow this with a series of refactors to gradually remove all application-level references to the build2test and testoutput tables.

CDash currently stores all tests in a `build2test` table, with test output stored deduplicated in a separate `testoutput` table.  The deduplication step currently relies on the `output` being selective enough to identify entire unique `(path,command,output)` tuples, which is not always the case.  Since Postgres doesn't support composite hash indexes and the data is too big for b-tree indexes (and other index types), we don't have an efficient way to look up unique tuples.  This PR adds a new index on the hash of the data, as well as a view to hide the implementation details of the deduplication process.  This PR was designed for maximum compatibility, but I intend to follow this with a series of refactors to gradually remove all application-level references to the `build2test` and `testoutput` tables.
@josephsnyder
josephsnyder added this pull request to the merge queue Sep 18, 2026
Merged via the queue into Kitware:master with commit 7244fab Sep 18, 2026
7 checks passed
@williamjallen
williamjallen deleted the test-view branch September 19, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants