Skip to content

break(framework): Generate error replies for unavailable nodes in Strategy.start() - #8426

Merged
danieljanes merged 2 commits into
mainfrom
fix-strategy-offline-nodes
Oct 27, 2026
Merged

danieljanes merged 2 commits into
mainfrom
fix-strategy-offline-nodes

Conversation

@panh99

@panh99 panh99 commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Issue

Description

When a SuperNode goes offline, the SuperLink no longer generates an error reply. Built-in strategies therefore keep waiting for that node until the round timeout expires.

Related issues/PRs

Follow-up to #8409.

Proposal

Explanation

Use a shared strategy helper for training and evaluation to push messages once, collect replies, and stop waiting for outstanding messages whose destinations disappear from Grid.get_node_ids(). Keep replies received before a node becomes unavailable and preserve the timeout for nodes that remain available.

Reject empty replies in the shared DP validator so adaptive clipping skips empty rounds without dividing by zero.

Copilot AI balanced review requested due to automatic review settings October 26, 2026 20:48
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T10:03:55.023662Z 36b7e91 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 23a31bc78b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread framework/py/flwr/serverapp/strategy/strategy_utils.py

Copilot AI 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.

🟡 Changes recommended

The shared polling interval overrides simulation configuration and can omit replies that arrive within the timeout.

1 open issue
What changed in this PR

Updates built-in strategies to stop waiting for unavailable SuperNodes, following the destination-oriented delivery changes in #8409.

Changes:

  • Shares reply collection between training and evaluation, preserving received replies while skipping unavailable nodes.
  • Rejects empty replies in differential-privacy validation.
  • Adds partial-reply tests and documents unavailable-node handling.

The changes are cohesive and do not need splitting. No separate readability or consistency concerns remain; approval is blocked by a polling regression.

File Description
framework/​py/​flwr/​serverapp/​strategy/​strategy.py Uses shared reply collection and updates timeout documentation.
framework/​py/​flwr/​serverapp/​strategy/​strategy_utils.py Adds availability-aware message polling.
framework/​py/​flwr/​serverapp/​strategy/​strategy_utils_test.py Tests unavailable nodes and timeout with partial replies.
framework/​py/​flwr/​serverapp/​strategy/​dp_fixed_clipping.py Rejects empty reply sets before aggregation.

Review effort: Balanced

Comment thread framework/py/flwr/serverapp/strategy/strategy_utils.py
@github-actions github-actions Bot added the Maintainer Used to determine what PRs (mainly) come from Flower maintainers. label Oct 26, 2026
@danieljanes
danieljanes merged commit 9d49a8d into main Oct 27, 2026
69 checks passed
@danieljanes
danieljanes deleted the fix-strategy-offline-nodes branch October 27, 2026 13:46
@panh99 panh99 changed the title fix(framework): Skip unavailable nodes when collecting strategy replies break(framework): Generate error replies for unavailable nodes in Strategy.start() Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintainer Used to determine what PRs (mainly) come from Flower maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants