adoptium / adoptium/infrastructure
windocker: User ID mapping/permissions prevents removal of files in containers
- Dominant language
- Python
- Stars
- 96
- Forks
- 106
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 13
Description
The current jobs are failing to remove some of the files after the build. Suspect they're being extracted via the host system and then deletion is attempted in the container which is failing:
```
18:29:42 Cleaning workspace non-hidden files: C:/workspace/openjdk-build/*
[Pipeline] sh
18:29:44 + rm -rf C:/workspace/openjdk-build/CONTRIBUTING.md C:/workspace/openjdk-build/FAQ.md C:/workspace/openjdk-build/LICENSE C:/workspace/openjdk-build/NOTICE C:/workspace/openjdk-build/README.md C:/workspace/openjdk-build/cyclonedx-lib C:/workspace/openjdk-build/docs C:/workspace/openjdk-build/pipelines C:/workspace/openjdk-build/tools C:/workspace/openjdk-build/workspace
18:29:44 rm: cannot remove 'C:/workspace/openjdk-build/CONTRIBUTING.md': Permission denied
18:29:44 rm: cannot remove 'C:/workspace/openjdk-build/FAQ.md': Permission denied
18:29:44 rm: cannot remove 'C:/workspace/openjdk-build/LICENSE': Permission denied
18:29:44 rm: cannot remove 'C:/workspace/openjdk-build/NOTICE': Permission denied
18:29:44 rm: cannot remove 'C:/workspace/openjdk-build/README.md': Permission denied
18:29:44 rm: cannot remove 'C:/workspace/openjdk-build/cyclonedx-lib': Permission denied
18:29:44 rm: cannot remove 'C:/workspace/openjdk-build/docs': Permission denied
18:29:44 rm: cannot remove 'C:/workspace/openjdk-build/pipelines': Permission denied
18:29:44 rm: cannot remove 'C:/workspace/openjdk-build/tools': Permission denied
[Pipeline] }
```
_Originally posted by @sxa in https://github.com/adoptium/infrastructure/issues/3713#issuecomment-2315921481_
Contributor guide
Research direction
Review the failing cleanup log and the original discussion in issue #3713; trace how files are extracted and removed between the host and container. Done means the workspace cleanup completes without permission-denied errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100