Skip to content

refactor(tools): nest cloudlab/local config under a providers section in config.yaml - #469

Merged
milindsrivastava1997 merged 1 commit into
mainfrom
440-nest-cloudlablocal-config-under-a-providers-section-in-configyaml
Jun 29, 2026
Merged

refactor(tools): nest cloudlab/local config under a providers section in config.yaml#469
milindsrivastava1997 merged 1 commit into
mainfrom
440-nest-cloudlablocal-config-under-a-providers-section-in-configyaml

Conversation

@milindsrivastava1997

Copy link
Copy Markdown
Contributor

@milindsrivastava1997
milindsrivastava1997 marked this pull request as ready for review June 29, 2026 15:03
@milindsrivastava1997
milindsrivastava1997 merged commit 8873c4b into main Jun 29, 2026
17 checks passed
@milindsrivastava1997
milindsrivastava1997 deleted the 440-nest-cloudlablocal-config-under-a-providers-section-in-configyaml branch June 29, 2026 15:04
milindsrivastava1997 added a commit that referenced this pull request Aug 19, 2026
…548)

* fix(tools): make Args the single source of truth for remote_write_ip

cfg.streaming.remote_write.ip has been a dead null since PR #469
replaced the OmegaConf resolver that used to populate it with a plain
per-script `args.remote_write_ip = provider.get_node_ip(...)` — a
value only arroyo.py ever read. generate_prometheus_config still reads
cfg.streaming.remote_write.ip directly, so it silently baked
http://None:<port>/... into prometheus.yml for every non-arroyo
streaming engine, causing remote_write to fail and precompute-engine
queries to hang forever waiting on data that never arrives (#546).

Args.__init__ now builds the provider itself and sets both
self.remote_write_ip and cfg.streaming.remote_write.ip from that one
place, so every script gets it automatically instead of each one
re-deriving (and potentially forgetting) it. Scripts that used to call
create_provider(cfg) right alongside config.Args(cfg) now just read
args.provider.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* fix(tools): fix cmdline_args.txt dump after Args gained a provider field

vars(args) broke once Args started holding a live provider object
(added in the previous commit) — CloudLabProvider/LocalProvider aren't
JSON-serializable, so every script crashed writing cmdline_args.txt.
Args.to_dict() now swaps provider for its repr() (both provider
classes already define one) instead of dropping it, keeping the debug
dump both working and informative.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Updated scrape_interval to 1s, from 10s

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
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.

Nest cloudlab/local config under a providers: section in config.yaml

1 participant