Skip to content
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

Permission denied in post job cleanup on Windows #583

Closed
2 of 5 tasks
LVMVRQUXL opened this issue Jan 4, 2024 · 4 comments
Closed
2 of 5 tasks

Permission denied in post job cleanup on Windows #583

LVMVRQUXL opened this issue Jan 4, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@LVMVRQUXL
Copy link

Description:
I'm getting a permission denied error in the post job cleanup step on Windows.

Here's a screenshot of the corresponding run in kotools/types/integration#7411214442 workflow:

Screenshot

Task version:
3.11.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted
@LVMVRQUXL LVMVRQUXL added bug Something isn't working needs triage labels Jan 4, 2024
LVMVRQUXL added a commit to LVMVRQUXL/LVMVRQUXL that referenced this issue Jan 4, 2024
@HarithaVattikuti
Copy link
Contributor

Hello, @LVMVRQUXL ! Thank you for reporting this issue, we will look into it :)

LVMVRQUXL added a commit to LVMVRQUXL/LVMVRQUXL that referenced this issue Feb 27, 2024
LVMVRQUXL added a commit to LVMVRQUXL/LVMVRQUXL that referenced this issue Feb 27, 2024
@mahabaleshwars
Copy link
Contributor

Hello @LVMVRQUXL, to resolve this issue, it's recommended to halt Gradle post-testing. Add the subsequent code into the workflow:

- name: Stop Gradle
  run: ./gradlew --stop

This should be inserted into your 'windows-test' job within the workflow. The reason to add this step is to ensure that the Gradle daemon isn't holding onto any file locks when the post job cleanup step runs. If the Gradle daemon is holding onto a file lock, it can cause the tar command in the post job cleanup step to fail, as you've seen. This action will enable successful cache storage. A screenshot of the adjusted workflow has been attached for your reference. Please confirm if the problem has been addressed.

@LVMVRQUXL
Copy link
Author

Hello @mahabaleshwars. Thank you for your suggestion, but I stoped using Windows for testing projects in GitHub Actions. It takes too much time comparing to Ubuntu or macOS runners.

@mahabaleshwars
Copy link
Contributor

Hi @LVMVRQUXL, the solution for the mentioned issue is provided above. Kindly verify if it resolves your problem. I'll be closing this ticket now, but don't hesitate to contact if you experience any further issues related to this ticket or any other topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants