-
Notifications
You must be signed in to change notification settings - Fork 257
Reduce depth of Closures being called
#762
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
Conversation
| script.withEnv(inputEnv) { | ||
| body.call() | ||
| } | ||
| def submitted = script.input(message: input.message, id: input.id, ok: input.ok, submitter: input.submitter, |
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.
(ignore WS)
| import org.jenkinsci.plugins.workflow.cps.CpsScript; | ||
|
|
||
|
|
||
| @Deprecated |
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.
Implemented in a few other plugins:
kubernetesdockerdocker-workflowamazon-ecs
|
I presume a timeout in (Linux only; already skipped on Windows for being too slow.) |
…lly, but 192s in CI even when passing, close to the limit
| @Issue("JENKINS-47363") | ||
| // Give this a longer timeout | ||
| @Test(timeout=5 * 60 * 1000) | ||
| @Test(timeout=10 * 60 * 1000) |
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.
And now it is passing in 98s. 🤷
|
This is listed as a breaking change in the release notes, but the details are shady. Can you please clarify whether it's safe to upgrade this plugin for users using docker-workflow or not? And what's the game plan otherwise. |
|
@felipecrs if all goes well, jenkinsci/docker-workflow-plugin#337 should release shortly. Sorry for any disruption. |
|
Got it, that's alright, no need to apologize. |
|
Just as a heads up and in case some other user searches for it, this upgrade caused ongoing builds to fail abruptly with: But new builds seems to be running fine. |
|
Good call; the plugin includes no tests of serial form ( Technically, the difficulty here is |
|
@jglick thank you very much for the detailed response. I must admit I understand little of what you say, but I got the gist: it would be very hard to keep this kind of backwards compatibility, or to avoid this disruption. |
Output from jenkinsci/workflow-support-plugin#305 indicate that a lot of stack frames are
Closure.call. In some cases this is actually helping to structure code. In others, it is not. Two half-cheese, half-sausage pizzas are just one cheese and one sausage pizza.CloudBees-internal issue