Hnimrama/rundeck reports - #288
Conversation
d8c65af to
8637c59
Compare
Review: blocking issuesThe Run Deck framework itself is mostly additive and self-contained (the module-global 🔴 Reverts the documented dmesg-window fix — RCCL error detection silently drops the last minute of each test
The PR changes Fix: restore the 🔴 Reverts
|
|
@hnimra-amd , Please check if the changes in tests/rccl/ is intentional or by mistake. |
Emit viewer_config from sweep payloads, refactor the interactive viewer to read it, and remove RCCL reference profiles plus in-repo sample generators so suite owners add those locally.
Drop session publishing fixtures from RCCL suites and revert test_gen_graph to the existing AmCharts report path until suite owners add profiles.
Remove suite-specific JSON profiles and hooks from this branch. Engine tests use an inline generic sweep profile until dev/dtni lands suite profiles.
Extract publish helpers, remove duplicate inference publish shims, fix JSON profile resolution for pytest extras, and rewrite the platform-only README.
Restore per-test dmesg window semantics (:%S timestamps, till_end_flag=False) that were accidentally reverted when RCCL Run Deck wiring was removed. Also fix ruff formatting in publish_helpers, drop an unused import in pytest_extras, and remove internal dev/dtni notes from the Run Deck README.
- Replace functional render_cell_card_html() with CellCardConfig + CellCardRenderer - Eliminate code duplication and consolidate all logic in CellCardRenderer class - Update all call sites (pytest_extras, rundeck/cards, tests) to use OO API - Improve performance for Run Deck platform which renders many cells - Maintain backward compatibility for cell_card_css() function (still used) Benefits: - Single source of truth for cell card rendering logic - Better performance through renderer reuse (important for Run Deck) - Clean separation of configuration and rendering - Eliminated functional API reduces complexity Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Ignatious Johnson <ichristo@amd.com>
f65d4ed to
2e1eae0
Compare
cijohnson
left a comment
There was a problem hiding this comment.
Hi @hnimra-amd Overall the json interface and framework look good.
i have couple of minor comments related to rccl changed, also i have following recommendation.
-
unittests are using pytest, we decided to used unittest framework for UT's and pytest for the actual test suites. so that the run_all_unittests.py can discover only the unitests based UT's and run during "make test". Also the UT's has to be under respective dirs. refer AGENTS.md (if you can instruct your coding agent to refer AGENTS.md while writing UT's it will take care of it for you). Can you migrate the UT's to unittest framework please
-
I see functional programming style used in this cvs/report/* library, Can you please move to Object Oriented design, so that we no need to pass around a lot of args.
I have modified cvs/lib/report/render/cell_card.py to use Object Oriented design and have come with it own UT in this commit (2e1eae0 in your branch, you can use that as a reference and improve on it.
Convert all cvs/lib/report unit tests from pytest to unittest.TestCase and relocate them beside the modules they cover (rundeck/, viewer/, panels/, render/). Move shared fixtures to testing/fixtures.py so run_all_unittests.py discovers them via make ut. Refactor Run Deck publish path to object-oriented builders following the CellCardRenderer pattern: ViewerConfigBuilder, RundeckPayloadBuilder, SummaryMetaApplier, and RundeckPublisher. Module-level functions remain as thin wrappers for backward compatibility.
Use a nonexistent builder id for the missing-builder registry test, resolve cvs_results_dict in the pytest-hooks fixture mock, and wire generic_inference_report_config to the default run card builder so provenance link assertions match rendered HTML.
inferencex_atom_run_deck.html
inferencex_atom_run_deck.json
inferencex_atom_run_deck_viewer.html
rccl_perf_run_deck.html
rccl_perf_run_deck.json
vllm_run_deck.html
vllm_run_deck.json
vllm_run_deck_viewer.html