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

Support profile params in run configurations #1131

Merged
merged 7 commits into from
Apr 15, 2024

Conversation

r4victor
Copy link
Collaborator

@r4victor r4victor commented Apr 15, 2024

Closes #943.

This PR allows users to specify profile parameter in run configurations directly, for example:

type: dev-environment
ide: vscode
backends: ['gcp']
termination_idle_time: 1m

The profile parameters are merged in the following priority:

  1. dstack run arguments
  2. Run configuration parameters
  3. profile.yml parameters

TODO: the refactoring of Requirements/Profile/JobSpec to address the issues mentioned in #943 is to be done in a separate PR. The refactoring PR may require breaking backward compatibility. This PR is backward-compatible.

@r4victor r4victor marked this pull request as ready for review April 15, 2024 09:57
@r4victor r4victor force-pushed the issue_943_include_profiles_in_configurations branch from babe7cc to c0fc0eb Compare April 15, 2024 10:08
@r4victor r4victor merged commit 6b3709c into master Apr 15, 2024
15 checks passed
Bihan pushed a commit to SMTM-Capital/dstack that referenced this pull request Apr 30, 2024
* Include profile parameters in run configurations

* Use merged_profile

* Fix tests

* Fix fields descriptions

* Minor fixes

* Fix typing
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.

[UX] Allow the configuration YAML file to configure any option supported by .dstack/profiles.yml
1 participant