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

mlos_bench config json schema validation - storage #349

Merged
merged 122 commits into from
May 16, 2023

Conversation

bpkroth
Copy link
Contributor

@bpkroth bpkroth commented May 10, 2023

Extends #340 and #346 to storage configs.
See Also: #331

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.

LGTM! Let's merge in the first PR and I'll do the final review

.pylintrc Outdated Show resolved Hide resolved
setup.cfg Outdated Show resolved Hide resolved
@bpkroth
Copy link
Contributor Author

bpkroth commented May 16, 2023

LGTM! Let's merge in the first PR and I'll do the final review

Previous PR is merged. Please have another look and approve when you get a sec. Mostly just a little more test code consolidation. Thanks!

@motus motus merged commit 3824f8e into microsoft:main May 16, 2023
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
@bpkroth bpkroth deleted the json-schema-validation-storage branch May 17, 2023 18:10
bpkroth added a commit that referenced this pull request May 19, 2023
Extends #340, #346, #349, #352 to Environment configs.
See Also: #331 

- [x] main schema as a set of subschemas
- [x] connect schema validation in the mlos_bench code
- [x] test-cases
bpkroth added a commit that referenced this pull request May 22, 2023
Extends #340, #346, #349, #352, #359 to Service configs.
See Also: #331 

- [x] main schema as a set of subschemas
- [x] connect schema validation in the mlos_bench code
- [x] test-cases

To do this we removed support for configs that were flat lists of service configs: `[ {"class": "service.class"} ]` and turned those into objects that have a single key `"services"` with the list instead. `{ "services": [ ... ] }`
This makes sure that all configs are dicts/objects that we can optionally put `"$schema"` attributes on but also simplifies some of the config loading logic.
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