Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 40 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
|
Code review on PR #20597 (head 2ecc0c7): changes needed. Read only; nothing was run. The flag has one home, and a single-node role yields the same owner map.
|
|
Code review on PR #20597 (head 9a6777f): approve. Read only; nothing was run. Only multi-node roles that run a service and aren't infrastructure count, so today's fleets see no change; non-serving nodes count as neither up nor down; types are regenerated. This PR's many red checks at this moment look like cancelled runs, not failures, so a train is its real test. The earlier test gaps on the query and endpoints stand. |
|
Code review (code-reviewer pass) at b27ba23 Verdict: APPROVE Checked:
No blocking findings. |
|
Branch deleted after verification: every commit is in main and the branch shows 0 changed files against main. Restore it from this PR if needed. |
Thinking Path
The maintainer's ruling on #19706 puts the shared changes first: a per-role flag, a list of nodes in the API, and per-node health. Roles get the flag later, each one when its traffic can reach every node, so this PR adds no new scalable role and nothing changes for a user assigning roles today.
What Changed
multi_node.MULTI_NODE_ROLESis derived from it, and onlyautobot_sharedandslm-agenthave it. A test fails if a role gets the flag without the test being updated.GET /api/roles/ownersreturns a list of nodes per role, plusmulti_node_roles.getRoleOwnersin the SLM frontend still gives the views one owner per single-node role, so their warnings are unchanged. The frontend's second copy of the multi-node list is gone.GET /api/roles/fleet-healthaddsroles_with_nodes_down. A scaled role with a service, on a node that is offline or in error or with its service inactive, turns a healthy fleet degraded, and the detail line names the nodes. The health views already show that line. A node the role isn't installed on yet, or one that is pending, enrolling, in maintenance or decommissioned, counts as neither up nor down.autobot_sharedandslm-agentare left out of this check. Counting them would turn any offline node into a degraded fleet. The check starts to matter when the first service role gets the flag.check_role_uniquenessno longer raises if a role somehow has rows on two nodes; it reports one of them.get_role_ownersmoved to the newservices/role_nodes.py, which lowers three file-size ceilings.Verification
pytest tests/services/test_role_nodes.py tests/api/test_fleet_health.py tests/services/test_role_registry.py tests/services/test_role_manifest_shape_16025.pypasses locally. The frontend test is left to CI.openapi.jsonandapi.tscome from the repo's generators. Not tried on a host.Traffic spreading and the role-by-role flags are still open, so this is
Refs.Model Used
Claude Opus 5.5
Refs #19706