This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch fix-docs-gulp-target-race in repository https://gitbox.apache.org/repos/asf/camel.git
commit 8871fa47af5fa839877eca3e784254b895ce2078 Author: Guillaume Nodet <[email protected]> AuthorDate: Fri Mar 13 20:46:29 2026 +0100 Fix flaky docs gulp build by excluding target directories from glob scanning The gulp `symlink:asciidoc:others` task uses a `**` glob pattern to scan DSL module directories. During parallel CI builds, temp directories under `target/` (e.g. `templates-tmp87842628`) can appear and disappear while the glob is scanning, causing ENOENT race conditions. Exclude `**/target/**` from `gulp.src()` calls in both `createSymlinks` and `createExampleSymlinks` functions, since build output directories should never contain documentation source files. Co-Authored-By: Claude Opus 4.6 <[email protected]> --- docs/gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/gulpfile.js b/docs/gulpfile.js index c41af376504e..39d7dc056961 100644 --- a/docs/gulpfile.js +++ b/docs/gulpfile.js @@ -326,7 +326,7 @@ const tasks = Array.from(sourcesMap).flatMap(([type, definition]) => { } }) - return gulp.src(source) + return gulp.src(source, { ignore: ['**/target/**'] }) .pipe(filterFn) .pipe( map((file, done) => { @@ -409,7 +409,7 @@ const tasks = Array.from(sourcesMap).flatMap(([type, definition]) => { return done() } - return gulp.src(source) // asciidoc files + return gulp.src(source, { ignore: ['**/target/**'] }) // asciidoc files .pipe(through2.obj(extractExamples)) // extracted example files // symlink links from a fixed directory, i.e. we could link to // the example files from `destination`, that would not work for
