feat(hardware): add daily hardware aggregates recomputed from raw - #2037
Draft
alanpeixinho wants to merge 1 commit into
Draft
feat(hardware): add daily hardware aggregates recomputed from raw#2037alanpeixinho wants to merge 1 commit into
alanpeixinho wants to merge 1 commit into
Conversation
- Add hardware_daily_builds and hardware_daily_tests, keyed by the checkout's UTC day plus each grain's own origin and lab, so build and test counters can be filtered independently without counting a build once per test lab - Add recompute_hardware_daily, rewriting a day wholesale from checkouts, builds and tests: no dedupe state, idempotent, grain changes need no data migration - Label a platform with the longest compatible chain reported for it, shared by both tables, so a board is not listed once per lab that disagrees - Roll back a day that produced no rows, so pruned raw cannot erase an aggregate - Take an advisory lock per table and day, so the two schedules never rebuild the same day at once and collide on the primary key - Run it hourly over 2 days for freshness and nightly over 60 days to heal late arrivals, with a healthcheck id and docs for it - Cover the aggregation semantics with integration tests: boot and test split, dummy builds, one count per platform, compatibles, lab fallback, rerun, locked day and pruned raw - Leave hardware_status written and read as before Closes #2034 Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2034