kubesphere-sigs / ks

ks is a tool that makes it be easy to work with KubeSphere.
MIT License
22 stars 16 forks source link

Incorrect GC behaviour for PipelineRuns #236

Closed JohnNiang closed 2 years ago

JohnNiang commented 2 years ago

What's the problem?

Recently, I encountered that my pending or running PipelineRuns disappeared suddenly, even in Jenkins. So I guess it may be GCed by cronjob-gc. I will show the evidence up below.

Steps to reproduce

  1. Create a simple Pipeline with Jenkinsfile as below:
pipeline {
    agent any 
    stages {
        stage('Greet') { 
            steps {
              sh 'echo "Hello, Jenkins!" && ping bing.com'
            }
        }
    }
}
  1. Click Run button to run the Pipeline
  2. Then Run the GC job immediately
kubectl -n kubesphere-devops-system create job gc-test-job --from=cronjob/devops
  1. See the PipelineRun you just run

/kind bug

JohnNiang commented 2 years ago

/assign

LinuxSuRen commented 2 years ago

Incorrect GC strategy? Or just a bug of it. It's different. Please give the details if you believe the strategy is incorrect.