Skip to content

Conversation

@c00w
Copy link
Contributor

@c00w c00w commented Oct 23, 2024

Stack from ghstack (oldest at bottom):

This teaches install_config_module (and the underlying code) to
understands Config objects. Additionally we've added a JK option to this
which resolves the JK.

This config gets stored within the _ConfigEntry class and is evaluated
when getattr is called. If justknobs is set, it'll call
justknobs_check to see the result.

Due to preceeding work, basically everything works correctly here and we
had to update a couple of tests, and modify the getattr behaviour.

Note that we are updating the justknob_check function to support a
default option, to make default work.

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 23, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/138766

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit d1aa4ef with merge base 5e4c8b6 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

c00w added 2 commits October 23, 2024 17:03
[ghstack-poisoned]
[ghstack-poisoned]
c00w added 4 commits October 25, 2024 15:03
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@ezyang
Copy link
Contributor

ezyang commented Oct 28, 2024

Seems fine, looks like you need to fix some brainos

[ghstack-poisoned]
c00w added a commit to c00w/pytorch that referenced this pull request Oct 29, 2024
This teaches install_config_module (and the underlying code) to
understands Config objects. Additionally we've added a JK option to this
which resolves the JK.

This config gets stored within the _ConfigEntry class and is evaluated
when __getattr__ is called. If justknobs is set, it'll call
justknobs_check to see the result.

Due to preceeding work, basically everything works correctly here and we
had to update a couple of tests, and modify the getattr behaviour.

Note that we are updating the justknob_check function to support a
default option, to make default work.

ghstack-source-id: f52fb77
Pull Request resolved: pytorch#138766
@c00w c00w added the topic: not user facing topic category label Oct 29, 2024
c00w added 2 commits October 29, 2024 15:11
[ghstack-poisoned]
[ghstack-poisoned]
@c00w
Copy link
Contributor Author

c00w commented Oct 31, 2024

Accidentally merged a second PR in somehow, undoing.

c00w added 2 commits October 31, 2024 16:11
[ghstack-poisoned]
[ghstack-poisoned]
@c00w
Copy link
Contributor Author

c00w commented Oct 31, 2024

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 1 mandatory check(s) failed. The first few are:

Dig deeper by viewing the failures on hud

Details for Dev Infra team Raised by workflow job

Failing merge rule: Core Maintainers

[ghstack-poisoned]
@c00w
Copy link
Contributor Author

c00w commented Nov 1, 2024

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

rahulsingh-intel pushed a commit to rahulsingh-intel/pytorch that referenced this pull request Nov 5, 2024
This teaches install_config_module (and the underlying code) to
understands Config objects. Additionally we've added a JK option to this
which resolves the JK.

This config gets stored within the _ConfigEntry class and is evaluated
when __getattr__ is called. If justknobs is set, it'll call
justknobs_check to see the result.

Due to preceeding work, basically everything works correctly here and we
had to update a couple of tests, and modify the getattr behaviour.

Note that we are updating the justknob_check function to support a
default option, to make default work.
Pull Request resolved: pytorch#138766
Approved by: https://github.com/ezyang
pytorchmergebot pushed a commit that referenced this pull request Nov 6, 2024
This allows Configs to handle setting their defaults (or overriding
themselves) via environment variables.

The environment variables are resolved at install time (which is usually
import time). This is done 1) to avoid any race conditions between
threads etc..., but 2) to help encourage people to just go modify the
configs directly, vs overriding environment variables to change
pytorch behaviour.
Pull Request resolved: #138956
Approved by: https://github.com/ezyang
ghstack dependencies: #138766
pytorchmergebot pushed a commit that referenced this pull request Nov 7, 2024
This never ended up getting used, and instead we're doing this
resolution within the configuration system.

Removing these unused internal features.
Pull Request resolved: #138767
Approved by: https://github.com/ezyang
ghstack dependencies: #138766, #138956
atalman pushed a commit to atalman/pytorch that referenced this pull request Nov 11, 2024
This never ended up getting used, and instead we're doing this
resolution within the configuration system.

Removing these unused internal features.
Pull Request resolved: pytorch#138767
Approved by: https://github.com/ezyang
ghstack dependencies: pytorch#138766, pytorch#138956
@github-actions github-actions bot deleted the gh/c00w/2/head branch December 2, 2024 02:13
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
…8956)

This allows Configs to handle setting their defaults (or overriding
themselves) via environment variables.

The environment variables are resolved at install time (which is usually
import time). This is done 1) to avoid any race conditions between
threads etc..., but 2) to help encourage people to just go modify the
configs directly, vs overriding environment variables to change
pytorch behaviour.
Pull Request resolved: pytorch#138956
Approved by: https://github.com/ezyang
ghstack dependencies: pytorch#138766
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
This never ended up getting used, and instead we're doing this
resolution within the configuration system.

Removing these unused internal features.
Pull Request resolved: pytorch#138767
Approved by: https://github.com/ezyang
ghstack dependencies: pytorch#138766, pytorch#138956
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants