feat(nomos): distinguish synced and current polling - #2242
tomatotomata wants to merge 6 commits into
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @ahmadalguydi. Thanks for your PR. I'm waiting for a GoogleContainerTools member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Treat poll-until complete as full resource readiness, not only repository apply completion. Keep polling when a reported managed resource is not Current and document the behavior.\n\nAddresses maintainer review on GoogleContainerTools#2006.
|
Followed up on the readiness question in commit The Google CLA bot still requires the account holder to complete the CLA; that external signature step cannot be performed by the agent. |
|
/ok-to-test |
|
The presubmit failure was a syntax error in the new table literal at Could you please rerun the presubmit on the new head? /retest |
|
I traced the latest results to two separate causes. The required presubmit still wanted Go's simplified composite-literal form in |
tiffanny29631
left a comment
There was a problem hiding this comment.
Please update the PR description and title to reflect latest changes
|
I changed the polling target to separate successful Config Sync application from managed-resource readiness. The completion check now respects The focused tests and |
Fixes #2006
Summary
Adds explicit completion targets for
nomos status:--poll-until=syncedwaits for the selected RootSync and RepoSync objects to reportSYNCEDwithout errors.--poll-until=currentalso waits for every reported managed resource to becomeCurrent.completeremains an alias forcurrent.The
--namefilter scopes the completion check. An empty reachable cluster does not block other contexts, while a requested name must be found. Incurrentmode, aFailedresource returns an error instead of polling forever;Unknownremains incomplete. Usesyncedwhen resource readiness is not required.Validation
go test ./cmd/nomos/status -run 'TestPollUntilReached|TestValidatePollUntil|TestClusterStates' -count=1passed.git diff --checkpassed.TestPrintStatusexpectation: the fixture expects UTC while the output uses the local Riyadh timezone. The focused polling and cluster-state tests pass, and the PR presubmits will validate the pushed head.