Skip to content

feat(self-host): default self-hosted metadata to on (cherry-pick #11417) - #12963

Merged
pvijayakrish merged 1 commit into
release/1.4.0from
tmonty12/cp-11417-self-host-metadata-default-release-1.4.0
Aug 11, 2026
Merged

feat(self-host): default self-hosted metadata to on (cherry-pick #11417)#12963
pvijayakrish merged 1 commit into
release/1.4.0from
tmonty12/cp-11417-self-host-metadata-default-release-1.4.0

Conversation

@tmonty12

Copy link
Copy Markdown
Contributor

Summary

  • Cherry-pick #11417 onto release/1.4.0.
  • Make worker self-hosted MDC metadata the default when DYN_SELF_HOST_METADATA is unset; explicit falsy values (0, false, no, or off) continue to opt out.

Why

On release/1.4.0, self-hosted metadata is opt-in. When it is disabled, workers publish local file:// metadata paths, so a newly rolled frontend can fall back to its own --model-path and reject an older worker's config.json when their checksums differ. Defaulting self-hosting on lets the frontend fetch and verify metadata from each worker generation instead.

Original PR

  • Main PR: #11417
  • Main commit: a96587663c5d9d46636871d868d7529b22d647b4
  • Backport commit: 199e95a8c0

Validation

  • git cherry-pick -x -s a96587663c5d9d46636871d868d7529b22d647b4 applied cleanly.
  • git diff --check origin/release/1.4.0...HEAD passed.
  • Local test execution intentionally deferred; CI will run the release-branch checks.

…11417)

Signed-off-by: Neelay Shah <neelays@nvidia.com>
Co-authored-by: Ryan McCormick <rmccormick@nvidia.com>
(cherry picked from commit a965876)
Signed-off-by: Thomas Montfort <tjmontfort12@gmail.com>
@github-actions github-actions Bot added the feat label Aug 10, 2026
@tmonty12
tmonty12 marked this pull request as ready for review August 10, 2026 19:53
@tmonty12
tmonty12 requested a review from a team as a code owner August 10, 2026 19:53

@devin-ai-integration devin-ai-integration Bot 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.

Devin Review found 1 potential issue.

Open in Devin Review

Comment on lines +214 to 215
/// Opt in or out of self-hosting MDC artifacts. Default `true`.
pub fn self_host_metadata(&mut self, enabled: bool) -> &mut Self {

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.

🔍 Python binding default still defers to env, so default flips there too

lib/bindings/python/rust/lib.rs:625-626 only calls builder.self_host_metadata(...) when the Python caller passes an explicit value, so all Python-side registrations inherit the new default-on behavior via LocalModelBuilder::default(). That is consistent with the intent, but it means every Python worker without DYN_SYSTEM_PORT set now takes the fallback branch and emits the new warning — worth confirming deployment manifests set DYN_SYSTEM_PORT for the release branch.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@datadog-official

datadog-official Bot commented Aug 10, 2026

Copy link
Copy Markdown

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 44.50% (+4.32%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 199e95a | Docs | Datadog PR Page | Give us feedback!

@pvijayakrish
pvijayakrish merged commit 82904c7 into release/1.4.0 Aug 11, 2026
173 of 181 checks passed
@pvijayakrish
pvijayakrish deleted the tmonty12/cp-11417-self-host-metadata-default-release-1.4.0 branch August 11, 2026 00:02
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.

3 participants