Setup-lisp tests often fails under OS when trying to call `ros config` step
- Dominant language
- Common Lisp
- Stars
- 30
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Because of this strange error about an unability to create a temporary directory:
```
Unhandled SB-INT:SIMPLE-FILE-ERROR in thread #:
Can't create directory /var/folders/n2
Backtrace for: #
0: (SB-DEBUG::DEBUGGER-DISABLED-HOOK # # :QUIT T)
1: (SB-DEBUG::RUN-HOOK SB-EXT:*INVOKE-DEBUGGER-HOOK* #)
2: (INVOKE-DEBUGGER #)
3: (ERROR SB-INT:SIMPLE-FILE-ERROR :PATHNAME #P"/var/folders/n2/pt_35rc53tdgkld9531s2tfh0000gn/T/tmp" :FORMAT-CONTROL "Can't create directory ~A~:[~;,~%a file with ~
the same name already exists.~]" :FORMAT-ARGUMENTS ("/var/folders/n2" NIL))
4: (SB-KERNEL::%FILE-ERROR #P"/var/folders/n2/pt_35rc53tdgkld9531s2tfh0000gn/T/tmp" "Can't create directory ~A~:[~;,~%a file with ~
the same name already exists.~]" "/var/folders/n2" NIL)
5: (ENSURE-DIRECTORIES-EXIST #P"/var/folders/n2/pt_35rc53tdgkld9531s2tfh0000gn/T/tmp" :VERBOSE NIL :MODE 511)
6: (UIOP/STREAM:CALL-WITH-TEMPORARY-FILE # :WANT-STREAM-P NIL :WANT-PATHNAME-P T :DIRECTION :IO :KEEP NIL :AFTER NIL :DIRECTORY NIL :TYPE "tmp" :PREFIX NIL :SUFFIX NIL :ELEMENT-TYPE NIL :EXTERNAL-FORMAT NIL)
[7](https://github.com/40ants/setup-lisp/actions/runs/8690838915/job/23831663538?pr=25#step:5:8): (UIOP/RUN-PROGRAM::%CALL-WITH-PROGRAM-IO UIOP/RUN-PROGRAM:SLURP-INPUT-STREAM # NIL # :OUTPUT :STRING NIL # :ELEMENT-TYPE NIL :EXTERNAL-FORMAT NIL)
8: (UIOP/RUN-PROGRAM::%USE-SYSTEM "/usr/local/bin/ros roswell-internal-use version confdir" :OUTPUT :STRING :ERROR-OUTPUT :INTERACTIVE)
[9](https://github.com/40ants/setup-lisp/actions/runs/8690838915/job/23831663538?pr=25#step:5:10): (ROSWELL:ROSWELL ("roswell-internal-use" "version" "confdir") :STRING T)
[10](https://github.com/40ants/setup-lisp/actions/runs/8690838915/job/23831663538?pr=25#step:5:11): (MAIN)
```
Usually this error go away after a retry.
Contributor guide
No contributing guide indexed for this repository
Research direction
Look at the test that calls `ros config` in the setup-lisp repository, likely in the test suite for the GitHub Action. The error occurs when creating a temporary directory in `/var/folders`. Investigate the environment where the test runs, possibly macOS, and why directory creation fails intermittently. Check if the test retry logic exists or needs to be added. Running the failing test locally and examining the temporary directory handling in the action's code will help.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100