Skip to content

Figure out how to use the runtime output directly as the test shared framework #963

Closed

Description

@weshaggard

Today we have a runtime output "bin\runtime\netcoreapp-Windows_NT-Debug-x64" and we have a runtime folder "testhost\netcoreapp-Windows_NT-Debug-x64\shared\Microsoft.NETCore.App\9.9.9" output so that we can run our tests as a shared application. The contents of those 2 directories are currently duplicated. We should figure out a way to hard-link the entire directory (not just the individual files) or a way to configure dotnet.exe such that we can tell it to use our runtime output path as the shared framework.

cc @karajas

@gkhanna79 do you know if there is any way to configure dotnet.exe to use a particular folder as the shared framework? If not do you think that is a feature request that might be doable?

Activity

  1. gkhanna79 commented on Feb 14, 2017

    @gkhanna79
    Member

    Currently, there is not a way to specify that since the host has bunch of invariants built around it being next to shared folder.

    Is there a reason you cannot use the dotnet.exe from the second location above?

  2. weshaggard commented on Feb 14, 2017

    @weshaggard
    MemberAuthor

    Is there a reason you cannot use the dotnet.exe from the second location above?

    If we do that how can we specify the additional test directory. We essentially have the shared framework and test output directory we need to be able to resolve from both.

  3. gkhanna79 commented on Feb 14, 2017

    @gkhanna79
    Member

    Are the additional test artifacts to be consumed part of the app.deps.json?

  4. weshaggard commented on Feb 14, 2017

    @weshaggard
    MemberAuthor

    No they aren't part of the app.deps.json file. The deps file we have today only contains bits from the shared runtime folder. We don't generate a unique deps file for each test project, we could potentially consider doing that if necessary but I would prefer it if we don't need to.

  5. changed the title [-]Figure out how to runtime output with the test shared framework[/-] [+]Figure out how to use the runtime output directly as the test shared framework[/+] on Mar 2, 2017
  6. ViktorHofer commented on Aug 17, 2018

    @ViktorHofer
    Member

    related to enabling VS Test Explorer where we could also specify a custom shared runtime folder instead of directing to our dotnet.exe in corefx. But I think there is a lot of value in fixing the original issue itself as the current duplication of the testhost folder is unfortunate.

    @danmosemsft who is currently the right person to contact for such a feature addition to dotnet.exe?

  7. danmoseley commented on Aug 17, 2018

    @danmoseley
    Contributor

    @ViktorHofer it comes from the core-setup repo, so probably would be an issue there. @steveharter would be a good person to talk to about it.

  8. self-assigned this
    on Sep 20, 2018
  9. ViktorHofer commented on Dec 11, 2018

    @ViktorHofer
    Member

    @ericstj do you have an idea how to proceed here? Ideally I would like to get rid of the custom dotnet in the testhost folder and just use the dotnet in /.dotnet together with the runtime folder which is currently deeply nested in shared/Microsoft.NetCore.App/9.9.9/. Does it make sense to meet with the core-setup team to discuss what can be done here?

  10. ericstj commented on Dec 11, 2018

    @ericstj
    Member

    Yeah, I just hit this yesterday when trying to remove buildtools and ran into the deps.json generation task which is another ugly symptom of this problem. Let's meet with @jeffschwMSFT and @vitek-karas to discuss.

    Do you think you could write up a) our key requirements b) problems with current approach?

  11. ViktorHofer commented on Dec 11, 2018

    @ViktorHofer
    Member

    Sure, will put that on my agenda for today.

  12. wtgodbe commented on Dec 28, 2018

    @wtgodbe
    Member

    @ericstj @ViktorHofer was there any update here?

  13. removed their assignment
    on Jan 2, 2019
  14. ViktorHofer commented on Jan 3, 2019

    @ViktorHofer
    Member

    For getting rid of the dotnet in the testhost folder I opened https://github.com/dotnet/core-setup/issues/4915. Getting rid of the runtime directory is to-do and is tracked by this issue. @wtgodbe do you want to pick that issue? The goal is to get rid of the runtime directory (disabled the binplacing into it) and just have the testhost directory.

  15. wtgodbe commented on Jan 3, 2019

    @wtgodbe
    Member

    Sure thing, I'll look into it when I get a chance.

  16. self-assigned this
    on Jan 3, 2019
  17. ViktorHofer commented on Jun 23, 2019

    @ViktorHofer
    Member

    @wtgodbe I took care of this in dotnet/corefx@b1619b1, I hope you don't mind.

  18. ViktorHofer commented on Jul 24, 2019

    @ViktorHofer
    Member
  19. transferred this issue fromdotnet/corefxon Dec 16, 2019
  20. added
    area-Infrastructure-coreclr
    untriaged
    on Dec 16, 2019
  21. added this to the Future milestone on Dec 16, 2019
  22. removed
    untriaged
    on Apr 9, 2020
  23. ghost locked as resolved and limited conversation to collaborators on Dec 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-Infrastructure-coreclr

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions