--- title: "ADR 0091: A follow-up ends skipped, quietly skipped or failed depending on who can fix it" --- * Status: accepted * Code: [`pkg/reconciler/followup.go`](https://github.com/tektoncd/pipelines-as-code/blob/main/pkg/reconciler/followup.go) ## Context `evaluateFollowUp` re-resolves the definition at the revision pinned at event time (see [ADR 0058]({{< relref "0058-followup-dependency-graph.md" >}}) and [ADR 0079]({{< relref "0079-follow-up-cel-evaluation.md" >}})). Several things can go wrong, and the follow-up has to reach a terminal state, since its dependents are waiting on it. ## Decision * Skipped with a check: an unresolvable dependency graph, a definition missing at the event's revision, a definition without `on-cel-expression`, a CEL evaluation error, an unresolved `runs` param, a source Repository that is not for the same git repository, and a dependency deleted. The code treats these as permanent, since the inputs are pinned by the revision and retrying cannot change them. * Skipped quietly (no provider check): a CEL condition evaluated to false. It is the pipeline author's outcome, like a definition that does not match the event. * Failed (`failFollowUp`): no provider client, a source repository that cannot be read, a provider error left after the configured API retries, a remote task that cannot be fetched, a decoration or secret error, a creation error. It posts a `pipelinerun start failure` check with the error and consumes the follow-up as failed. Nothing retries it. * Without a provider client only the Kubernetes event is emitted, since no status can be posted. * A failed status report never prevents consuming the follow-up: a skipped follow-up must not come back. * All three paths re-evaluate the dependents, which then see a dependency that never ran. ## Consequences * A transient provider outage past the API retries fails the follow-up for good. * Which errors are permanent is decided by the call site, not by the error type, apart from `ErrFollowUpDefinitionNotFound`.