Repository navigation
refactor(rocprofiler-compute): Extract shared HTML report shell - #12529
Merged
vedithal-amd merged 5 commits intoOct 19, 2026
Merged
vedithal-amd merged 5 commits into
vedithal-amd merged 5 commits into
Conversation
4 tasks done
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
JSON embedding remains vulnerable to script parser state changes, and NumPy booleans cannot be serialized.
Review effort: Balanced
Findings: 1
Open (2)
What changed in this PR
Extracts a reusable standalone HTML report shell and migrates the roofline report to it.
Changes:
- Adds shared document, asset, JSON, model, and theme utilities.
- Refactors roofline HTML generation to use the shared shell.
- Adds unit tests and registers them with CTest categories.
| File | Description |
|---|---|
CMakeLists.txt |
Registers shared-shell tests. |
src/utils/html_report/__init__.py |
Defines the utility package. |
src/utils/html_report/document.py |
Implements shared document assembly. |
src/utils/html_report/assets/report_shell.html |
Provides the common HTML frame. |
src/utils/html_report/assets/report_base.js |
Provides shared model and theme handling. |
src/roofline/roofline_html.py |
Migrates roofline document generation. |
src/roofline/assets/roofline_plot.html |
Reduces the template to body content. |
src/roofline/assets/roofline_plot.js |
Uses shared model and theme APIs. |
src/roofline/assets/roofline_plot.css |
Adopts the shared theme class. |
tests/unit/utils/test_html_report.py |
Tests shared report utilities. |
tests/unit/roofline/test_roofline_main.py |
Updates roofline integration tests. |
tests/test_categories.yaml |
Adds the new test to test tiers. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
vedithal-amd
requested changes
Oct 15, 2026
- Remove the model id check; every caller passes a hard-coded id. - Test shell behavior (title escaping, fragment order, dark theme, JSON escaping) instead of exact template text. - Remove the Plotly bundle and missing-file tests. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Contributor
|
Pushed a small follow-up: removed the model id check (callers pass hard-coded ids), trimmed the shell tests to behavior instead of exact template text, and dropped the Plotly bundle and missing-file tests. |
- Route the roofline kernel list tooltip assets from #12190 through build_document. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
vedithal-amd
deleted the
users/abchoudh/aiprofcomp-868/1-html-report-shell
branch
October 19, 2026 22:09
vedithal-amd
added a commit
that referenced
this pull request
Oct 19, 2026
## Motivation The memory chart HTML work in [AIPROFCOMP-868](https://amd-hub.atlassian.net/browse/AIPROFCOMP-868) needs report controls and panels that can be styled consistently. This refactor builds on #12529 and keeps the roofline page appearance. ## Technical Details - Move common report layout, panel, control, and theme styles into a shared base stylesheet. - Rename the generic roofline CSS classes and variables to report names while keeping roofline-only rules local. - Keep roofline element IDs and controls compatible with its existing JavaScript and tests. ## JIRA ID JIRA ID: AIPROFCOMP-868 ## Test Plan - [x] Run ctest for the roofline main, roofline analyze, and HTML report targets. - [x] Run workload: Open a generated two-kernel roofline page offline and verify theme, selection, Ctrl-click, Show all, and PNG export. ## Test Result - [x] ctest for the roofline main, roofline analyze, and HTML report targets pass ## Submission Checklist - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. [AIPROFCOMP-868]: https://amd-hub.atlassian.net/browse/AIPROFCOMP-868?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Vignesh Edithal <Vignesh.Edithal@amd.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
vedithal-amd
added a commit
that referenced
this pull request
Oct 25, 2026
The memory chart HTML work needs a shared report frame. This refactor moves the existing roofline page onto that frame while keeping its model and controls. - Move document assembly, asset loading, and script-safe JSON embedding into shared HTML report utilities. - Keep the roofline plot fragment and page assets while the shared shell supplies the document frame and theme setup. - Register shared-shell unit coverage alongside the existing roofline tests. JIRA ID: AIPROFCOMP-868 - [x] Run ctest for the roofline main, roofline analyze, and HTML report targets. - [X] ctest for the roofline main, roofline analyze, and HTML report targets pass - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. [AIPROFCOMP-868]: https://amd-hub.atlassian.net/browse/AIPROFCOMP-868?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Vignesh Edithal <Vignesh.Edithal@amd.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
vedithal-amd
added a commit
that referenced
this pull request
Oct 25, 2026
## Motivation The memory chart HTML work in [AIPROFCOMP-868](https://amd-hub.atlassian.net/browse/AIPROFCOMP-868) needs report controls and panels that can be styled consistently. This refactor builds on #12529 and keeps the roofline page appearance. ## Technical Details - Move common report layout, panel, control, and theme styles into a shared base stylesheet. - Rename the generic roofline CSS classes and variables to report names while keeping roofline-only rules local. - Keep roofline element IDs and controls compatible with its existing JavaScript and tests. ## JIRA ID JIRA ID: AIPROFCOMP-868 ## Test Plan - [x] Run ctest for the roofline main, roofline analyze, and HTML report targets. - [x] Run workload: Open a generated two-kernel roofline page offline and verify theme, selection, Ctrl-click, Show all, and PNG export. ## Test Result - [x] ctest for the roofline main, roofline analyze, and HTML report targets pass ## Submission Checklist - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. [AIPROFCOMP-868]: https://amd-hub.atlassian.net/browse/AIPROFCOMP-868?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Vignesh Edithal <Vignesh.Edithal@amd.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
vedithal-amd
added a commit
that referenced
this pull request
Oct 26, 2026
The memory chart HTML work needs a shared report frame. This refactor moves the existing roofline page onto that frame while keeping its model and controls. - Move document assembly, asset loading, and script-safe JSON embedding into shared HTML report utilities. - Keep the roofline plot fragment and page assets while the shared shell supplies the document frame and theme setup. - Register shared-shell unit coverage alongside the existing roofline tests. JIRA ID: AIPROFCOMP-868 - [x] Run ctest for the roofline main, roofline analyze, and HTML report targets. - [X] ctest for the roofline main, roofline analyze, and HTML report targets pass - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. [AIPROFCOMP-868]: https://amd-hub.atlassian.net/browse/AIPROFCOMP-868?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Vignesh Edithal <Vignesh.Edithal@amd.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
vedithal-amd
added a commit
that referenced
this pull request
Oct 26, 2026
## Motivation The memory chart HTML work in [AIPROFCOMP-868](https://amd-hub.atlassian.net/browse/AIPROFCOMP-868) needs report controls and panels that can be styled consistently. This refactor builds on #12529 and keeps the roofline page appearance. ## Technical Details - Move common report layout, panel, control, and theme styles into a shared base stylesheet. - Rename the generic roofline CSS classes and variables to report names while keeping roofline-only rules local. - Keep roofline element IDs and controls compatible with its existing JavaScript and tests. ## JIRA ID JIRA ID: AIPROFCOMP-868 ## Test Plan - [x] Run ctest for the roofline main, roofline analyze, and HTML report targets. - [x] Run workload: Open a generated two-kernel roofline page offline and verify theme, selection, Ctrl-click, Show all, and PNG export. ## Test Result - [x] ctest for the roofline main, roofline analyze, and HTML report targets pass ## Submission Checklist - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. [AIPROFCOMP-868]: https://amd-hub.atlassian.net/browse/AIPROFCOMP-868?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Vignesh Edithal <Vignesh.Edithal@amd.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
lamikr
pushed a commit
that referenced
this pull request
Oct 27, 2026
The memory chart HTML work needs a shared report frame. This refactor moves the existing roofline page onto that frame while keeping its model and controls. - Move document assembly, asset loading, and script-safe JSON embedding into shared HTML report utilities. - Keep the roofline plot fragment and page assets while the shared shell supplies the document frame and theme setup. - Register shared-shell unit coverage alongside the existing roofline tests. JIRA ID: AIPROFCOMP-868 - [x] Run ctest for the roofline main, roofline analyze, and HTML report targets. - [X] ctest for the roofline main, roofline analyze, and HTML report targets pass - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. [AIPROFCOMP-868]: https://amd-hub.atlassian.net/browse/AIPROFCOMP-868?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Vignesh Edithal <Vignesh.Edithal@amd.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
lamikr
pushed a commit
that referenced
this pull request
Oct 27, 2026
## Motivation The memory chart HTML work in [AIPROFCOMP-868](https://amd-hub.atlassian.net/browse/AIPROFCOMP-868) needs report controls and panels that can be styled consistently. This refactor builds on #12529 and keeps the roofline page appearance. ## Technical Details - Move common report layout, panel, control, and theme styles into a shared base stylesheet. - Rename the generic roofline CSS classes and variables to report names while keeping roofline-only rules local. - Keep roofline element IDs and controls compatible with its existing JavaScript and tests. ## JIRA ID JIRA ID: AIPROFCOMP-868 ## Test Plan - [x] Run ctest for the roofline main, roofline analyze, and HTML report targets. - [x] Run workload: Open a generated two-kernel roofline page offline and verify theme, selection, Ctrl-click, Show all, and PNG export. ## Test Result - [x] ctest for the roofline main, roofline analyze, and HTML report targets pass ## Submission Checklist - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. [AIPROFCOMP-868]: https://amd-hub.atlassian.net/browse/AIPROFCOMP-868?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Vignesh Edithal <Vignesh.Edithal@amd.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Motivation
The memory chart HTML work needs a shared report frame. This refactor moves the existing roofline page onto that frame while keeping its model and controls.
Technical Details
JIRA ID
JIRA ID: AIPROFCOMP-868
Test Plan
Test Result
Submission Checklist