Closed nazrul0 closed 1 year ago
This is caused due to permissions of gradlew and/or runtest files. Do you use a Mac or Linux machine?
Hi Prof. I am on a Windows machine. I have checked my permissions against my other group members and found that they are the same.
My group member on Mac who failed his CI checks before me managed to pass after copying another member's files. When I tried to do the same, I still get errors.
Hmmm, the team member with a mac should update the permissions of the file (gradlew and runtest) and push the same to GitHub. After that, the checks should pass.
Do:
chmod +x
Just to double confirm, we chmod +x to the files where any permission type (e.g. user, group etc.) has x missing?
Member 1:
Member 2:
So in this case, chmod +x will have to done on gradlew.bat and runtest.bat?
Yes, that is correct.
Thank you prof. The Mac user's permissions now look like this after adding chmod +x:
After I have pulled, my permissions still look like these:
The other Windows user in my group is able to pass the CI checks. I have tried pulling and committing from another Windows machine but still fail the CI checks. Are there any further steps I can take?
I have also just notice the following error (which has been present since the beginning):
For reference, this is my pull request: https://github.com/AY2223S1-CS2113-T18-1/tp/pull/7 And this is the checks page: https://github.com/AY2223S1-CS2113-T18-1/tp/actions/runs/3150423996
Solved with the following guides: https://github.com/orgs/community/discussions/26239 https://ionic.zendesk.com/hc/en-us/articles/360000160067-Adding-execute-permissions-using-git
Added execute permissions to my gradlew and runtest files then committed and pushed. This finally fixed the issue. Thanks Prof.
Great! Glad to know you managed to fix it.
I have set up my fork according to the instructions on the tP README. Following Step 2 for Week 7 Tutorial, I have managed to resolve and merge my pull request into my team's repo. However, it shows that all 3 of my checks for my merged commits have failed. Does anyone know which direction I should take in trying to resolve these errors? Attached below are the error logs.