Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Fix reset_after_eunit function to stop applications that were loaded during the test runs. #197

Closed
wants to merge 1 commit into from

Conversation

nlebedenco
Copy link

The original implementation used a list comprehension to account for the applications to be stopped,
but the code didn't work as expected leaving applications still running. These applications would later be
killed by the kill_extras function resulting in errors. This fix computes the applications that
must be stopped/unloaded using a digraph of dependencies. I noticed the problem while trying to run eunit tests from lager as a dependency of a project of mine: https://github.com/basho/lager/issues/181. After digging into the problem I came up with the proposed solution. The only thing I'm not sure about is the need to call reconstruct_app_env_vars(Apps). I started to think that we should actually call reconstruct_app_env_vars(OldApps), but I leave the question open for the gurus.

…buring the test runs.

The original implementation used a list comprehension to account for the applications to be stopped,
but the code didn't work as expected leaving applications still running. These applications would later be
killed by the kill_extras function resulting in errors. This fix computes the applications that
must be stopped/unloaded using a digraph of dependencies.
@ghost
Copy link

ghost commented Jan 20, 2014

Perhaps interesting to merge with #216

@ghost
Copy link

ghost commented Jan 20, 2014

cc @slfritchie @jaredmorrow

@ghost
Copy link

ghost commented Jan 21, 2014

Regardless of whether we merge this patch, maybe we should use a slave node for isolation of test runs or test cases (see discussion in #217).

@tsloughter tsloughter closed this Jun 15, 2014
@ghost
Copy link

ghost commented Jun 15, 2014

@tsloughter why did you close this?

@ferd
Copy link
Contributor

ferd commented Jun 15, 2014

Hi, this issue was closed in an attempt to do quick basic filtering, with the benediction of rebar project owners. These issues and pull requests are not issues or code we're spitting on, but given the burden of the task and how much code rot may have happened since these were open is unknown from maintainers at this time. All tickets prior to March 2014 were closed and will be reopened on a per-request basis if we see interest from the reporter or contributor, or if some of the issues reported are still valid after the various patches that have made it since they were opened.

This is a fairly brutal first step to help us get a proper understanding of what is still valid or not, but that has been proven efficient in the past. Sorry for the inconvenience, things should go smoother from there on.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants