gnodet opened a new pull request, #22292:
URL: https://github.com/apache/camel/pull/22292
## Summary
The gulpfile.js glob pattern `../dsl/**/src/main/docs/...` uses `**` which
recurses into `target/` directories created by concurrent Maven builds. When a
test process deletes `target/surefire` while gulp is scanning, it causes an
`ENOENT` error that fails the docs build:
```
Error: ENOENT: no such file or directory, scandir
'.../dsl/camel-kamelet-main/target/surefire'
```
This is a race condition that occurs intermittently when `docs` and `dsl`
modules build in parallel (e.g., with mvnd).
**Fix:** Replace `**` with explicit depth patterns using `!(target)` extglob
to prevent scanning into `target/` directories:
- `dsl/src/main/docs/...` for depth-0 (`dsl.adoc`)
- `dsl/{*,*/!(target)}/src/main/docs/...` for depth 1-2
## Test plan
- [x] Verified the glob patterns still match all expected dsl doc files
(`dsl.adoc`, `jbang.adoc`, etc.)
- [x] CI green on PR #22207 which includes this fix
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]