[rocprofiler-sdk] Fix formatting, linting, and CI workflows (#345)

* [rocprofiler-sdk] Fix formatting and lint workflows

- several formatting workflows were silently failing when listing files

* format metrics_test.h

* Improve formatting job robustness

* Source formatting workflow does not use container

* Use PyPi clang-format

* Format rocpd/source/csv.cpp source

* Fix rocprofiler-sdk CI workflow

- fix invalid context access

* Update run-ci.py

- fix ctest_update

* Update run-ci.py

- handle old checkout in ROCm/rocprofiler-sdk
Этот коммит содержится в:
Jonathan R. Madsen authored and GitHub committed 2025-08-14 00:02:23 -05:00
1 родитель e28900793b
Коммит 9df2c1ec68
6 files changed
+111 -269

No files matched your search

+6 -1
Просмотреть файл
@@ -237,6 +237,11 @@ def generate_dashboard_script(args):
STRICT_SUBMIT = 1 if args.require_cdash_submission else 0
ARGN = "${ARGN}"
SUBMIT_ERR = "${_cdash_submit_err}"
REPO_SOURCE_DIR = (
os.path.dirname(os.path.dirname((SOURCE_DIR)))
if not os.path.exists(os.path.join(SOURCE_DIR, ".git"))
else SOURCE_DIR
)
if args.memcheck == "ThreadSanitizer":
MEMCHECK = 0
@@ -279,7 +284,7 @@ def generate_dashboard_script(args):
_script += f"""
set(STAGES "{STAGES}")
ctest_start({DASHBOARD_MODE})
ctest_update(SOURCE "{SOURCE_DIR}" RETURN_VALUE _update_ret
ctest_update(SOURCE "{REPO_SOURCE_DIR}" RETURN_VALUE _update_ret
CAPTURE_CMAKE_ERROR _update_err)
ctest_configure(BUILD "{BINARY_DIR}" RETURN_VALUE _configure_ret)
dashboard_submit(PARTS Start Update Configure RETURN_VALUE _submit_ret)