fluxcd/image-automation-controller

Flaky test TestImageUpdateAutomationReconciler_deleteBeforeFinalizer

Closed this issue · 2 comments

makkes commented

The test flakes with the following error message:

--- FAIL: TestImageUpdateAutomationReconciler_deleteBeforeFinalizer (2.05s)
    update_test.go:162: 
        Unexpected error:
            <*errors.StatusError | 0xc00010a280>: 
            Operation cannot be fulfilled on imageupdateautomations.image.toolkit.fluxcd.io "test-imageupdate": the object has been modified; please apply your changes to the latest version and try again
            {
                ErrStatus: {
                    TypeMeta: {Kind: "", APIVersion: ""},
                    ListMeta: {
                        SelfLink: "",
                        ResourceVersion: "",
                        Continue: "",
                        RemainingItemCount: nil,
                    },
                    Status: "Failure",
                    Message: "Operation cannot be fulfilled on imageupdateautomations.image.toolkit.fluxcd.io \"test-imageupdate\": the object has been modified; please apply your changes to the latest version and try again",
                    Reason: "Conflict",
                    Details: {
                        Name: "test-imageupdate",
                        Group: "image.toolkit.fluxcd.io",
                        Kind: "imageupdateautomations",
                        UID: "",
                        Causes: nil,
                        RetryAfterSeconds: 0,
                    },
                    Code: 409,
                },
            }
        occurred

Example logs of a failed workflow run: logs_3920.zip

this is addressed in #565

makkes commented

Thanks @aryan9600. I edited the PR's description to close this issue when it's merged.