Skip to content

CompletionTime is not set if Succeeded is already True #2741

@mattmoor

Description

@mattmoor

Expected Behavior

CompletionTime is always updated to reflect the time the task/pipeline was observed to succeed.

Actual Behavior

CompletionTime is only updated when something else in Status is being touched. This is because updateStatus is guarded by an equivalence check, so if nothing else changes, then this doesn't get set.

Steps to Reproduce the Problem

I saw this in a unit test where I set the condition but not CompletionTime, and was surprised it wasn't set.

Additional Info

This is going to be blocking for a transition away from hand-rolled updateStatus to // +genreconciler.

/kind bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions