Re: [Pharo-dev] github metacello pero and jenkins matrix builds
On 06 Jun 2014, at 11:19, Max Leske maxle...@gmail.com wrote: On 06.06.2014, at 07:28, Yuriy Tymchuk yuriy.tymc...@me.com wrote: Sorry for bothering guys, but I really get random errors. For example last one I saw is: An attempt to use interactive tools detected, while in non-interactive mode FileDoesNotExistException: '/tmp/github-UkoVnaExportermaster.zip' Can anybody help me to localise the problem? Is the Jenkins configuration wrong? Or I should do things in a completely different way? Did you specigy /tmp as output folder? If so, you should use the working directory (which will be the build directory). You can not assume to have write permissions on /tmp. Yes, that’s the thing. I guess /tmp is used by something in metacello-filetree-github toolchain. That’s why I’m asking because I’ve never worked with is a lot. Uko Uko On 31 May 2014, at 14:40, Yuriy Tymchuk yuriy.tymc...@me.com wrote: Hi guys, So I’m using this fancy metacello github urls, like: github://user/project[:branch|tag|SHA][/path] and some of my Jenkins matrix builds are randomly failing with: Error: /tmp/github-UkoRenrakumaster.zip already exists anyone has an idea how to solve this? Uko
Re: [Pharo-dev] github metacello pero and jenkins matrix builds
Looks like ZnFileSystemUtils are doing this. As far as i understand, the problem occurs when two matrix lobs run at the same time and so one downloads thing into /tmp, and other one encounters a problem. Isn’t this some sort of bug in Zinc? Uko On 06 Jun 2014, at 11:54, Yuriy Tymchuk yuriy.tymc...@me.com wrote: On 06 Jun 2014, at 11:19, Max Leske maxle...@gmail.com wrote: On 06.06.2014, at 07:28, Yuriy Tymchuk yuriy.tymc...@me.com wrote: Sorry for bothering guys, but I really get random errors. For example last one I saw is: An attempt to use interactive tools detected, while in non-interactive mode FileDoesNotExistException: '/tmp/github-UkoVnaExportermaster.zip' Can anybody help me to localise the problem? Is the Jenkins configuration wrong? Or I should do things in a completely different way? Did you specigy /tmp as output folder? If so, you should use the working directory (which will be the build directory). You can not assume to have write permissions on /tmp. Yes, that’s the thing. I guess /tmp is used by something in metacello-filetree-github toolchain. That’s why I’m asking because I’ve never worked with is a lot. Uko Uko On 31 May 2014, at 14:40, Yuriy Tymchuk yuriy.tymc...@me.com wrote: Hi guys, So I’m using this fancy metacello github urls, like: github://user/project[:branch|tag|SHA][/path] and some of my Jenkins matrix builds are randomly failing with: Error: /tmp/github-UkoRenrakumaster.zip already exists anyone has an idea how to solve this? Uko
Re: [Pharo-dev] github metacello pero and jenkins matrix builds
Metacello implementation of the github protocol uses a zip file downloaded from github and then extracted in a temp folder. See https://github.com/dalehenrich/metacello-work/blob/master/repository/Metacello-Platform.pharo30.package/MetacelloPharo30Platform.class/instance/downloadFile.to..st Metacello code is not robust enough. It should check for a not-used temporary file name. Check MCGitHubRepositoryprojectDirectoryFrom: version: zipFileName := '/tmp/github-' , (downloadCacheKey select: [ :c | c isAlphaNumeric ]) , '.zip'. The problem is not related to Zinc. So, Metacello should be fixed. As a workaround, you can also specify to run only 1 instance of your job at a time. Christophe Le 6 juin 2014 à 08:39, Yuriy Tymchuk a écrit : Looks like ZnFileSystemUtils are doing this. As far as i understand, the problem occurs when two matrix lobs run at the same time and so one downloads thing into /tmp, and other one encounters a problem. Isn’t this some sort of bug in Zinc? Uko On 06 Jun 2014, at 11:54, Yuriy Tymchuk yuriy.tymc...@me.com wrote: On 06 Jun 2014, at 11:19, Max Leske maxle...@gmail.com wrote: On 06.06.2014, at 07:28, Yuriy Tymchuk yuriy.tymc...@me.com wrote: Sorry for bothering guys, but I really get random errors. For example last one I saw is: An attempt to use interactive tools detected, while in non-interactive mode FileDoesNotExistException: '/tmp/github-UkoVnaExportermaster.zip' Can anybody help me to localise the problem? Is the Jenkins configuration wrong? Or I should do things in a completely different way? Did you specigy /tmp as output folder? If so, you should use the working directory (which will be the build directory). You can not assume to have write permissions on /tmp. Yes, that’s the thing. I guess /tmp is used by something in metacello-filetree-github toolchain. That’s why I’m asking because I’ve never worked with is a lot. Uko Uko On 31 May 2014, at 14:40, Yuriy Tymchuk yuriy.tymc...@me.com wrote: Hi guys, So I’m using this fancy metacello github urls, like: github://user/project[:branch|tag|SHA][/path] and some of my Jenkins matrix builds are randomly failing with: Error: /tmp/github-UkoRenrakumaster.zip already exists anyone has an idea how to solve this? Uko smime.p7s Description: S/MIME cryptographic signature
Re: [Pharo-dev] github metacello pero and jenkins matrix builds
On 06 Jun 2014, at 13:40, Christophe Demarey christophe.dema...@inria.fr wrote: Metacello implementation of the github protocol uses a zip file downloaded from github and then extracted in a temp folder. See https://github.com/dalehenrich/metacello-work/blob/master/repository/Metacello-Platform.pharo30.package/MetacelloPharo30Platform.class/instance/downloadFile.to..st Metacello code is not robust enough. It should check for a not-used temporary file name. Check MCGitHubRepositoryprojectDirectoryFrom: version: zipFileName := '/tmp/github-' , (downloadCacheKey select: [ :c | c isAlphaNumeric ]) , '.zip'. The problem is not related to Zinc. Thank you for explanation. So, Metacello should be fixed. As a workaround, you can also specify to run only 1 instance of your job at a time. This looks like meaningful walk around. Thanks again. Uko Christophe Le 6 juin 2014 à 08:39, Yuriy Tymchuk a écrit : Looks like ZnFileSystemUtils are doing this. As far as i understand, the problem occurs when two matrix lobs run at the same time and so one downloads thing into /tmp, and other one encounters a problem. Isn’t this some sort of bug in Zinc? Uko On 06 Jun 2014, at 11:54, Yuriy Tymchuk yuriy.tymc...@me.com wrote: On 06 Jun 2014, at 11:19, Max Leske maxle...@gmail.com wrote: On 06.06.2014, at 07:28, Yuriy Tymchuk yuriy.tymc...@me.com wrote: Sorry for bothering guys, but I really get random errors. For example last one I saw is: An attempt to use interactive tools detected, while in non-interactive mode FileDoesNotExistException: '/tmp/github-UkoVnaExportermaster.zip' Can anybody help me to localise the problem? Is the Jenkins configuration wrong? Or I should do things in a completely different way? Did you specigy /tmp as output folder? If so, you should use the working directory (which will be the build directory). You can not assume to have write permissions on /tmp. Yes, that’s the thing. I guess /tmp is used by something in metacello-filetree-github toolchain. That’s why I’m asking because I’ve never worked with is a lot. Uko Uko On 31 May 2014, at 14:40, Yuriy Tymchuk yuriy.tymc...@me.com wrote: Hi guys, So I’m using this fancy metacello github urls, like: github://user/project[:branch|tag|SHA][/path] and some of my Jenkins matrix builds are randomly failing with: Error: /tmp/github-UkoRenrakumaster.zip already exists anyone has an idea how to solve this? Uko
Re: [Pharo-dev] github metacello pero and jenkins matrix builds
Sorry for bothering guys, but I really get random errors. For example last one I saw is: An attempt to use interactive tools detected, while in non-interactive mode FileDoesNotExistException: '/tmp/github-UkoVnaExportermaster.zip' Can anybody help me to localise the problem? Is the Jenkins configuration wrong? Or I should do things in a completely different way? Uko On 31 May 2014, at 14:40, Yuriy Tymchuk yuriy.tymc...@me.com wrote: Hi guys, So I’m using this fancy metacello github urls, like: github://user/project[:branch|tag|SHA][/path] and some of my Jenkins matrix builds are randomly failing with: Error: /tmp/github-UkoRenrakumaster.zip already exists anyone has an idea how to solve this? Uko
Re: [Pharo-dev] github metacello pero and jenkins matrix builds
On 31.05.2014, at 11:10, Yuriy Tymchuk yuriy.tymc...@me.com wrote: Hi guys, So I’m using this fancy metacello github urls, like: github://user/project[:branch|tag|SHA][/path] and some of my Jenkins matrix builds are randomly failing with: Error: /tmp/github-UkoRenrakumaster.zip already exists anyone has an idea how to solve this? You have to delete that file first. Builds reuse the workspace and whatever you leave there will be there for the next build. Try putting ‘rm -f /tmp/github*’ into your build configuration. Uko
Re: [Pharo-dev] github metacello pero and jenkins matrix builds
On 06.06.2014, at 07:28, Yuriy Tymchuk yuriy.tymc...@me.com wrote: Sorry for bothering guys, but I really get random errors. For example last one I saw is: An attempt to use interactive tools detected, while in non-interactive mode FileDoesNotExistException: '/tmp/github-UkoVnaExportermaster.zip' Can anybody help me to localise the problem? Is the Jenkins configuration wrong? Or I should do things in a completely different way? Did you specigy /tmp as output folder? If so, you should use the working directory (which will be the build directory). You can not assume to have write permissions on /tmp. Uko On 31 May 2014, at 14:40, Yuriy Tymchuk yuriy.tymc...@me.com wrote: Hi guys, So I’m using this fancy metacello github urls, like: github://user/project[:branch|tag|SHA][/path] and some of my Jenkins matrix builds are randomly failing with: Error: /tmp/github-UkoRenrakumaster.zip already exists anyone has an idea how to solve this? Uko