-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: JTE Pipelines resuming execution after successful run #328
Comments
I am happy to leave this issue open.
Is there any more information you're able to provide? The primary blocker for resolving this bug has been the absence of a consistently reproducible test case that could be translated into a failing unit test from which to begin debugging. |
Which information beside the two redundant issues do you think i should provide: The problem cannot be connected to a specific job run. But it affects all Jobs that are using the JTE. In the moment that are far more than 100 Jobs. And more than 1000 Build Results. No other Job is affected. Sorry for that I am not able to give you more details. Maybe you can request specific Information. I will try to get it from our Jenkins operations team. Kind regards |
Hello JTE Team. I can add the following Information.
Maybe this helps by the investigation for the reason. |
Hello JTE Team. I have feedback from the Jenkins Cloudbees Team. They have analyzed the issue and gave me the hint to share this information with you. Maybe this will help to find the root cause. Here I the Answer form the CloudBees Support:
|
Hi team, It seems that JTE pipelines ignore the value of SymptomWhat is the end user experiencing? Evidence/DetailWhat information has been collected or researched so far that helps with the analysis Point to relevant files if appropriate
Reproduction StepsHow to reproduce the issue 1/ Install JTE plugin
3/ Abruptly restart the controller before the job has finished successfully.
6/ Abruptly restart the controller before the job has finished successfully. Has there been a successful attempt to reproduce the issue? If issue is intermittent/not reproduceable, say that. What is expected behavior vs the actual behavior? I hope this helps with the investigation. |
@steven-terrana Hello Steven the above post is from the cloudbees support team. They had investigated the problem an found that disableResume flag seems to be ignored or manipulatd by your templating engine. Is this information helpful? |
Is there a solution for this problem? We have the same problem in our organization too. |
Just as Info to reproduce the scenario: We have been using Clodogu Systems with integrated Git, Jenkins as Docker containers. Jenkins is scheduled for an overnightly restart everyday. That's when JTE Plugin (after restart) cannot fetch the actual status of the job but instead fails on a particular stage and marks all the previous builds as failed (just like in the image @brosmar posted). Looking at Jenkins logs did not really help. |
@madhu91s it would be really helpful is you could give us a minimal public repository: JTE configuration and target build repository, that replicates the problem. |
Jenkins Version
CloudBees CI Client Controller Latest 2.414.2.2-rolling
JTE Version
2.5.3
Bug Description
Same issue as:
#309
#187
If more than 3 People are reporting the same problematic behavior than the issue should not be closed.
all the Jobs where formerly green as the job in the first row.
Relevant log output
And even if the Job result was succesful the JTE Templating job is arbitary restarted: 10:52:37 stepFailed: false 10:52:37 result: null 10:52:37 current: SUCCESS 10:52:37 ------------------------------------------------------------------------------------------------- 10:52:37 end Notify step null/null (Lifecycle Hook) 10:52:37 ------------------------------------------------------------------------------------------------- 10:52:37 ------------------------------------------------------------------------------------------------- 10:52:37 [Pipeline] End of Pipeline 10:52:37 Finished: SUCCESS 09:06:15 Resuming build at Sat Sep 23 09:06:15 CEST 2023 after Jenkins restart 09:06:15 [Pipeline] End of Pipeline 09:06:15 java.io.FileNotFoundException: /var/jenkins_home/jobs/MarketData/jobs/XENTRIC/jobs/visitorscenter/jobs/external-ui/jobs/build-ui/branches/develop/builds/41/program.dat (No such file or directory) 09:06:15 at java.base/java.io.FileInputStream.open0(Native Method) 09:06:15 at java.base/java.io.FileInputStream.open(FileInputStream.java:219) 09:06:15 at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) 09:06:15 at org.jenkinsci.plugins.workflow.support.pickles.serialization.RiverReader.openStreamAt(RiverReader.java:196) 09:06:15 at org.jenkinsci.plugins.workflow.support.pickles.serialization.RiverReader.restorePickles(RiverReader.java:140) 09:06:15 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.loadProgramAsync(CpsFlowExecution.java:804) 09:06:15 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.onLoad(CpsFlowExecution.java:770) 09:06:15 at org.jenkinsci.plugins.workflow.job.WorkflowRun.getExecution(WorkflowRun.java:728) 09:06:15 at org.jenkinsci.plugins.workflow.job.WorkflowRun.onLoad(WorkflowRun.java:582) 09:06:15 at hudson.model.RunMap.retrieve(RunMap.java:233) 09:06:15 at hudson.model.RunMap.retrieve(RunMap.java:61) 09:06:15 at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:660) 09:06:15 at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:642) 09:06:15 at jenkins.model.lazy.AbstractLazyLoadRunMap.getByNumber(AbstractLazyLoadRunMap.java:540) 09:06:15 at jenkins.model.lazy.LazyBuildMixIn.getBuildByNumber(LazyBuildMixIn.java:240) 09:06:15 at org.jenkinsci.plugins.workflow.job.WorkflowJob.getBuildByNumber(WorkflowJob.java:234) 09:06:15 at org.jenkinsci.plugins.workflow.job.WorkflowJob.getBuildByNumber(WorkflowJob.java:105) 09:06:15 at jenkins.model.PeepholePermalink.resolve(PeepholePermalink.java:105) 09:06:15 at hudson.model.Job.getLastCompletedBuild(Job.java:990) 09:06:15 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$PipelineInternalCalls$1.writeTo(CpsFlowExecution.java:2052) 09:06:15 at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:418) 09:06:15 at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:353) 09:06:15 at com.cloudbees.jenkins.support.SupportPlugin$PeriodicWorkImpl.lambda$doRun$0(SupportPlugin.java:946) 09:06:15 Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 121af19f-483b-46d0-8c50-87e831d00429 09:06:15 Caused: java.io.IOException: Failed to load build state 09:06:15 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$3.onSuccess(CpsFlowExecution.java:878) 09:06:15 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$3.onSuccess(CpsFlowExecution.java:874) 09:06:15 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$5$1.run(CpsFlowExecution.java:951) 09:06:15 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:38) 09:06:15 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 09:06:15 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 09:06:15 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139) 09:06:15 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) 09:06:15 at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) 09:06:15 at jenkins.util.ErrorLoggingExecutorService.lambda$wrap$0(ErrorLoggingExecutorService.java:51) 09:06:15 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 09:06:15 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 09:06:15 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 09:06:15 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 09:06:15 at java.base/java.lang.Thread.run(Thread.java:829) 09:06:18 Finished: FAILURE
Steps to Reproduce
Install and use the JTE in day to day business in the above configuration and you will get the behavior.
The text was updated successfully, but these errors were encountered: