-
Notifications
You must be signed in to change notification settings - Fork 196
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
Test case for JENKINS-57253 #356
Conversation
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.
Thanks for the PR! I am not sure if we can recover from this kind of error, we probably need to make groovy-cps fail during compilation when break
(maybe also continue
) is misused like this. In regular Groovy you get a compilation error with this message: "the break statement is only allowed inside loops or switches".
See cloudbees/groovy-cps#109 for the fix. |
Also, did you happen to check whether things work correctly if you do put a EDIT: Actually, I am pretty sure that |
Thank you for the fix!
Indeed, I confirmed that |
@basil fyi I merged cloudbees/groovy-cps#109 but I don't think it's getting released until we get the repo moved into |
Sorry, when I was merging with |
@basil what confused me though was that the checks showed green. Did this test actually pass without any fix? |
They were green because I had posted an unrelated set of changes that happened to pass. |
Adding a test case for JENKINS-57253. The last assertion currently fails due to a leaked executor, as described in the bug, so I have marked the test with
@Ignore
. When the bug is fixed, the@Ignore
annotation can be removed.