Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade to go 1.24 + upgrade deps #1527

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

akselleirv
Copy link
Collaborator

No description provided.

@akselleirv akselleirv marked this pull request as draft February 13, 2025 07:21
Comment on lines +151 to +156
// The informer cache does not update when the status field is updated, so we need to get the object from api server.
if err := i.client.Get(ctx, client.ObjectKeyFromObject(new), new); err != nil {
i.log.Info("failed getting object", "namespace", new.Namespace, "name", new.Name, "error", err)
return
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A race condition occured when updating the deps. Was a problem with the update handler in the branch-planner working on a stale object from the informer cache. The status field of the object was is not updated by the informer, from my understanding, that resulted in the failed test.

Therefore I changed it to fetching the object from the API server instead of using the cached object. Consequence of the change is the extra API call.

@akselleirv akselleirv marked this pull request as ready for review February 14, 2025 07:10
@akselleirv akselleirv requested a review from chanwit February 14, 2025 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant