-
Notifications
You must be signed in to change notification settings - Fork 6
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
CI: Running tests removes the IRC package, and other local-install corruptions #121
Comments
@sjrct Tagging you in this, since I think you are the one that wrote these test cases. Suggestions on how to proceed? |
From for pkgpath in bot.config["package-path"]:
path = os.path.join(pkgpath, name)
if os.path.exists(path):
shutil.rmtree(path)
print("Removed '{}' installed to '{}'.".format(name, path))
success = True We delete packages from all applicable |
Opened #122 to track this portion of the bug. Leaving this one open since there's still work to be fixed here: CLI tests should be totally self-contained, and not affect packages outside of its path (therefore, we should probably force I'd rather see coverage decrease in |
The solution for tests I think would be to limit the |
I'll work on this. |
All tests should be running in a totally different namespace, and NOT using the packages directory as part of the cloned repo. This is a severe bug, as it messes with the typical local Halibot development environment.
Furthermore, we shouldn't test
fetch
as part of the cli tests, since that depends on a repo server being accessible -- a failure on the side of the repo server SHOULD NOT lead to a test failure.The text was updated successfully, but these errors were encountered: