[API] Add programmable experiment execution and results - #1049
Draft
podkidyshev wants to merge 3 commits into
Draft
podkidyshev wants to merge 3 commits into
podkidyshev wants to merge 3 commits into
Conversation
Signed-off-by: Ivan Podkidyshev <ipodkidyshev@nvidia.com>
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueComment |
Signed-off-by: Ivan Podkidyshev <ipodkidyshev@nvidia.com>
Signed-off-by: Ivan Podkidyshev <ipodkidyshev@nvidia.com>
This branch has not been deployed
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.
Summary
cloudai.api.run_experiment,validate_scenario,list_experiments, andget_experiment. Accept TOML text or configuration file paths and return the existing experiment model.wait=False. Persist results, configuration supplied as text, and background controller logs under a unique experiment directory.cloudai.handlers; move argument adapters, signal registration, console listing, and bulk config verification into the CLI. Preserve public legacy CLI handler interfaces with deprecation warnings.Test Plan
cloudai run; it exited successfully and reported the case as passed.get_experiment: both retained their completed status and 36 case metrics; the DSE result retained its recommendation. No new cluster jobs were submitted.Manual smoke output:
Additional Notes
Second PR in the programmable API series, based on #1046. That PR contains the mechanical handler-module move.
For scenario/system inputs,
strmeans TOML content andPathmeans a file. Forget_experiment, both types mean a result directory or JSON file path. Background workers load installed plugins in a fresh process; in-memory registrations in the caller are not transferred.