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

Fix path coverage loading artifacts #1959

Merged
merged 1 commit into from
Nov 27, 2018
Merged

Conversation

ferd
Copy link
Collaborator

@ferd ferd commented Nov 26, 2018

The old path handling routine would force loading a bunch of
applications, but it did not necessarily unload them aside from specific
calls that the other test handlers used to need to do, but no longer
needed under the updated path management of 3.7.0.

The leftover calls in the cover compilation bits caused some apps to be
loaded and to remain loaded before tests started.

Fixes #1958

The old path handling routine would force loading a bunch of
applications, but it did not necessarily unload them aside from specific
calls that the other test handlers used to need to do, but no longer
needed under the updated path management of 3.7.0.

The leftover calls in the cover compilation bits caused some apps to be
loaded and to remain loaded before tests started.
@@ -343,7 +343,6 @@ cover_compile(State, Dirs) ->
?WARN("Directory ~p error ~p", [Dir, Reason])
end
end, Dirs),
rebar_utils:cleanup_code_path(rebar_state:code_paths(State, default)),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Dropped this one because we no longer remove loaded deps, we only set preferential paths. And since cover compilation is done with deps and not plugins, there's no need to put plugins back at the head of the path anymore

@RoadRunnr
Copy link
Contributor

Tested and fixes my issue #1958

@ferd
Copy link
Collaborator Author

ferd commented Nov 27, 2018

Thanks for the confirmation. I'll get the OSX CI to pass (some messed up image download) and merge it then.
Sorry for the inconvenience!

@ferd ferd merged commit 44f74dc into erlang:master Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants