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

make builtin runner's get_default_cfg to use config updater #272

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wat3rBro
Copy link
Contributor

@wat3rBro wat3rBro commented Jun 2, 2022

Differential Revision: D36463900

wat3rBro added 2 commits June 2, 2022 12:41
Summary:
- set `get_default_cfg = None` to opt-in this new feature.
- support config with `_DEFAULTS_` when loading config file. Note that we don't check explicitly `"_DEFAULTS_" in config file` but check `runner.get_default_cfg == None`, this is because runner having `get_default_cfg` and config having `_DEFAULTS_` should be mutually exclusive, and `load_full_config_from_file` can raise proper error if `_DEFAULTS_` is missing.
- we also need to save `_DEFAULTS_` in the diff config.

Differential Revision: D36868581

fbshipit-source-id: 4cc2d516c45d8f161f37a8c6f2a8146cc03e3462
Differential Revision: D36463900

fbshipit-source-id: 4d4b5ee0bd9cfece35e1ed6f5090fe828d4b71ff
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Jun 2, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D36463900

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants