Skip to content

Conversation

chlins
Copy link
Member

@chlins chlins commented Aug 18, 2025

This pull request updates how the SchedulerAnnouncer constructs the AnnounceHostRequest, ensuring that configuration values are correctly propagated to the request. The most important changes are related to improved usage of configuration parameters.

Configuration propagation improvements:

  • The scheduler_cluster_id field in AnnounceHostRequest now uses the value from self.config.host.scheduler_cluster_id, defaulting to zero if not set, instead of a hardcoded zero.
  • The new proxy_port field is set in AnnounceHostRequest, using the value from self.config.proxy.server.port cast to an i32.

Description

Related Issue

Motivation and Context

Screenshots (if appropriate)

Signed-off-by: chlins <chlins.zhang@gmail.com>
@chlins chlins added the enhancement New feature or request label Aug 18, 2025
@chlins chlins enabled auto-merge (squash) August 18, 2025 12:31
Copy link

codecov bot commented Aug 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.73%. Comparing base (b0d1495) to head (3936e53).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1292   +/-   ##
=======================================
  Coverage   48.73%   48.73%           
=======================================
  Files          60       60           
  Lines       15068    15068           
=======================================
  Hits         7344     7344           
  Misses       7724     7724           
Files with missing lines Coverage Δ
dragonfly-client/src/announcer/mod.rs 0.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@gaius-qi gaius-qi left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@LunaWhispers LunaWhispers left a comment

Choose a reason for hiding this comment

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

lgtm

@chlins chlins merged commit 6b5eab5 into main Aug 18, 2025
9 checks passed
@chlins chlins deleted the feat/host-proxy-port branch August 18, 2025 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants