How rocm/rocm-tests works
This is a pytest-based ROCm system test automation framework. The main flow is a contributor’s test run: session configuration and marker governance prepare the run, GPU discovery and scheduling allocate resources, an executor runs commands on the selected target, and plugins collect outcomes for reporting. The architecture also includes build support, health and recovery, remote-node management, and platform adapters. Some plugin internals and pytest wiring were not sampled; those capabilities and links are shown only where the README or source index supports them.
Main entry points: executors Executor Backends · reports_plugin.py Allure Reporting · node_pool.py Node Pool · remote_node_plugin.py Remote Node Plugin
Components 25
Run Governance
- Session Fixtures
framework/plugins/session_plugin.py - Framework Config
framework/config/loader.py - Marker Taxonomy
framework/markers/taxonomy.py - Marker Plugin
framework/plugins/markers_plugin.py
GPU Resources
- Dynamic Scheduler
framework/scheduling/dynamic_scheduler.py - Remote Node Plugin
framework/plugins/remote_node_plugin.py - Node Pool
framework/nodes/node_pool.py - GPU Detector
framework/gpu/detector.py - GPU Allocator
framework/gpu/allocator.py
Execution
- Executor Interface
framework/executors/abstract_executor.py - Executor Backends
framework/executors - Background Processes
framework/executors/background_process.py - Binary Builder
framework/builder/binary_builder.py - OS Adapters
framework/os_adapter
Quality and Results
- Health and Recovery
framework/plugins/health_plugin.py - Artifact Collection
framework/plugins/artifacts_plugin.py - Retry Harness
framework/plugins/retry_plugin.py - Allure Reporting
framework/plugins/reports_plugin.py - Allure Reporter
framework/reporting/allure_reporter.py - ClickHouse Results
framework/results/backends/clickhouse.py
ROCm Integration
- ROCm Libraries
framework/rocm/libs - AMD SMI Metrics
framework/rocm/libs/amd_smi.py - GitHub Actions API
build_tools/github_actions/github_actions_api.py
Other components
- Test Contributor
- Pytest Run
Connections 24
- Test Contributor → Pytest Run: starts tests
- Pytest Run → Session Fixtures: initializes fixtures
- Session Fixtures → Framework Config: loads config
framework/plugins/session_plugin.py - Pytest Run → Marker Plugin: collects markers
- Marker Plugin → Marker Taxonomy: reads profiles
framework/markers/taxonomy.py - Pytest Run → Dynamic Scheduler: schedules tests
- Remote Node Plugin → Node Pool: manages nodes
framework/plugins/remote_node_plugin.py - Node Pool → GPU Detector: discovers GPUs
framework/nodes/node_pool.py - Node Pool → GPU Allocator: allocates slots
framework/nodes/node_pool.py - Remote Node Plugin → Executor Backends: configures targets
framework/plugins/remote_node_plugin.py - Executor Interface → Background Processes: supports background runs
framework/executors/abstract_executor.py - Executor Backends → Executor Interface: implements interface
framework/executors/abstract_executor.py - Pytest Run → Executor Backends: runs commands
- Binary Builder → Executor Backends: runs compiler
framework/builder/binary_builder.py - Executor Backends → OS Adapters: uses platform adapter
framework/executors/container_executor.py - Health and Recovery → Executor Backends: checks target health
- Retry Harness → Artifact Collection: captures failures
- Allure Reporting → Marker Taxonomy: maps marker labels
framework/markers/taxonomy.py - Allure Reporting → Allure Reporter: produces reports
- Pytest Run → Allure Reporting: reports outcomes
- Executor Backends → ROCm Libraries: executes ROCm commands
framework/rocm/libs/amd_smi.py - GPU Detector → AMD SMI Metrics: enriches GPU data
framework/gpu/detector.py - Pytest Run → GitHub Actions API: integrates CI triggers
- Allure Reporting → ClickHouse Results