[Clam-devel] CLAM & Testfarm: some comments and questions

Hernán Ordiales h at ordia.com.ar
Fri Nov 14 09:49:01 PST 2008


On Fri, Nov 14, 2008 at 12:22 PM, Pau Arumí <parumi at iua.upf.edu> wrote:
> El dj 13 de 11 de 2008 a les 00:00 -0200, en/na Hernán Ordiales va
> escriure:
>> hi all, i'm back after the mentor summit where i had the opportunity
>> to meet david (finally not also parumi, what a pity!)
>>
>> Trying to get a testfarm client working i noticed some things. I got
>> it working locally but i'd like to send the data to the main testfarm
>> server, specially to test some pyclam related things.
>>
>> First, i'm not sure if it's possible to connect to the server beyond
>> the LAN where it is, is possible? which url should i use? i tried many
>> ones with no success (http://clam.iua.upf.edu/testfarm/, some IP based
>> from scripts, etc)
>
> Try this:
> remote_server_url = 'http://ocata48123.upf.es/testfarm_server'

i'm getting this error, the same than with previous attempts, i forgot
to mention. That's why i asked if it is possible or not

<HTML><HEAD>
<TITLE>Access Denied</TITLE>
</HEAD>
<BODY>
<FONT face="Helvetica">
<big><strong></strong></big><BR>
</FONT>
<blockquote>
<TABLE border=0 cellPadding=1 width="80%">
<TR><TD>
<FONT face="Helvetica">
<big>Access Denied (policy_denied)</big>
<BR>
<BR>
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
Your system policy has denied access to the requested URL.
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">

</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica" SIZE=2>
<BR>
For assistance, contact your network support team.
</FONT>
</TD></TR>
</TABLE>
</blockquote>
</FONT>
</BODY></HTML>


>> About the client example in the repo, seems the script is hardcoded to
>> look for testfarm in ~/testfarm/src, so why not look for it in the
>> standard installed path?
>>
>> To achieve this i had to import, after installing it with 'sudo python
>> install.py' of course, in this way (i'm sending the patch as an
>> atachment)
>> from testfarm.task import *
>> from testfarm.project import Project
>> from testfarm.client import Client
>> from testfarm.runner import Runner
>>
>> I had to comment the line 'from commands import getoutput' because i
>> couldn't find the 'commands' module in any place (neither testfarm nor
>> clam repo)
>> i also had to comment the 'first_run_always = False' line at the end
>> of the script to get it working
>>
>> are you using a different version than the one at testfarm repo?
>
> Yes I have local modifications because issues with the sourceforge
> subversion (I'm not able to commit :-( )

uh
i can't remember well, but recently i had to change something wrt. to
sourceforge svn login, i'm not sure at the moment but maybe something
related to change the password or login using ssh authentication


>> If someone wants to test pyclam, these are the tasks you need to add
>> to the testfarm client:
>
>
>> clam.add_subtask('pyCLAM update', [
>>     'cd %(sandbox)s/CLAM/pyclam'%localDefinitions,
>>     {CMD:'svn log -r BASE:HEAD', INFO: lambda x:x },
>>     './generate_bindings.py && scons',
>> ] )
>> clam.add_subtask('pyCLAM Unit Tests', [
>>     'cd %(sandbox)s/CLAM/pyclam'%localDefinitions,
>>     'cd test',
>>     {INFO : lambda x:startTimer() },
>>     {CMD: './UnitTestsSuite.py'},
>>     {STATS : lambda x:{'exectime_unittests' : ellapsedTime()} },
>> ] )
>
> Nice! I'll integrate it soon
>
> BTW, let's try to meet at #clam next week to chat about this and other
> things!

ok!

> Cheers
>
> Pau
>
>
> _______________________________________________
> Clam-devel mailing list
> Clam-devel at llistes.projectes.lafarga.org
> https://llistes.projectes.lafarga.org/cgi-bin/mailman/listinfo/clam-devel
>



-- 
Hernán
http://h.ordia.com.ar
GnuPG: 0xEE8A3FE9




More information about the clam-devel mailing list