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

Refactor config examples directory structure #313

Merged
merged 166 commits into from
May 3, 2023

Conversation

bpkroth
Copy link
Contributor

@bpkroth bpkroth commented Apr 24, 2023

The existing configs and examples directory structure is a little bit of a mess and not currently being distributed with the whl.

This PR starts reorganizing it to

This should make it easier to interact with and test the pre-canned examples.

Future work:

  • [-] use jsonschema for config validation and IDE autocomplete help

@bpkroth
Copy link
Contributor Author

bpkroth commented Apr 24, 2023

Note: this is in preparation for my SSH PR so I have a reasonable place to put those config/script snippets.

@bpkroth
Copy link
Contributor Author

bpkroth commented Apr 24, 2023

Absolute nit, but it bugs me:

mlos_bench/
  optimizer/
   
    mock_env
    mlos_core
    ... 
    # note that there's more than one
  config/
    optimizers/    # existing naming, and it's plural

Or mlos_bench/config/environment/.../scripts.

Anyways, we're pretty inconsistent about pluralized names.

@bpkroth
Copy link
Contributor Author

bpkroth commented Apr 25, 2023

Currently pulling in some changes from #315 to this PR
And now #316

Makefile Show resolved Hide resolved
Makefile Show resolved Hide resolved
Makefile Show resolved Hide resolved
@bpkroth bpkroth requested a review from motus May 3, 2023 22:22
@bpkroth
Copy link
Contributor Author

bpkroth commented May 3, 2023 via email

Copy link
Member

@motus motus left a comment

Choose a reason for hiding this comment

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

wow, that's a lot of work! left a few nitpicks, but otherwise approve

@motus motus merged commit 16504e2 into microsoft:main May 3, 2023
@bpkroth bpkroth deleted the refactor-config-examples-dirs branch May 4, 2023 14:23
bpkroth added a commit that referenced this pull request May 17, 2023
Extends #340, #346, #349 to cli configs.
See Also: #331 

Also updates `--log_level` to support named logging levels (e.g. `INFO`)

- [x] add tests
  - [x] also backfilling tests of loading cli config examples (similar to what #313 did)
- [x] global config handling
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.

2 participants