Skip to content

Pass global config to Service constructor#435

Merged
motus merged 6 commits into
microsoft:mainfrom
motus:sergiym/service/global_config
Jul 6, 2023
Merged

Pass global config to Service constructor#435
motus merged 6 commits into
microsoft:mainfrom
motus:sergiym/service/global_config

Conversation

@motus
Copy link
Copy Markdown
Member

@motus motus commented Jul 5, 2023

Turns out, it is not enough to substitute the top-level Service config parameters with the globals - sometimes the placeholders are not at the top level (e.g., deploymentTemplateParameters of AzureVMService) so we need to pass the global_config explicitly into each Service constructor.

This update allows us to collect all configurable parameters from all services and environments in a single config

@motus motus requested a review from a team as a code owner July 5, 2023 17:57
Comment thread mlos_bench/mlos_bench/services/remote/azure/azure_auth.py Outdated
Comment thread mlos_bench/mlos_bench/services/remote/azure/azure_services.py Outdated
@bpkroth
Copy link
Copy Markdown
Contributor

bpkroth commented Jul 6, 2023

I think merging #438 should fix the build issues

Copy link
Copy Markdown
Contributor

@bpkroth bpkroth left a comment

Choose a reason for hiding this comment

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

LGTM

@motus motus enabled auto-merge (squash) July 6, 2023 22:13
@motus motus merged commit f4043f1 into microsoft:main Jul 6, 2023
@motus motus deleted the sergiym/service/global_config branch July 6, 2023 23:01
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