kubesphere / kubesphere/ks-devops

Request to limit reconciliations for PipelineRun reconciler

Open
#448 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

kind/feature
Dominant language
Go
Stars
164
Forks
140
PR merge metrics
No merged PRs in 30d

Description

c8f7ec7bc82e5f1241c1fc185e71308

As you can see, there have 672298 reconciliations in 23 days due to PipelineRun not found in Jenkins. PipelineRun reconciler suffered a terribly ineffective loop, because it never wakes up.

It's necessary to limit the reconciliations for the reconciler to prevent too many meaningless loops:

  • Time limit: set timeout for every PipelineRun CR
  • Reconciliations limit: set reconciliation limit for every PipelineRun CR

/kind feature

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the PipelineRun reconciler behavior when Jenkins cannot find a PipelineRun and confirm why it repeatedly reconciles. Define how a timeout and a reconciliation limit should apply to each PipelineRun CR; done means meaningless reconciliation loops stop under both limits.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
ci-cd, devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.