github metacello pero and jenkins matrix builds
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
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.tymchuk@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
On 06.06.2014, at 07:28, Yuriy Tymchuk <yuriy.tymchuk@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.tymchuk@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
On 06 Jun 2014, at 11:19, Max Leske <maxleske@gmail.com> wrote:
On 06.06.2014, at 07:28, Yuriy Tymchuk <yuriy.tymchuk@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.tymchuk@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
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.tymchuk@me.com> wrote:
On 06 Jun 2014, at 11:19, Max Leske <maxleske@gmail.com> wrote:
On 06.06.2014, at 07:28, Yuriy Tymchuk <yuriy.tymchuk@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.tymchuk@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
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/Metacel... Metacello code is not robust enough. It should check for a not-used temporary file name. Check MCGitHubRepository>>projectDirectoryFrom: 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.tymchuk@me.com> wrote:
On 06 Jun 2014, at 11:19, Max Leske <maxleske@gmail.com> wrote:
On 06.06.2014, at 07:28, Yuriy Tymchuk <yuriy.tymchuk@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.tymchuk@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
On 06 Jun 2014, at 13:40, Christophe Demarey <Christophe.Demarey@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/Metacel... Metacello code is not robust enough. It should check for a not-used temporary file name. Check MCGitHubRepository>>projectDirectoryFrom: 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.tymchuk@me.com> wrote:
On 06 Jun 2014, at 11:19, Max Leske <maxleske@gmail.com> wrote:
On 06.06.2014, at 07:28, Yuriy Tymchuk <yuriy.tymchuk@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.tymchuk@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
On 31.05.2014, at 11:10, Yuriy Tymchuk <yuriy.tymchuk@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
participants (3)
-
Christophe Demarey -
Max Leske -
Yuriy Tymchuk