apache / apache/maven-surefire
[SUREFIRE-2269] Error during clean project after build GitHub - Mac OS
- Dominant language
- Java
- Stars
- 461
- Forks
- 588
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 19
Description
**[Slawomir Jaranowski](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=slawekjaranowski)** opened **[SUREFIRE-2269](https://issues.apache.org/jira/browse/SUREFIRE-2269?redirect=false)** and commented
After switch to executing ITs in parallel - SUREFIRE-2266
I observe that last task on GitHub - mvn clean fail from time to time - but only for Mac os ... re-run build helps
There are no more reason ... abut error, only:
```
Caused by: java.io.IOException: Failed to delete /Users/runner/work/maven-surefire/maven-surefire/surefire-its/target
at org.apache.maven.plugins.clean.Cleaner.delete (Cleaner.java:300)
at org.apache.maven.plugins.clean.Cleaner.delete (Cleaner.java:250)
at org.apache.maven.plugins.clean.Cleaner.delete (Cleaner.java:124)
at org.apache.maven.plugins.clean.CleanMojo.execute (CleanMojo.java:252)
```
---
**Affects:** 3.5.1
**Issue Links:**
- [MCLEAN-124](https://issues.apache.org/jira/browse/MCLEAN-124) Provide more accurate reason when can not delete a resource
- [SUREFIRE-2266](https://issues.apache.org/jira/browse/SUREFIRE-2266) Execute ITs in parallel
**Remote Links:**
- [GitHub Pull Request #785
](https://github.com/apache/maven-surefire/pull/785)
Contributor guide
Research direction
Investigate the intermittent Maven clean failure on Mac OS after integration tests were made parallel by SUREFIRE-2266. Start with the GitHub build's final mvn clean task and the linked Pull Request #785; done means the clean step completes reliably without the target deletion error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, java, macos
- Domain
- build-system, ci-cd, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100