Repository navigation
Fix how test find the ref pack to compile test cases against - #2610
Conversation
With latest VS we get a 6.0.2 runtime but only 6.0.1 ref pack. The tests so far expected to use the exact same version, but there's no hard rule that it will be the case. Change the algorithm to search for highest available major.minor.* ref pack if the matching one doesn't exist.
|
Without this fix it's tedious to run tests on Windows. It requires using the |
|
I'm going to merge this to unblock local development. Please leave any feedback you might have and I'll fix it in a subsequent PR. |
…2610) With latest VS we get a 6.0.2 runtime but only 6.0.1 ref pack. The tests so far expected to use the exact same version, but there's no hard rule that it will be the case. Change the algorithm to search for highest available major.minor.* ref pack if the matching one doesn't exist.
…2611) With latest VS we get a 6.0.2 runtime but only 6.0.1 ref pack. The tests so far expected to use the exact same version, but there's no hard rule that it will be the case. Change the algorithm to search for highest available major.minor.* ref pack if the matching one doesn't exist. Co-authored-by: Vitek Karas <[email protected]>
|
This is surprising. Are you sure the ref pack can lag and is it only at the minor version? |
|
I don't see a reason why they would need to be in sync. If the runtime ships a patch for functionality, but no impact on public API, then there's no reason to release a new ref pack. I coded it for patch version only because that feels very safe (the public API surface should barely change in patch releases, and it's good enough for our tests). Technically it could be made for both minor and patch, but then there's higher risk of discrepancies in the API surfaces. |
|
@jtschuster was having trouble with this, we though it was a bad install or similar. Thanks for fixing it! Changes look good to me :D |
In theory yes but there is usually some ref pack change as well like dotnet/runtime#62859 |
|
I'm trying to ask some other people about this - apparently it happened to me and Jakson through VS update, but it didn't happen to Andy who installed it manually - so there's something fishy. I still think it's a good idea to keep this code in the linker as it makes the tests robust to these kind of changes - and I don't see anything wrong with it in the first place. |
|
Other people are running into this too: dotnet/installer#13237 |
|
Thanks @MichalStrehovsky for the link - my problem is kind of the opposite (I'm missing the new ref pack, but have the old one), but I guess it's the same underlying problem. |
* Fix how test find the ref pack to compile test cases against (#2610) With latest VS we get a 6.0.2 runtime but only 6.0.1 ref pack. The tests so far expected to use the exact same version, but there's no hard rule that it will be the case. Change the algorithm to search for highest available major.minor.* ref pack if the matching one doesn't exist. * Specify SDK version in global.json (#2592) Co-authored-by: Vitek Karas <[email protected]> Co-authored-by: Sven Boemer <[email protected]>
…linker#2610) With latest VS we get a 6.0.2 runtime but only 6.0.1 ref pack. The tests so far expected to use the exact same version, but there's no hard rule that it will be the case. Change the algorithm to search for highest available major.minor.* ref pack if the matching one doesn't exist. Commit migrated from dotnet/linker@76ffc18
…linker#2610) (dotnet/linker#2611) With latest VS we get a 6.0.2 runtime but only 6.0.1 ref pack. The tests so far expected to use the exact same version, but there's no hard rule that it will be the case. Change the algorithm to search for highest available major.minor.* ref pack if the matching one doesn't exist. Co-authored-by: Vitek Karas <[email protected]> Commit migrated from dotnet/linker@a8783ba
* Fix how test find the ref pack to compile test cases against (dotnet/linker#2610) With latest VS we get a 6.0.2 runtime but only 6.0.1 ref pack. The tests so far expected to use the exact same version, but there's no hard rule that it will be the case. Change the algorithm to search for highest available major.minor.* ref pack if the matching one doesn't exist. * Specify SDK version in global.json (dotnet/linker#2592) Co-authored-by: Vitek Karas <[email protected]> Co-authored-by: Sven Boemer <[email protected]> Commit migrated from dotnet/linker@f7e921c
With latest VS we get a 6.0.2 runtime but only 6.0.1 ref pack. The tests so far expected to use the exact same version, but there's no hard rule that it will be the case.
Change the algorithm to search for highest available major.minor.* ref pack if the matching one doesn't exist.