ROCm / ROCm/Quartz

Database Schema Design (Phase 1 Design.3)

Open
#12 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1
Forks
1
Avg merge
3d 11h
Merged PRs (30d)
16

Description

Repo: ROCm/quartz
Phase: 1 Design
Labels: quartz, phase-1, design, database
Blocked by: Phase 1 Design: Data Extraction Spec
Parallel with: Phase 1 Design: status.json Schema
Blocks: Phase 1 A2 (Database Setup), Phase 1 B+C (insert_therock_data.py)

Context

Finalize the ClickHouse schema for therock_workflow_runs and therock_workflow_jobs
based on the agreed data extraction spec. The schema must capture all fields needed
for Grafana dashboards — target metrics should be agreed here before deployment.

Reference: RFC-0011 (ROCm/TheRock#3728 / docs/rfcs/RFC0011-Quartz-CICD-Datahub.md in ROCm/TheRock once merged) — Phase 1, Section A; Database Design.

It needs the following rework before it can be used:

  • Replace updated_at as the ReplacingMergeTree version column with version UInt64
    computed as run_attempt * 2 + signal_type (0 = START, 1 = FINISH)
  • Only therock_workflow_* tables have been reviewed — other tables are still
    only AI-generated and need reviewing

Tasks

  • Review the existing schema draft against the agreed data extraction spec
  • Finalize column definitions and types for therock_workflow_runs and
    therock_workflow_jobs
  • Confirm ReplacingMergeTree deduplication strategy (version UInt64)
  • Agree on target Grafana metrics to ensure the right columns and granularity are
    captured
  • Review and finalize or discard AI-generated tables beyond therock_workflow_*
  • Produce final schema SQL to be deployed in Phase 1 A2 and added to Terraform
    later

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading RFC-0011, especially Phase 1 Section A and the agreed data extraction spec, then review the existing schema draft for the therock_workflow_runs and therock_workflow_jobs tables. Resolve the version-based ReplacingMergeTree strategy and required Grafana metrics, review the other AI-generated tables, and finish with deployable schema SQL for Phase 1 A2 and later Terraform integration.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.