Address how and where we end the AsynchronousExecution#3
Closed
svanoort wants to merge 7 commits intojglick:logs-JENKINS-38381from
Closed
Address how and where we end the AsynchronousExecution#3svanoort wants to merge 7 commits intojglick:logs-JENKINS-38381from
svanoort wants to merge 7 commits intojglick:logs-JENKINS-38381from
Conversation
Owner
|
As an amendment to jenkinsci#27. |
Author
|
Precisely. |
jglick
approved these changes
Oct 4, 2018
Owner
jglick
left a comment
There was a problem hiding this comment.
Looks OK. Do tests pass with this?
| } | ||
| } else if (execution == null) { | ||
| } else if (execution == null && completed != Boolean.TRUE) { | ||
| needsToPersist = true; // Make sure we save toggled state |
Owner
There was a problem hiding this comment.
Not really related to changes in JEP-210, right?
Author
There was a problem hiding this comment.
Not as such, but more correcting for some issues in the logic.
| setResult(r); | ||
| completed = Boolean.TRUE; | ||
| duration = Math.max(0, System.currentTimeMillis() - getStartTimeInMillis()); | ||
|
|
Owner
|
Passes for me, with some flakes such as from r.waitForCompletion(b);
assertFalse(b.executionLoaded); // herewhich I suspect are due to a race condition between |
Author
|
@jglick Still sorting out some test oddities |
Owner
|
Still getting some flakes: and |
…gered CI-only failures
This was referenced Oct 4, 2018
Author
|
For whatever reason, what should be a trivial fix is not, and oddly the original does not trigger failures (CI only for me, see to be locally irreproducible), so... I guess we roll with it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Corrects for cases where the AsynchronousExecution could be left dangling inadvertently.