-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Package Testing Hangs if Package Being Tested is the Root Directory of the Repository #223
Comments
Leaving this here for visibility: the workaround I linked to in the issue was a bit hacky, but it got the job done. Essentially, I just copied the entirety of the root directory of the repository into a subdirectory, then passed that subdirectory in for the Here's a direct link to the workflow file where I did this, and below is the specific step in my workflow I used to do the folder copy:
All that said, it's not a pretty solution, and maybe not even the best way to do the folder copy itself, since I probably just whipped it up in a hurry back when I was trying to debug this. |
Thanks @trudeaua21 - also leaving this solution for moving into a separate folder:
|
Bug description
When testing a package, if the package is the root directory of the repository, the test runner hangs at least as long as the default timeout for GitHub Actions.
By "package is the root directory of the repository", I mean that the repository structure is as follows:
The opposite case, where this problem does not occur, is when the package is not the root directory of the repository, meaning that the repository structure is as follows:
How to reproduce
.
to theprojectPath
input for the action.Expected behavior
It would be expected for a package in the root of the repository to work the same as a package stored in a subdirectory of the root of the respository.
Additional details
A while ago, I dug into this to try to finish it before the completion of the package testing feature, but to no avail. Here are the comments on the original package testing issue and PR which discuss this problem:
Here is my in-depth info dump on the problem
Here is a description of a workaround I performed
The text was updated successfully, but these errors were encountered: