Files
TheRock/rocm-systems/projects/rocprofiler-systems/tests/rocpd-validation-rules/transpose/cpu-metrics-rules.json
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

139 lines
6.0 KiB
JSON

{
"required_tables": [
{
"name": "pmc_info",
"required_columns": [
"id",
"guid",
"nid",
"pid",
"agent_abs_index",
"is_constant",
"is_derived",
"name",
"description",
"block",
"expression"
],
"validation_queries": [
{
"comparison": "equals",
"description": "Check for missing PMC names",
"error_message": "PMC entries are missing a name",
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_info_pmc WHERE name IS NULL OR name = ''"
},
{
"comparison": "equals",
"description": "Validate agent absolute index is non-negative",
"error_message": "Negative absolute_index found in agent metadata",
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_info_agent WHERE absolute_index < 0"
},
{
"comparison": "equals",
"description": "Check derived PMCs have expressions",
"error_message": "Derived PMC missing valid expression",
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_info_pmc WHERE is_derived = 1 AND (expression IS NULL OR expression = '')"
},
{
"comparison": "equals",
"description": "Validate description presence",
"error_message": "PMC entries missing description field",
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_info_pmc WHERE description IS NULL OR description = ''"
}
]
},
{
"name": "rocpd_pmc_event",
"required_columns": [
"id",
"guid",
"event_id",
"pmc_id",
"value",
"extdata"
],
"validation_queries": [
{
"comparison": "equals",
"description": "Check for NULL values in 'id'",
"error_message": "NULL value found in 'id' column",
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_pmc_event WHERE id IS NULL"
},
{
"comparison": "equals",
"description": "Check for NULL values in 'guid' where guid count > 3000",
"error_message": "NULL 'guid' found for guid values with more than 3000 occurrences",
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_pmc_event WHERE guid IS NULL AND (SELECT COUNT(*) FROM rocpd_pmc_event WHERE guid = rocpd_pmc_event.guid) > 3000"
},
{
"comparison": "equals",
"description": "Check for NULL values in 'event_id'",
"error_message": "NULL value found in 'event_id' column",
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_pmc_event WHERE event_id IS NULL"
},
{
"comparison": "equals",
"description": "Check for NULL values in 'pmc_id'",
"error_message": "NULL value found in 'pmc_id' column",
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_pmc_event WHERE pmc_id IS NULL"
}
]
},
{
"name": "rocpd_sample",
"required_columns": [
"id",
"guid",
"track_id",
"timestamp",
"event_id"
],
"validation_queries": [
{
"comparison": "equals",
"description": "Check for NULL values in 'id'",
"error_message": "NULL value found in 'id' column",
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_sample WHERE id IS NULL"
},
{
"comparison": "equals",
"description": "Check for NULL values in 'guid' where guid count > 3000",
"error_message": "NULL 'guid' found for guid values with more than 3000 occurrences",
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_sample WHERE guid IS NULL AND (SELECT COUNT(*) FROM rocpd_sample WHERE guid = rocpd_sample.guid) > 3000"
},
{
"comparison": "equals",
"description": "Check for NULL values in 'track_id'",
"error_message": "NULL value found in 'track_id' column",
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_sample WHERE track_id IS NULL"
},
{
"comparison": "equals",
"description": "Check for NULL values in 'timestamp'",
"error_message": "NULL value found in 'timestamp' column",
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_sample WHERE timestamp IS NULL"
},
{
"comparison": "equals",
"description": "Check for NULL values in 'event_id'",
"error_message": "NULL value found in 'event_id' column",
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_sample WHERE event_id IS NULL"
}
]
}
]
}