-
Notifications
You must be signed in to change notification settings - Fork 129
Permission issues with GitLab runner #203
Comments
I just set up the latest version of your customized runner on a fresh Ubuntu VM on Azure with the same result:
Anybody any ideas? |
@david-sa Sorry for the late response ... CI issues are always hard to debug :( Could you double check your host-volumes (they must point to the same path |
It seems that the root of the issue is that, in system mode, the phaudit scripts have no write permissions in Adding the The solution was to add
I have seen your builds and I have realized that loc.txt and mess.html are not there. Since you get metrics.html succesfully, for you it would be enough to switch the order of the instructions and to run first phpmetrics, to ensure that _lint directory exists when phploc and phpmd redirect the stdout stream there. |
I forgot to answer your questions, sorry. FWIW I test on fresh Ubuntu or Mint machines using always a fresh install of phd, docker and gitlab-runner. So I'm wondering if you have any further config in your runner host (custom umask, user groups, etc.) If not, when you have time, could you please post the Last thing, the Copy/Paste Detector is the only report of phaudit not streaming to file, would be nice to have them all together:
If at then end you decide that it is convenient to add |
First of all, thank you a lot for the feedback. Moreover, we're already working on phd5 - see https://git.hrzg.de/dmstr/docker-phd-app. And I'd be also happy about a PR for this repo! But also for phd5 ;) |
Depending on the configuration of the runner (system mode / user mode) the CI jobs could fail to create, write or delete the reports output directories. It is fixed by previously creating such directories with 777 permisions. Resolves: phundament#203
Depending on the configuration of the runner (system mode / user mode) the CI jobs could fail to create, write or delete the reports output directories. It is fixed by previously creating such directories with 777 permisions. Fixes phundament#203
Ok, that's a huge optimization! I was having a look to phd5: pretty neat, congratulations! I like that all the CI code is inside the
I have tried GitLab CI with phd5 and the I can't send a PR until the code is in GitHub but it is fixed by coping the
Also, the
That's all. I take the chance to say that I really like phd, keep up the good work! |
Thank you very much for your kind words and your feedback. I didn't have much time to review in the past weeks, but this is still on my list... |
Btw: I recently released a 4.6.0-alpha2 version of our runner. (It should be pretty stable).
|
phd: 4.3.0-beta6; docker: 1.11.0; docker-compose: 1.7.0;
gitlab-runner: 1.1.3; executor: shell;
When I run gitlab-runner in system-mode:
And if I run it in user-mode, test/_lint is created but:
between
make TEST clean-test
andmake TEST run-test
The text was updated successfully, but these errors were encountered: