You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@IchHabRecht I forked your repo and i noticed it's hang during key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}, everything start working when i remove the hashFiles part. I am continue debug try to figure out what's wrong with hashfiles
I will file issue and fix the runner to handle the loop gracefully, to mitigate, you might want to fix it by stop creating symlink look in your functional test.
Thank you for your feedback. Unfortunately creating the symlink is how functional testing for/with TYPO3 works currently. There is no chance to mitigate that. But I'm a bit surprised that the .Build folder is included in any file search as only the composer cache folder should be cached?! Not sure how things work in the runner but shouldn't only the cache target be included in any hash generation? Is there any way to simple exclude the whole .Build folder from the runner handling?
You set key to ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}, which will make the runner find all files under GitHub.Workspace that match **/composer.json and hash them. the cache target are not included in the hash generation.
We don't support exclusion right now.
If you want the cache key by the composer.json under your repository root, maybe you can do key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }} to avoid the file search
@TingluoHuang thank you so much for your help. I just took this caching script from another action example but didn't realize the composer.json is taken from folders recursively. Changing the path does indeed help to solve my problem.
Removing the glob star in the hashFiles argument does not help in my case: JLHwung/babel@a6b4865, where the cache post action time has outweighed CI execution.
Activity
joshmgross commentedon Nov 14, 2019
Hey @Komar0ff, sorry you're hitting this. We had some service issues the past couple of days, and it's possible that your run was affected by this.
Do you repeatedly see this issue? If so, could you link me to an example run?
nklayman commentedon Nov 16, 2019
I only get this issue on Windows, it works fine on Ubuntu. Here is a pr with runs that take many hours: nklayman/vue-cli-plugin-electron-builder#552, and a specific example.
joshmgross commentedon Nov 20, 2019
@nklayman Could you turn on debug logging and see if you can get another repro?
IchHabRecht commentedon Dec 17, 2019
It seems, I'm having the same issue for one of my repositories https://github.com/IchHabRecht/content_defender/commit/319e623fab7087e70e13474c120d38bd8c9d8d5e/checks?check_suite_id=362349005
I turned on all debug information. Maybe anyone can help me to find the problem.
TingluoHuang commentedon Dec 17, 2019
@IchHabRecht I forked your repo and i noticed it's hang during
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}, everything start working when i remove thehashFilespart. I am continue debug try to figure out what's wrong withhashfilesIchHabRecht commentedon Dec 18, 2019
@TingluoHuang thanks for your work and information. Please let me know if I can do anything to find the problem.
TingluoHuang commentedon Dec 18, 2019
@IchHabRecht looks like your functional tests are creating symlink loop which cause the runner stuck on find all files to hash
I will file issue and fix the runner to handle the loop gracefully, to mitigate, you might want to fix it by stop creating symlink look in your functional test.
IchHabRecht commentedon Dec 18, 2019
Hi @TingluoHuang,
Thank you for your feedback. Unfortunately creating the symlink is how functional testing for/with TYPO3 works currently. There is no chance to mitigate that. But I'm a bit surprised that the .Build folder is included in any file search as only the composer cache folder should be cached?! Not sure how things work in the runner but shouldn't only the cache target be included in any hash generation? Is there any way to simple exclude the whole .Build folder from the runner handling?
TingluoHuang commentedon Dec 18, 2019
@IchHabRecht
in your yaml file:
You set key to
${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}, which will make the runner find all files underGitHub.Workspacethat match**/composer.jsonand hash them. the cache target are not included in the hash generation.We don't support exclusion right now.
If you want the cache key by the
composer.jsonunder your repository root, maybe you can dokey: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}to avoid the file searchIchHabRecht commentedon Dec 19, 2019
@TingluoHuang thank you so much for your help. I just took this caching script from another action example but didn't realize the composer.json is taken from folders recursively. Changing the path does indeed help to solve my problem.
workaround actions/cache#95
JLHwung commentedon Dec 20, 2019
Removing the glob star in the
hashFilesargument does not help in my case: JLHwung/babel@a6b4865, where the cache post action time has outweighed CI execution.nklayman commentedon Jan 2, 2020
I have the same issue as @JLHwung, removing the
**/does not help: https://github.com/nklayman/vue-cli-plugin-electron-builder/runs/306446668fic(ci): disable cache on windows
Use github actions for CI (#552)
TingluoHuang commentedon Jan 2, 2020
This problem are mostly caused by the symlink loop under
node_modules, we are working on change thehashFiles()function to handle symlinkactions/runner#234
nklayman commentedon Jan 2, 2020
My repo does have a symlink to itself in node modules.
cyangOL commentedon Feb 28, 2020
This problem happens randomly with our testing flows.
joshmgross commentedon Apr 2, 2020
👋
hashFileshas been fixed on the runner to correctly handle symlink loops (see actions/runner#234).Can someone confirm that this issue is resolved?
nklayman commentedon Apr 4, 2020
Yep, looks like it works now: https://github.com/nklayman/vue-cli-plugin-electron-builder/runs/560861885?check_suite_focus=true. Thanks for the fix!
jagregory commentedon Apr 5, 2020
Looking good so far. 5 hours down to 25 seconds 😍
I'll run a few more builds through it today, but it's looking great right now. Thanks everyone.