Skip to content
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

Switch LightupAppActivation tests to component tests targeting additional deps #78139

Merged
merged 2 commits into from
Nov 10, 2022

Conversation

elinor-fung
Copy link
Member

The LightupAppActivation tests are testing handling of additional deps. The actual app and lib are not really interesting, so we can switch them to the dependency resolution tests that use a mock coreclr and don't actually run an app. On my machine, this goes from ~20s to run the deleted tests to ~700ms to run the new tests.

Deleted tests and their replacements:

  • Muxer_activation_of_LightupApp_NoLightupLib_Fails, Muxer_activation_of_LightupApp_WithLightupLib_Succeeds
    • covered by AdditionalDeps.DepsFile
  • Muxer_activation_of_LightupApp_WithLightupLib_and_Roll_Backwards_From_Release_To_Release_Succeeds, Muxer_activation_of_LightupApp_WithLightupLib_and_Roll_Backwards_From_Prerelease_To_Release_Succeeds, Muxer_activation_of_LightupApp_WithLightupLib_and_Roll_Backwards_Fails
    • covered by AdditionalDeps.DepsDirectory
  • Additional_Deps_Lightup_Folder_With_Bad_JsonFile
    • covered by AdditionalDeps.InvalidJson
  • SharedFx_With_Higher_Version_Wins_Against_Additional_Deps, SharedFx_With_Lower_Version_Loses_Against_Additional_Deps
    • covered by AdditionalDepsPerAssemblyVersionResolution.AppWithSameAssemblyAsFramework

@ghost
Copy link

ghost commented Nov 10, 2022

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

Issue Details

The LightupAppActivation tests are testing handling of additional deps. The actual app and lib are not really interesting, so we can switch them to the dependency resolution tests that use a mock coreclr and don't actually run an app. On my machine, this goes from ~20s to run the deleted tests to ~700ms to run the new tests.

Deleted tests and their replacements:

  • Muxer_activation_of_LightupApp_NoLightupLib_Fails, Muxer_activation_of_LightupApp_WithLightupLib_Succeeds
    • covered by AdditionalDeps.DepsFile
  • Muxer_activation_of_LightupApp_WithLightupLib_and_Roll_Backwards_From_Release_To_Release_Succeeds, Muxer_activation_of_LightupApp_WithLightupLib_and_Roll_Backwards_From_Prerelease_To_Release_Succeeds, Muxer_activation_of_LightupApp_WithLightupLib_and_Roll_Backwards_Fails
    • covered by AdditionalDeps.DepsDirectory
  • Additional_Deps_Lightup_Folder_With_Bad_JsonFile
    • covered by AdditionalDeps.InvalidJson
  • SharedFx_With_Higher_Version_Wins_Against_Additional_Deps, SharedFx_With_Lower_Version_Loses_Against_Additional_Deps
    • covered by AdditionalDepsPerAssemblyVersionResolution.AppWithSameAssemblyAsFramework
Author: elinor-fung
Assignees: -
Labels:

area-Host

Milestone: -

Copy link
Member

@vitek-karas vitek-karas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! :shipit:

@elinor-fung elinor-fung merged commit 6a67628 into dotnet:main Nov 10, 2022
@elinor-fung elinor-fung deleted the additional-deps-test branch November 10, 2022 17:17
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants