feat(framework): Add startup update checks for SuperLink, SuperNode, and SuperExec#6786
Merged
danieljanes merged 29 commits intomainfrom Mar 23, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a shared “startup-only” Flower version update check and wires it into the flower-superlink, flower-supernode, and flower-superexec CLIs so users can be warned when they’re running an outdated runtime.
Changes:
- Introduces
warn_if_flwr_update_available(and payload helpers/constants) inflwr.supercore.utils. - Calls the update check during startup for SuperLink, SuperNode, and SuperExec.
- Adds unit tests validating the update-check behavior and request payload.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| framework/py/flwr/supernode/cli/flower_supernode.py | Invokes update check during SuperNode startup. |
| framework/py/flwr/supernode/cli/flower_supernode_test.py | Tests that SuperNode runs the update check after parsing args. |
| framework/py/flwr/supercore/utils.py | Implements update-check payload creation + HTTP call + opt-out env var. |
| framework/py/flwr/supercore/utils_test.py | Adds tests for payload composition, opt-out behavior, request parameters, and failure modes. |
| framework/py/flwr/supercore/cli/flower_superexec.py | Invokes update check during SuperExec startup. |
| framework/py/flwr/supercore/cli/flower_superexec_test.py | Tests that SuperExec runs the update check after parsing args. |
| framework/py/flwr/server/app.py | Invokes update check during SuperLink startup. |
| framework/py/flwr/server/app_test.py | Tests that SuperLink runs the update check after parsing args. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
panh99
reviewed
Mar 18, 2026
panh99
reviewed
Mar 18, 2026
panh99
reviewed
Mar 18, 2026
panh99
reviewed
Mar 18, 2026
…ithub.com:flwrlabs/flower into add-update-check-to-superlink-supernode-superexec
This reverts commit 324b64b.
panh99
reviewed
Mar 20, 2026
panh99
reviewed
Mar 20, 2026
panh99
reviewed
Mar 20, 2026
panh99
reviewed
Mar 20, 2026
panh99
reviewed
Mar 20, 2026
panh99
reviewed
Mar 20, 2026
panh99
reviewed
Mar 20, 2026
panh99
reviewed
Mar 20, 2026
Co-authored-by: Heng Pan <pan@flower.ai>
panh99
reviewed
Mar 20, 2026
panh99
reviewed
Mar 20, 2026
panh99
reviewed
Mar 20, 2026
panh99
reviewed
Mar 20, 2026
panh99
reviewed
Mar 20, 2026
panh99
reviewed
Mar 20, 2026
panh99
reviewed
Mar 20, 2026
danieljanes
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a shared startup-only update check for
flower-superlink,flower-supernode, andflower-superexec.