build icon indicating copy to clipboard operation
build copied to clipboard

Build step error in `citgm-smoker` configuration

Open lpinca opened this issue 8 months ago • 4 comments

The last build step in https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/configure generates the following error

+ find /home/iojs/tmp -mtime +3
+ xargs rm -rf
+ temp=/home/iojs/tmp/citgm_tmp
+ rm -rf '/home/iojs/tmp/citgm_tmp/*'
+ mkdir /home/iojs/tmp/citgm_tmp
mkdir: cannot create directory ‘/home/iojs/tmp/citgm_tmp’: No such file or directory
+ true

I think the issue is that the /home/iojs/tmp directory itself is deleted when the find /home/iojs/tmp -mtime +3 | xargs rm -rf command is executed. The problem then is that os.tmpdir() returns a directory that does not exists.

A quick fix might be to change find /home/iojs/tmp -mtime +3 | xargs rm -rf to find /home/iojs/tmp/* -mtime +3 | xargs rm -rf

Refs: https://github.com/nodejs/node/pull/57005#issuecomment-2655694578 Refs: https://github.com/nodejs/node/pull/57005#issuecomment-2665385631

lpinca avatar Feb 18 '25 14:02 lpinca