Skip to content

WSL and WSL2 test runs #42011

Closed
Closed

Description

@adamsitnik

#40727 has shown that it's possible to have WSL-specific bugs and that they are important to our customers and us

We have provided a fix (#40851) but it would be great if we could prevent similar issues to reoccur in the future.

@danmosemsft are there any plans to add WSL test runs to our CI?

Activity

  1. added
    os-windows-wsl
    on Sep 9, 2020
  2. added
    untriaged
    on Sep 9, 2020
  3. EgorBo commented on Sep 9, 2020

    @EgorBo
    Member

    there can be also WSL-specific performance issues, e.g. #24839

  4. danmoseley commented on Sep 9, 2020

    @danmoseley
    Contributor

    It would be nice to matrix it into the rolling runs somehow. What distro would be most interesting? I assume we need both WSL1 and WSL2 represented?

    @jaredpar owns this matrix.

  5. ViktorHofer commented on Sep 9, 2020

    @ViktorHofer
    Member

    I wouldn't invest in WSL1. There are multiple test failures with it, because of the kernel not being complete.

  6. danmoseley commented on Sep 9, 2020

    @danmoseley
    Contributor

    I wonder whether we would be confident enough to drop tests on distro X (presumably in docker) in favor of X in WSL2.

  7. ViktorHofer commented on Sep 9, 2020

    @ViktorHofer
    Member

    AFAIK WSL2 remains to be a development only environment. I think we should always prefer execution environments over development only environments in our testing. Just my 5c.

  8. danmoseley commented on Sep 9, 2020

    @danmoseley
    Contributor

    To be a useful development environment the tests need to reliably pass.

  9. adamsitnik commented on Sep 10, 2020

    @adamsitnik
    MemberAuthor

    WSL2 remains to be a development only environment

    this is true, but there are some tools like PowerShell Core that need to work properly in this environment ;)

    I think we should always prefer execution environments over development only environments in our testing.

    I agree. This is why we should most probably add new CI leg(s) rather that change the existing ones

  10. removed
    untriaged
    on Sep 11, 2020
  11. added this to the 6.0.0 milestone on Sep 11, 2020
  12. iSazonov commented on Sep 14, 2020

    @iSazonov
    Contributor

    What distro would be most interesting?

    You could start with Ubuntu LTS 18/20.

  13. ViktorHofer commented on Sep 26, 2020

    @ViktorHofer
    Member

    there can be also WSL-specific performance issues, e.g. #24839

    This is WSL1 specific. Do we know if such issues can happen on WSL2 only? Wondering if we need the extra coverage if WSL2 behaves exactly the same as Debian/RedHat/CentOS/etc.

  14. 3 remaining items

  15. dje-dev commented on Oct 16, 2020

    @dje-dev

    Another recent example of a WSL specific performance (concurrency related) issue that suggests test runs are needed: #42994

  16. danmoseley commented on Oct 16, 2020

    @danmoseley
    Contributor

    @dje-dev performance runs are tracked by issues in dotnet/performance. In that specific case, @adamsitnik it seems that we do have a test that sets/gets a thread static, but that scenario didn't not pop out for you in the WSL2 data submissions you analyzed (eg from me) right?

  17. adamsitnik commented on Oct 19, 2020

    @adamsitnik
    MemberAuthor

    but that scenario didn't not pop out for you in the WSL2 data submissions you analyzed (eg from me) right

    it did not, most probably because there was no regression compared to 3.1 (5.0 was as slow as 3.1)

    I could install Ubuntu 18.04 WSL2 on my dual boot PC and compare bare-metal Ubuntu vs WSL2 Ubuntu using the same hardware. My only concern is how actionable would be such an analysis. So far we were trying to avoid WSL2-specific implementations on our side. I could identify WSL2 perf issues and report them as WSL2 product issues.

    @danmosemsft would that be useful?

  18. danmoseley commented on Oct 19, 2020

    @danmoseley
    Contributor

    did not, most probably because there was no regression compared to 3.1 (5.0 was as slow as 3.1)

    oh! of course.

    I could install Ubuntu 18.04 WSL2 on my dual boot PC and compare bare-metal Ubuntu vs WSL2 Ubuntu

    Without more customer reports, I don't think that's necessary.. Also it's not clear what priority we collectively have for fixing such things.

  19. dotnet-policy-service commented on Apr 20, 2025

    @dotnet-policy-service
    Contributor

    Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.

    This process is part of our issue cleanup automation.

  20. added
    backlog-cleanup-candidate
    on Apr 20, 2025
  21. dotnet-policy-service commented on May 4, 2025

    @dotnet-policy-service
    Contributor

    This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.

  22. removed this from the Future milestone on May 4, 2025
  23. locked and limited conversation to collaborators on Jun 4, 2025
  24. removed
    backlog-cleanup-candidate
    on Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Infrastructureos-windows-wsl

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions