-
Notifications
You must be signed in to change notification settings - Fork 185
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
[JENKINS-73835] Delete LockStepTest.deleteRunningBuildNewBuildClearsLock
now that running builds may not be deleted
#716
Conversation
…dClearsLock now that running builds may not be deleted
…y covers WorkflowRun.doKill
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#35 FTR. Arguably more interesting would be a JenkinsSessionRule
test that deletes the build on disk and then asserts that the system recovers after a restart.
I've labeled it as |
@MarkEWaite use |
I've added the developer label to the list of labels in the repository and have labeled this pull request with developer. |
You have? |
thanks to all for contribution |
Apparently missed that final click to change the label. Will fix the changelog now... |
See JENKINS-73835, jenkinsci/jenkins#9810 (and specifically jenkinsci/jenkins#9810 (comment)). It is no longer possible to delete builds that are still running, so
LockStepTest.deleteRunningBuildNewBuildClearsLock
fails against Jenkins 2.481+.I considered making the test perform a hard kill via
WorkflowRun.doKill
before deleting the build, but hard kills are already covered by various tests in https://github.com/jenkinsci/lockable-resources-plugin/blob/f310d75b5595c93593b0b81767e549389c8fea06/src/test/java/org/jenkins/plugins/lockableresources/LockStepHardKillTest.java, so I am proposing to just delete the test instead.Testing done
I tried a few test changes against 2.481 before deciding to delete the test.
Proposed upgrade guidelines
N/A
Submitter checklist
@NoExternalUse
. In case it is used by non java code theUsed by {@code <panel>.jelly}
Javadocs are annotated.eval
to ease the future introduction of Content Security Policy (CSP) directives (see documentation).Maintainer checklist
Before the changes are marked as
ready-for-merge
:upgrade-guide-needed
label is set and there is a Proposed upgrade guidelines section in the pull request title (see example).