-
Notifications
You must be signed in to change notification settings - Fork 121
: config: add python support for configuration variable types #2184
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
Open
shayne-fletcher
wants to merge
3
commits into
meta-pytorch:main
Choose a base branch
from
shayne-fletcher:export-D89555029
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
: config: add python support for configuration variable types #2184
shayne-fletcher
wants to merge
3
commits into
meta-pytorch:main
from
shayne-fletcher:export-D89555029
Conversation
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
|
@shayne-fletcher has exported this pull request. If you are a Meta employee, you can view the originating Diff in D89555029. |
shayne-fletcher
added a commit
to shayne-fletcher/monarch-1
that referenced
this pull request
Dec 19, 2025
…ytorch#2184) Summary: Pull Request resolved: meta-pytorch#2184 Differential Revision: D89555029
39a09d4 to
5705103
Compare
…tencies (meta-pytorch#2182) Summary: key change here is precedence: Env wins over ClientOverride. everything else is cleanup to make the code and docs say the same thing and to reduce the chance we "remember" the wrong order later. tests are updated to encode the new behavior. Reviewed By: mariusae Differential Revision: D89551496
Summary: fill in a few missing tests Differential Revision: D89553139
…ytorch#2184) Summary: this adds python-side config support for a couple of additional rust types. specifically, it introduces `PyEncoding` to bridge string values onto `hyperactor::data::Encoding`, and `PyPortRange` to bridge python `(start, end)` tuples or `"start..end"` strings onto `Range<u16>`. both are wired into `declare_py_config_type!` so they work with `monarch.configure(...)`, and the new tests cover parsing, validation, and round-tripping for the supported formats. Differential Revision: D89555029
5705103 to
f7566dc
Compare
shayne-fletcher
added a commit
to shayne-fletcher/monarch-1
that referenced
this pull request
Dec 19, 2025
…ytorch#2184) Summary: this adds python-side config support for a couple of additional rust types. specifically, it introduces `PyEncoding` to bridge string values onto `hyperactor::data::Encoding`, and `PyPortRange` to bridge python `(start, end)` tuples or `"start..end"` strings onto `Range<u16>`. both are wired into `declare_py_config_type!` so they work with `monarch.configure(...)`, and the new tests cover parsing, validation, and round-tripping for the supported formats. Differential Revision: D89555029
shayne-fletcher
added a commit
to shayne-fletcher/monarch-1
that referenced
this pull request
Dec 19, 2025
…ytorch#2184) Summary: this adds python-side config support for a couple of additional rust types. specifically, it introduces `PyEncoding` to bridge string values onto `hyperactor::data::Encoding`, and `PyPortRange` to bridge python `(start, end)` tuples or `"start..end"` strings onto `Range<u16>`. both are wired into `declare_py_config_type!` so they work with `monarch.configure(...)`, and the new tests cover parsing, validation, and round-tripping for the supported formats. Differential Revision: D89555029
shayne-fletcher
added a commit
to shayne-fletcher/monarch-1
that referenced
this pull request
Dec 19, 2025
…ytorch#2184) Summary: this adds python-side config support for a couple of additional rust types. specifically, it introduces `PyEncoding` to bridge string values onto `hyperactor::data::Encoding`, and `PyPortRange` to bridge python `(start, end)` tuples or `"start..end"` strings onto `Range<u16>`. both are wired into `declare_py_config_type!` so they work with `monarch.configure(...)`, and the new tests cover parsing, validation, and round-tripping for the supported formats. Differential Revision: D89555029
shayne-fletcher
added a commit
to shayne-fletcher/monarch-1
that referenced
this pull request
Dec 19, 2025
…ytorch#2184) Summary: this adds python-side config support for a couple of additional rust types. specifically, it introduces `PyEncoding` to bridge string values onto `hyperactor::data::Encoding`, and `PyPortRange` to bridge python `(start, end)` tuples or `"start..end"` strings onto `Range<u16>`. both are wired into `declare_py_config_type!` so they work with `monarch.configure(...)`, and the new tests cover parsing, validation, and round-tripping for the supported formats. Differential Revision: D89555029
shayne-fletcher
added a commit
to shayne-fletcher/monarch-1
that referenced
this pull request
Dec 19, 2025
…ytorch#2184) Summary: this adds python-side config support for a couple of additional rust types. specifically, it introduces `PyEncoding` to bridge string values onto `hyperactor::data::Encoding`, and `PyPortRange` to bridge python `(start, end)` tuples or `"start..end"` strings onto `Range<u16>`. both are wired into `declare_py_config_type!` so they work with `monarch.configure(...)`, and the new tests cover parsing, validation, and round-tripping for the supported formats. Differential Revision: D89555029
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
Differential Revision: D89555029