Build step error in `citgm-smoker` configuration
Nobody has claimed this yet.
- Dominant language
- Jinja
- Stars
- 541
- Forks
- 185
- Avg merge
- 22h 15m
- Merged PRs (30d)
- 4
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the citgm-smoker configuration at the linked CI job and inspect the cleanup commands shown in the build log. Check how os.tmpdir() is used, then verify the cleanup step leaves the temporary directory available and the final mkdir succeeds in a completed build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, shell
- Domain
- build-system, ci-cd
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100