Skip to content
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

Merge local and remote runs #39

Merged
merged 15 commits into from
Jan 27, 2025
Merged

Merge local and remote runs #39

merged 15 commits into from
Jan 27, 2025

Conversation

ThierryCantin-Demers
Copy link
Contributor

This PR merges the local and remote training commands.
It is now required for the git repo to not be dirty before packaging or running a project.
Project versions are now commit hashes instead of auto-incrementing numbers returned by heat.

Requires the corresponding PR in heat to be merged to work: https://github.com/tracel-ai/heat/pull/100

crates/heat-sdk-cli/src/cli_commands/run/training.rs Outdated Show resolved Hide resolved
crates/heat-sdk-cli/src/cli_commands/run/training.rs Outdated Show resolved Hide resolved
crates/heat-sdk-cli/src/cli_commands/run/training.rs Outdated Show resolved Hide resolved
examples/guide-cli/README.md Outdated Show resolved Hide resolved
examples/guide-cli/README.md Outdated Show resolved Hide resolved
Fix problems linked to PR
Copy link
Member

@syl20bnr syl20bnr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, see my comment on the project version argument. Feel free to apply it or not depending on what you both prefer.

(Some(_), Some(_)) => remote_run(args, context),
(None, None) => local_run(args, context),
(Some(_), None) => Err(anyhow::anyhow!("You must provide the project version to run on the runner with --version argument")),
(None, Some(_)) => Err(anyhow::anyhow!("Project version is ignored when executing locally (i.e. no runner is defined with --runner argument"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can make it just a warning and continue executing locally.
The message can be tweaked like that:
"Project version is ignored when executing locally (i.e. no runner is defined with --runner argument). Running locally uses the current version on the local machine."

@syl20bnr syl20bnr merged commit 284a908 into main Jan 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants