-
Notifications
You must be signed in to change notification settings - Fork 11
Remove the FsToolkit.ErrorHandling.TaskResult dependency from the main test project to enable full backwards compat testing with FSharp.Core 6.0.1
#181
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
src/FSharp.Control.TaskSeq.Test/FSharp.Control.TaskSeq.Test.fsproj
Outdated
Show resolved
Hide resolved
…skResult dependency We want to remove the dependency in our tests on FsToolkit.ErrorHandling in PR #181 because it uses a high version of FSharp.Core. In other words, it disallows us to properly test TaskSeq with the lowest-denominator FSharp.Core it was compiled with, which we should do, to ensure stability in the widest range of forward-and-backward compatibility. The SmokeTests library, on the other hand, uses the highest RTM release of FSharp.Core and we don't really care about other deps there.
…er used `TaskResult` in these files anyway We want to remove the dependency in our tests on FsToolkit.ErrorHandling.TaskResult in PR #181 because it uses a high version of FSharp.Core. In other words, it disallows us to properly test TaskSeq with the lowest-denominator FSharp.Core it was compiled with, which we should do, to ensure stability in the widest range of forward-and-backward compatibility. The SmokeTests library, on the other hand, uses the highest RTM release of FSharp.Core and we don't really care about other deps there.
…rom the `TaskSeq.Test` project We want to remove the dependency in our tests on FsToolkit.ErrorHandling.TaskResult in PR #181 because it uses a high version of FSharp.Core. In other words, it disallows us to properly test TaskSeq with the lowest-denominator FSharp.Core it was compiled with, which we should do, to ensure stability in the widest range of forward-and-backward compatibility. The SmokeTests library, on the other hand, uses the highest RTM release of FSharp.Core and we don't really care about other deps there.
…: 6.0.1: achieve best backward compat testing We want to remove the dependency in our tests on FsToolkit.ErrorHandling.TaskResult in PR #181 because it uses a high version of FSharp.Core. In other words, it disallows us to properly test TaskSeq with the lowest-denominator FSharp.Core it was compiled with, which we should do, to ensure stability in the widest range of forward-and-backward compatibility. The SmokeTests library, on the other hand, uses the highest RTM release of FSharp.Core and we don't really care about other deps there.
cee3082 to
32c57b3
Compare
|
Thanks for review @bartelink!! 👍 I've updated the code based on your suggestions and will merge to |
|
@bartelink it looks like you don't have write access, so your review is not unblocking (but I can unblock myself, of course). Maybe I should give you write access? |
…skResult dependency We want to remove the dependency in our tests on FsToolkit.ErrorHandling in PR #181 because it uses a high version of FSharp.Core. In other words, it disallows us to properly test TaskSeq with the lowest-denominator FSharp.Core it was compiled with, which we should do, to ensure stability in the widest range of forward-and-backward compatibility. The SmokeTests library, on the other hand, uses the highest RTM release of FSharp.Core and we don't really care about other deps there.
…er used `TaskResult` in these files anyway We want to remove the dependency in our tests on FsToolkit.ErrorHandling.TaskResult in PR #181 because it uses a high version of FSharp.Core. In other words, it disallows us to properly test TaskSeq with the lowest-denominator FSharp.Core it was compiled with, which we should do, to ensure stability in the widest range of forward-and-backward compatibility. The SmokeTests library, on the other hand, uses the highest RTM release of FSharp.Core and we don't really care about other deps there.
…rom the `TaskSeq.Test` project We want to remove the dependency in our tests on FsToolkit.ErrorHandling.TaskResult in PR #181 because it uses a high version of FSharp.Core. In other words, it disallows us to properly test TaskSeq with the lowest-denominator FSharp.Core it was compiled with, which we should do, to ensure stability in the widest range of forward-and-backward compatibility. The SmokeTests library, on the other hand, uses the highest RTM release of FSharp.Core and we don't really care about other deps there.
…: 6.0.1: achieve best backward compat testing We want to remove the dependency in our tests on FsToolkit.ErrorHandling.TaskResult in PR #181 because it uses a high version of FSharp.Core. In other words, it disallows us to properly test TaskSeq with the lowest-denominator FSharp.Core it was compiled with, which we should do, to ensure stability in the widest range of forward-and-backward compatibility. The SmokeTests library, on the other hand, uses the highest RTM release of FSharp.Core and we don't really care about other deps there.
Apologies; please put me on the drive by commenters list ;) |
|
@bartelink I've given you |
Problem statement
The library
FsToolkit.ErrorHandling.TaskResultis an excellent library, but recently they have introduced non backwards-compatible dependencies that limit our ability to continue using this library in our tests for obvious reasons: we want the tests to be as close to real-world as possible, using the lowest denominator FSharp.Core that theTaskSeqlibrary supports.Since
TaskSeqis backward compatible till FSharp.Core 6.0.1, we should try to test it with that version.Simple solution
The simplest way is to move the dependent tests to SmokeTests (which is only the PoC, ironically showing the problems with lists of Tasks using an oversight of the TaskResult library, where it seems to support lists of Tasks, but not really if they're hot-started, and they always are).
Note that SmokeTests does the opposite, and tests the library, using a a pull of the actual NuGet lib, against recent versions of FSharp.Core.