davsclaus opened a new pull request, #30788:
URL: https://github.com/apache/camel/pull/30788

   # Description
   
   Fixes [CAMEL-26497](https://issues.apache.org/jira/browse/CAMEL-26497) 
(reopened): the full Jenkins build of `camel-4.18.x` still fails in `Camel :: 
Docs`, the last time in build #308 (2026-11-24):
   
   ```
   'symlink:json:components' errored
   Error: ENOENT: no such file or directory, stat 
'.../components/camel-ftp/target/ftp/SftpConsumerJailStartingDirectorySymlinkIT/res/home/test.../inbox/missing.txt'
   ```
   
   **Why #29148 did not fix it:** `gulp.src` (glob-stream 8) walks *every* 
directory below the static base of a glob, so `'../components/{*,*/*}/src/...'` 
walks the whole components tree, `target/` included, and stats each symlink it 
finds. The dangling symlink that `SftpConsumerJailStartingDirectorySymlinkIT` 
leaves in `camel-ftp/target` makes that walk fail. An ignore (`!`) glob only 
filters the results; it does not stop the walk. That is why #29148, which 
excluded `target/` from the `others` JSON source, still failed, now in the 
components and languages tasks. glob-stream 8.0.4 does not help either: it only 
ignores ENOENT on `readdir`, not when it resolves a symlink.
   
   **Fix:** the gulpfile resolves the module part of each source glob (the part 
before `/src/`, such as `{*,*/*,*/*/*}` or `**`) itself, without going into 
`target`, `node_modules` or `src` directories, and gives `gulp.src` one glob 
per module. The `!../components/**/target/**` line of #29148 is removed, as it 
is not needed anymore. No new dependencies.
   
   Only `camel-4.18.x` has `docs/gulpfile.js`, so this PR targets that branch 
only.
   
   # Testing
   
   Run locally with Node 18.20.8 (as in the docs build), `yarn gulp` in `docs/`:
   
   | | original gulpfile | this PR |
   |---|---|---|
   | clean tree | OK, 16.7 s | OK, 3.6 s |
   | dangling symlink in `camel-ftp/target/ftp/.../inbox/` (as the IT leaves 
it) | ENOENT, fails | OK |
   | dangling symlink in `dsl/.../target/` | ENOENT, fails | OK |
   
   The generated symlinks (1199 entries, with their targets) and `nav.adoc` 
files are identical to the original gulpfile's output on a clean tree.
   
   Note: `yarn lint` is already broken on this branch (ESLint 10 finds no 
`eslint.config.js`), unrelated to this change.
   
   _Claude Code on behalf of Claus Ibsen (davsclaus)_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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]

Reply via email to