Skip to content

CONFIG: Part 2 (use). - #1346

Merged
brminich merged 26 commits into
ai-dynamo:mainfrom
ColinNV:config_part2_use
Mar 3, 2026
Merged

brminich merged 26 commits into
ai-dynamo:mainfrom
ColinNV:config_part2_use

Conversation

@ColinNV

@ColinNV ColinNV commented Feb 20, 2026 •

Copy link
Copy Markdown
Contributor

What?

Consistently use the new config API from #1301.

Why?

Unify access to environment and prepare for config files.

How?

Replace all previous calls to std::getenv() with the new API functions. Remember that conversion failures (a value exists in the environment (and later configuration file) but can't be converted to its target type) intentionally do not fall back to any default behaviour in order to not ((relativley) silently) hide mistakes in the setup.

Summary by CodeRabbit

  • Refactor

    • Centralized configuration access across core services and plugins; several runtime identifiers made immutable at construction.
  • Configuration Updates

    • New helpers for paths, durations, non-empty strings, and existence checks.
    • Many runtime settings (telemetry, exporter selection, etcd endpoints/namespace, plugin dir, storage bucket, RC mode, timeouts, Prometheus options) now read from centralized config.
  • Behavioral

    • Telemetry, exporter loading, IP selection, and startup behavior follow config-driven logic.
  • Tests

    • Minor telemetry test adjustment and cleanup fix.

@github-actions

Copy link
Copy Markdown

👋 Hi ColinNV! Thank you for contributing to ai-dynamo/nixl.

Your PR reviewers will review your contribution then trigger the CI to test your changes.

🚀

Comment thread src/plugins/mooncake/mooncake_backend.cpp Outdated
Comment thread src/plugins/telemetry/prometheus/prometheus_exporter.cpp
@ColinNV

ColinNV commented Feb 24, 2026

Copy link
Copy Markdown
Contributor Author

/build

Comment thread src/plugins/ucx/config.cpp Outdated
Comment thread src/plugins/ucx/gpu_xfer_req_h.cpp Outdated
brminich
brminich previously approved these changes Feb 25, 2026
@brminich

Copy link
Copy Markdown
Contributor

/build

@ColinNV

ColinNV commented Feb 25, 2026

Copy link
Copy Markdown
Contributor Author

/build

Signed-off-by: Mikhail Brinskiy <brminich@users.noreply.github.com>
@brminich

Copy link
Copy Markdown
Contributor

/build

@ColinNV

ColinNV commented Feb 27, 2026

Copy link
Copy Markdown
Contributor Author

/build

@ColinNV

ColinNV commented Feb 27, 2026

Copy link
Copy Markdown
Contributor Author

/build

brminich
brminich previously approved these changes Feb 27, 2026
@ColinNV

ColinNV commented Feb 27, 2026

Copy link
Copy Markdown
Contributor Author

/build

yexiangd
yexiangd previously approved these changes Feb 27, 2026

@yexiangd yexiangd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Libfabric getenv API usage update looks good

@ColinNV

ColinNV commented Mar 2, 2026

Copy link
Copy Markdown
Contributor Author

/build

This branch was previously deployed

2 inactive deployments
GITLAB — 1aa1963c Deployed Mar 2, 2026 by copy-pr-bot[bot] via Trigger CI Pipeline #7275
SWX_AWS — 1aa1963c Deployed Mar 2, 2026 by copy-pr-bot[bot] via Run AWS Tests - Rust Tests #5960
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants