Uh oh!
There was an error while loading. Please reload this page.
add test and fix #3254 - #3255
Conversation
msftclas
commented
Jun 24, 2017
@matthid, It will cover your contributions to all Microsoft-managed open source projects. |
msftclas
commented
Jun 24, 2017
@matthid, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request. |
eiriktsarpalis
commented
Jun 24, 2017
@matthid good catch, this should never have been added. Could also remove the |
| [<Test>] | ||
| member this.RunSynchronouslyCancellationWithDelayedResult () = |
There was a problem hiding this comment.
Could you add some kind of timeout to this test? Assuming the fix is not in place that test would run forever. Perhaps configurable via nunit?
There was a problem hiding this comment.
I actually thought about that, but to be honest there are a lot of tests with similar expectations. Not sure a timeout there is worth it, but I can of course add one if you don't agree
There was a problem hiding this comment.
as long as it doesn't obscure the intention of the test I guess
There was a problem hiding this comment.
matthid
commented
Jun 24, 2017
Yep added. |
eiriktsarpalis
commented
Jun 24, 2017
@matthid this issue seems related #2770 (comment) could you also include this here? @saul |
matthid
commented
Jun 24, 2017
@eiriktsarpalis Any idea how a test for this would look like or what wrong behavior this would expose? |
eiriktsarpalis
commented
Jun 24, 2017
That's correct. It's splitting hairs really, but I happened to spot this in the same PR you're reverting. |
matthid
commented
Jun 24, 2017
@eiriktsarpalis ok perfect, added it :) |
eiriktsarpalis
commented
Jun 24, 2017
Cheers, lgtm |
matthid
commented
Jun 24, 2017
@eiriktsarpalis It seems like something doesn't like the timeout attribute, ideas? |
This reverts commit aeeaa50.
dsyme
commented
Jun 26, 2017
Ugh... good catch, and I'm glad we found this now rather than later. |
dsyme
left a comment
There was a problem hiding this comment.
I need to look at this again after reading further comments
| args.aux.trampolineHolder.Protect((fun () -> | ||
| if completedTask.IsCanceled then | ||
| if useCcontForTaskCancellation | ||
| then args.aux.ccont (new OperationCanceledException(args.aux.token)) |
There was a problem hiding this comment.
Is this an intrinsic part of this fix? Or is only https://github.com/Microsoft/visualfsharp/pull/3255/files#diff-34ee82347e9e0b47265fcecaa4850174R1567 needed? If the latter, please remove this change to keep the changes entirely separate,
| else | ||
| args.cont completedTask.Result)) |> unfake | ||
| task.ContinueWith(Action<Task<'T>>(continuation), continueWithExtra args.aux.token) |> ignore |> fake |
There was a problem hiding this comment.
Is this an intrinsic part of this fix? Or is only https://github.com/Microsoft/visualfsharp/pull/3255/files#diff-34ee82347e9e0b47265fcecaa4850174R1567 needed? If the latter, please remove this change to keep the changes entirely separate,
| if completedTask.IsCanceled then | ||
| if useCcontForTaskCancellation | ||
| then args.aux.ccont (new OperationCanceledException(args.aux.token)) | ||
| then args.aux.ccont (new OperationCanceledException()) |
There was a problem hiding this comment.
Is this an intrinsic part of this fix? Or is only https://github.com/Microsoft/visualfsharp/pull/3255/files#diff-34ee82347e9e0b47265fcecaa4850174R1567 needed? If the latter, please remove this change to keep the changes entirely separate,
dsyme
commented
Jun 26, 2017
My understanding is that only the one line change https://github.com/Microsoft/visualfsharp/pull/3255/files#diff-34ee82347e9e0b47265fcecaa4850174L1575 is required for the fix, the rest is a different issue? |
matthid
commented
Jun 26, 2017
The change was requested because it's part of the commit which broke this. I honestly don't care if it is part of this or not as I noted above it's basically changing nothing... So I don't understand why I had to add it (it's basically cleanup) nor why now I should remove it again :/ So I'm fine either way but don't make me change that back and forth. @dsyme Did you see the above discussion and still think I should remove it? /cc @eiriktsarpalis |
dsyme
commented
Jun 26, 2017
Remove it please to minimise the required change, thanks |
dsyme
commented
Jun 27, 2017
@matthid I updated the PR directly, thanks |
dsyme
commented
Jun 27, 2017
@KevinRansom this is ready |
matthid
commented
Jun 27, 2017
@dsyme thanks. i'd probably rebase it and remove all those commits. but if you are fine with them I can leave it as is |
matthid
commented
Jun 27, 2017
Problem is I'm quite busy the mext days so it could take a while |
dsyme
commented
Jun 27, 2017
@matthid No problem - we will squash & merge in any case :) |
See #3254
/cc @eiriktsarpalis