Repository navigation
[Reporting] Unified output for standalone scenarios #1030
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
811e2a7
Add unified results for completed Slurm scenarios
podkidyshev 74bbcf9
Emit UTC timestamps from Slurm CLI accounting
podkidyshev e36f303
Replace Slurm output implementation with an experiment output skeleton
podkidyshev 6617fbf
Connect experiment output skeleton to runner lifecycle hooks
podkidyshev 41fb521
Revert skeleton documentation changes
podkidyshev e510f50
Implement experiment output collection and snapshot writing
podkidyshev d1128c4
Use module imports in experiment output
podkidyshev 5221d9e
Keep only full experiment output
podkidyshev f385e05
Leave test metric summaries to callers
podkidyshev 7267054
Generate experiment output for standalone runs
podkidyshev 4dae835
Create experiment output for all runners
podkidyshev 586d146
Write experiment output for dry runs
podkidyshev 2218b7b
Remove experiment output write wrapper
podkidyshev 7e61469
Validate unified output in dry runs
podkidyshev c605659
Test unified experiment output
podkidyshev 4cde48f
Update standalone copyright years
podkidyshev f915e1b
Compare complete experiment output in tests
podkidyshev eec2517
Clarify experiment output docs and use module imports
podkidyshev 0982142
Trim experiment output documentation
podkidyshev d7f6ec4
Record configured system in experiment output
podkidyshev 282cf1d
Set completed output durations at the source
podkidyshev 474e909
Select case metrics from a single completed run
podkidyshev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| # SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES | ||
| # Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| import datetime | ||
| from typing import Literal | ||
|
|
||
| import pydantic | ||
|
|
||
| Status = Literal["pending", "running", "completed", "failed", "cancelled", "unknown"] | ||
|
|
||
|
|
||
| class Dimension(pydantic.BaseModel): | ||
| """One coordinate of a metric measurement.""" | ||
|
|
||
| name: str | ||
| value: str | ||
| unit: str = "" | ||
| is_x: bool = False | ||
|
|
||
|
|
||
| class Metric(pydantic.BaseModel): | ||
| """A canonical measurement at a dimension point.""" | ||
|
|
||
| name: str | ||
| value: str | int | pydantic.FiniteFloat | bool | ||
| unit: str = "" | ||
| dimensions: list[Dimension] = pydantic.Field(default_factory=list) | ||
|
|
||
|
|
||
| class Run(pydantic.BaseModel): | ||
| """A logical execution with normalized metadata and original measurements.""" | ||
|
|
||
| path: str | ||
| jobid: str | ||
| status: Status = "unknown" | ||
| metrics: list[Metric] = pydantic.Field(default_factory=list) | ||
| start: datetime.datetime | None = None | ||
| finish: datetime.datetime | None = None | ||
| duration: pydantic.FiniteFloat | None = None | ||
| iteration: int | None = None | ||
| step: int | None = None | ||
|
|
||
|
|
||
| class DSE(pydantic.BaseModel): | ||
| """Search space and recommendation for one test case.""" | ||
|
|
||
| space: dict[str, list[str | int | pydantic.FiniteFloat]] | ||
| best_config: dict[str, str | int | pydantic.FiniteFloat] | None = None | ||
| best_step: int | None = None | ||
|
|
||
|
|
||
| class Test(pydantic.BaseModel): | ||
| """A test case with all logical executions and optional DSE metadata.""" | ||
|
|
||
| id: str | ||
| name: str | ||
| description: str | None = None | ||
| status: Status = "pending" | ||
| path: str | ||
| metrics: list[Metric] = pydantic.Field(default_factory=list) | ||
| runs: list[Run] = pydantic.Field(default_factory=list) | ||
| dse: DSE | None = None | ||
|
|
||
|
|
||
| class Experiment(pydantic.BaseModel): | ||
|
jj10306 marked this conversation as resolved.
|
||
| """Full snapshot spanning the entire scenario, including all DSE trials.""" | ||
|
|
||
| id: str | ||
| name: str | ||
|
podkidyshev marked this conversation as resolved.
|
||
| system_name: str | ||
| description: str | None = None | ||
| status: Status = "pending" | ||
| path: str | ||
| start: datetime.datetime | None = None | ||
| finish: datetime.datetime | None = None | ||
| duration: pydantic.FiniteFloat | None = None | ||
| tests: list[Test] = pydantic.Field(default_factory=list) | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.