Files
TheRock/rocm-systems/projects/rocprofiler-systems/tests/rocpd-validation-rules/python/python-source-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

106 lines
4.8 KiB
JSON

{
"required_tables": [
{
"commit": "Validation rules for python-builtin tests",
"name": "top",
"required_columns": [
"total_calls",
"total_duration",
"average",
"percentage"
],
"validation_queries": [
{
"comparison": "equals",
"description": "Verify that 'main_loop' has a total of 5 calls.",
"error_message": "'main_loop' does not have 5 total calls, as expected.",
"expected_result": 5,
"query": "SELECT total_calls FROM top WHERE name = 'main_loop';"
},
{
"comparison": "equals",
"description": "Verify that 'run' has a total of 3 calls.",
"error_message": "'run' does not have 3 total calls, as expected.",
"expected_result": 3,
"query": "SELECT total_calls FROM top WHERE name = 'run';"
},
{
"comparison": "equals",
"description": "Verify that 'inefficient' has a total of 3 calls.",
"error_message": "'inefficient' does not have 3 total calls, as expected.",
"expected_result": 3,
"query": "SELECT total_calls FROM top WHERE name = 'inefficient';"
},
{
"comparison": "equals",
"description": "Verify that '_sum' has a total of 3 calls.",
"error_message": "'_sum' does not have 3 total calls, as expected.",
"expected_result": 3,
"query": "SELECT total_calls FROM top WHERE name = '_sum';"
},
{
"comparison": "equals",
"description": "Verify that 'fib' has a total of 45 calls.",
"error_message": "'fib' does not have 45 total calls, as expected (5 iterations of run(5) descending through fib gives 3+6+12+18+6 = 45 frames).",
"expected_result": 45,
"query": "SELECT total_calls FROM top WHERE name = 'fib';"
},
{
"comparison": "equals",
"description": "Verify that percentages sum to 100.",
"error_message": "Percentages do not sum to 100.",
"expected_result": 100,
"query": "SELECT ROUND(SUM(percentage), 1) FROM top;"
}
]
},
{
"commit": "",
"name": "regions",
"required_columns": [
"id",
"guid",
"category",
"name"
],
"validation_queries": [
{
"comparison": "equals",
"description": "Verify that 'main_loop' has a total of 5 calls.",
"error_message": "'main_loop' does not have 5 total calls, as expected.",
"expected_result": 5,
"query": "SELECT COUNT(*) FROM regions WHERE name = 'main_loop';"
},
{
"comparison": "equals",
"description": "Verify that 'run' has a total of 3 calls.",
"error_message": "'run' does not have 3 total calls, as expected.",
"expected_result": 3,
"query": "SELECT COUNT(*) FROM regions WHERE name = 'run';"
},
{
"comparison": "equals",
"description": "Verify that 'inefficient' has a total of 3 calls.",
"error_message": "'inefficient' does not have 3 total calls, as expected.",
"expected_result": 3,
"query": "SELECT COUNT(*) FROM regions WHERE name = 'inefficient';"
},
{
"comparison": "equals",
"description": "Verify that '_sum' has a total of 3 calls.",
"error_message": "'_sum' does not have 3 total calls, as expected.",
"expected_result": 3,
"query": "SELECT COUNT(*) FROM regions WHERE name = '_sum';"
},
{
"comparison": "equals",
"description": "Verify that 'fib' has a total of 45 calls.",
"error_message": "'fib' does not have 45 total calls, as expected (5 iterations of run(5) descending through fib gives 3+6+12+18+6 = 45 frames).",
"expected_result": 45,
"query": "SELECT COUNT(*) FROM regions WHERE name = 'fib';"
}
]
}
]
}