support fail fast for node removal#998
Conversation
There was a problem hiding this comment.
Yeah, this one is mystifying me. I'm still trying to figure out why
| if (!stopOnTerminate) { | ||
| terminate(); | ||
| try { | ||
| terminate(); |
|
Looks right, but has it been tested? |
|
|
jglick
left a comment
There was a problem hiding this comment.
Regarding #998 (comment) I guess that
ec2-plugin/src/test/java/hudson/plugins/ec2/EC2RetentionStrategyTest.java
Lines 759 to 760 in 753e04a
Computer.getNode may return null if the agent definition has been removed from the system before the executor is released and the computer destroyed) but happened to pass before due to different timing conditions. It is not exactly clear to me what the test is supposed to be asserting here. I guess you could just skip the last assertion in case node == null since this would be normal if the build is finishing.
|
closing in favor of #1015 due to the branch conflicts |
|
For the future, please retain the same PR and just resolve conflicts in it. In the worst case, if running a merge tool became completely unwieldy and it was really easiest to start from scratch, just reset your branch to |
|
@jglick yeah I was having a terrible time with the merge conflicts but I didn't think about force pushing. Will do that next time. |
jenkinsci/workflow-durable-task-step-plugin#372 added fail fast for cloud node removal. However, this feature is not supported by the
ec2plugin.This PR refactors
EC2AbstractSlaveandEC2Computerin order to take advantage of jenkinsci/workflow-durable-task-step-plugin#372Testing done
Submitter checklist