Skip to content

[rocprofiler-systems] Route test job through test_runner.py#5522

Draft
dileepr1 wants to merge 1 commit into
mainfrom
users/dravindr/tr_rocprofsys
Draft

[rocprofiler-systems] Route test job through test_runner.py#5522
dileepr1 wants to merge 1 commit into
mainfrom
users/dravindr/tr_rocprofsys

Conversation

@dileepr1
Copy link
Copy Markdown
Contributor

The literal-value env vars surface a new, generic env field on COMPONENT_OVERRIDES. Values are formatted via str.format() with a single {rocm_path} placeholder, which keeps the existing path-prepend mechanism untouched and is purely additive for other components.

Motivation

Add test filter standardisation for hipdnn.
This works with the companion PR ROCm/rocm-systems#6461

Technical Details

Switches the rocprofiler-systems entry in fetch_test_configurations.py from the bespoke test_rocprofiler_systems.py to the shared test_runner.py, completing the test-filter standardisation handoff for this component (paired with rocm-systems users/dravindr/tf_rocprofsys, which now emits quick / standard / comprehensive / full tier labels and a matching <tier>_exclude label via the pytest CTest hook).

Adds a COMPONENT_OVERRIDES entry for rocprofiler-systems that mirrors the legacy script's environment:

  • test_dir -> share/rocprofiler-systems/tests (where the generated CTestTestfile.cmake and the rocprofsys-tests.pyz live)
  • PATH prepended with bin so rocprof-sys-* / rocprofv3 resolve
  • LD_LIBRARY_PATH prepended with the examples lib dir
  • ROCPROFSYS_INSTALL_DIR and ROCPROFSYS_MAX_THREADS set explicitly

Test Plan

Confirm that rocprofiler-systems tests gets triggered through therock CI once ROCm/rocm-systems#6461 is merged.

Test Result

Submission Checklist

Switches the `rocprofiler-systems` entry in `fetch_test_configurations.py`
from the bespoke `test_rocprofiler_systems.py` to the shared
`test_runner.py`, completing the test-filter standardisation handoff for
this component (paired with rocm-systems `users/dravindr/tf_rocprofsys`,
which now emits `quick` / `standard` / `comprehensive` / `full` tier
labels and a matching `<tier>_exclude` label via the pytest CTest hook).

Adds a `COMPONENT_OVERRIDES` entry for `rocprofiler-systems` that mirrors
the legacy script's environment:
 - test_dir -> `share/rocprofiler-systems/tests` (where the generated
   `CTestTestfile.cmake` and the `rocprofsys-tests.pyz` live)
 - PATH prepended with `bin` so `rocprof-sys-*` / `rocprofv3` resolve
 - LD_LIBRARY_PATH prepended with the examples lib dir
 - `ROCPROFSYS_INSTALL_DIR` and `ROCPROFSYS_MAX_THREADS` set explicitly

The literal-value env vars surface a new, generic `env` field on
`COMPONENT_OVERRIDES`. Values are formatted via `str.format()` with a
single `{rocm_path}` placeholder, which keeps the existing path-prepend
mechanism untouched and is purely additive for other components.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: TODO

Development

Successfully merging this pull request may close these issues.

1 participant