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

fix: CI flakes #127

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mateusoliveira43
Copy link
Contributor

@mateusoliveira43 mateusoliveira43 commented Dec 6, 2024

Why the changes were made

TODO

How to test the changes made

Check CI logs

Copy link

openshift-ci bot commented Dec 6, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link

openshift-ci bot commented Dec 6, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mateusoliveira43

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Signed-off-by: Mateus Oliveira <[email protected]>
} else {
logger.V(1).Info("NonAdminBackup status unchanged during deletion")
}
if nab.ObjectMeta.DeletionTimestamp.IsZero() {
logger.V(1).Info("Marking NonAdminBackup for deletion", constant.NameString, nab.Name)
if err := r.Delete(ctx, nab); err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

once this is called, update predicate is triggered. So, this should be last step to avoid running multiple reconciles

Copy link
Collaborator

Choose a reason for hiding this comment

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

But if you just return false, nil then reconcile will enter another step and will not exit as last step?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we may need a 3rd state as it was in the very initial implementation which means "exit cleanly now" to avoid complexity moving parts to the steps where they don't belong. Moving this to the last step e.g. removeNabFinalizerUponVeleroBackupDeletion also doesn't makes sense to me as this step is actually to remove finalizer and not call delete on an object.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what I did was add this as the last step of deletion, so return false will not do anything more

Copy link
Collaborator

Choose a reason for hiding this comment

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

How this works with the path where Deletion happens via DeleteBackupRequest

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it should be as it was, only change was the order of steps

@mpryc
Copy link
Collaborator

mpryc commented Dec 12, 2024

@mateusoliveira43 is this flake still visible? I can see the log from the issue #93 is from 27th of September. There were so many changes in the reconcile paths since then, that I wonder if it's even still reproducible?

@mateusoliveira43
Copy link
Contributor Author

@mpryc do not remember seeing it lately

But with the approach of removing sleep we can be safe they will not happen again. So I think is ok to close issue with the merge of this PR

@mpryc
Copy link
Collaborator

mpryc commented Dec 12, 2024

@mateusoliveira43 right, I am just not comfortable with reworking reconcile to remove one sleep as this PR is much more then just one issue fix and I am still not sold on the rework here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants