Erlang/OTP Forums

Author Message

<  RabbitMQ mailing list  ~  URGENT: Run-Tests failing...please help

Guest
Posted: Sun May 04, 2008 9:55 am Reply with quote
Guest
Hi there,
Guest
Posted: Sun May 04, 2008 11:01 am Reply with quote
Guest
Lynton,

Lynton Grice wrote:
> Then I go to the command line, for example
> D:\Python24\Lib\site-packages\qpid-1.0-incubating-M2-python-src\python
> and run python run-tests
>
> I get many many errors
Guest
Posted: Sun May 04, 2008 1:15 pm Reply with quote
Guest
Hi Matthias,
Guest
Posted: Sun May 04, 2008 1:19 pm Reply with quote
Guest
Hi Matthias,

You asked what error the following returns?

> try:
> # here we depend on all nowait fields being named nowait
> *_ f = method.fields.byname["nowait"]_*
> nowait = args[method.fields.index(f)]
> except KeyError:
> nowait = False
>
> It dies on the above code *_f = method.fields.byname["nowait"]..._*

What error does the above return?

This is the exact stack trace in WingIDE....

Obviously the above raises a KEYERROR ....but here is the trace.....Wink

File
"D:\Python24\Lib\site-packages\qpid-1.0-incubating-M2-python-src\python\qpid
\peer.py", line 102, in worker
self.dispatch(self.work.get())
File
"D:\Python24\Lib\site-packages\qpid-1.0-incubating-M2-python-src\python\qpid
\peer.py", line 118, in dispatch
self.delegate.dispatch(channel, message)
File
"D:\Python24\Lib\site-packages\qpid-1.0-incubating-M2-python-src\python\qpid
\delegate.py", line 51, in dispatch
return handler(channel, message)
File
"D:\Python24\Lib\site-packages\qpid-1.0-incubating-M2-python-src\python\qpid
\client.py", line 97, in connection_start
locale=self.client.locale)
File
"D:\Python24\Lib\site-packages\qpid-1.0-incubating-M2-python-src\python\<str
ing>", line 3, in connection_start_ok
File
"D:\Python24\Lib\site-packages\qpid-1.0-incubating-M2-python-src\python\qpid
\peer.py", line 164, in invoke
f = method.fields.byname["nowait"]

Thanks again Wink

Lynton


-----Original Message-----
From: Matthias Radestock [mailto:matthias@lshift.net]
Sent: 04 May 2008 01:01 PM
To: Lynton Grice
Cc: rabbitmq-discuss@lists.rabbitmq.com
Subject: Re: [rabbitmq-discuss] URGENT: Run-Tests failing...please help

Lynton,

Lynton Grice wrote:
> Then I go to the command line, for example
> D:\Python24\Lib\site-packages\qpid-1.0-incubating-M2-python-src\python
> and run python run-tests
>
> I get many many errors...I also tried different variations of python
> run-tests -? to try different SPEC files etc..still errors...here is the
> stack trace...

You must tell the tests to use the official amqp0-8.xml from
https://jira.amqp.org/confluence/display/AMQP/Download, *not* the spec
that ships with qpid. In our test suite we run the tests with
python run-tests -v -s <path-to-official-spec> -I rabbit_failing.txt

where rabbit_failing.txt contains a list of exclusions for tests that
need to skipped because they either depend on a different spec, test
features not implemented in rabbit, or make assumptions about the
implementation. Currently these are:

tests.spec.*
tests.codec.*
tests.codec010.*
tests.connection010.*
tests.spec010.*
tests_0-8.basic.BasicTests.test_consume_no_local
tests_0-8.exchange.HeadersExchangeTests.*
tests_0-8.exchange.RecommendedTypesRuleTests.testHeaders
tests_0-8.exchange.RequiredInstancesRuleTests.testAmqMatch
tests_0-8.basic.BasicTests.test_qos_*
tests_0-8.tx.TxTests.test_auto_rollback
tests_0-8.tx.TxTests.test_rollback

> try:
> # here we depend on all nowait fields being named nowait
> *_ f = method.fields.byname["nowait"]_*
> nowait = args[method.fields.index(f)]
> except KeyError:
> nowait = False
>
> It dies on the above code *_f = method.fields.byname["nowait"]..._*

What error does the above return?


Matthias.


_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
Guest
Posted: Sun May 04, 2008 1:37 pm Reply with quote
Guest
Lynton Grice wrote:

> Perhaps tell me what versions you guys are running?

We are get hold of the qpid test suite like this:

svn co http://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/python
qpid_testsuite

(see tests/Makefile in the RabbitMQ source package).


Matthias.

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
Guest
Posted: Sun May 04, 2008 1:44 pm Reply with quote
Guest
Hi there,

Stupid question (forgive me, I am an SAP / ABAP developer.....I just play
with Python etc in my spare time)...

I run windows.....how can I do what you said:

svn co http://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/python
qpid_testsuite

In windows? Do I need to download the RabbitMQ source package?

Thanks for the help Wink

Lynton

-----Original Message-----
From: Matthias Radestock [mailto:matthias@lshift.net]
Sent: 04 May 2008 03:37 PM
To: Lynton Grice
Cc: rabbitmq-discuss@lists.rabbitmq.com
Subject: Re: [rabbitmq-discuss] URGENT: Run-Tests failing...please help

Lynton Grice wrote:

> Perhaps tell me what versions you guys are running?

We are get hold of the qpid test suite like this:

svn co http://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/python
qpid_testsuite

(see tests/Makefile in the RabbitMQ source package).


Matthias.


_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
Guest
Posted: Sun May 04, 2008 2:11 pm Reply with quote
Guest
Lynton Grice wrote:
> I run windows.....how can I do what you said:
>
> svn co http://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/python
> qpid_testsuite
>
> In windows?

You'll need a subversion client. The above checks out the latest qpid
test suite from qpid's subversion trunk.

Anyway, I found the problem. The test suite that ships with qpid-1.0-M2
sets the vhost to "localhost" (well, the host name of the broker you are
connecting to, actually) instead of "/". Just change client.py:46 to read
self.vhost = "/"
and the tests should run. You will see a few errors due to the fact that
the M2 test suite does not support exclusion patterns. Other than that
things work fine.


Matthias.

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
Guest
Posted: Sun May 04, 2008 2:30 pm Reply with quote
Guest
Thanks for the help Matthias....

I ran it now and yes, there are a couple errors but also lots of OK messages
when the tests run...

Thanks again

Lynton

-----Original Message-----
From: Matthias Radestock [mailto:matthias@lshift.net]
Sent: 04 May 2008 04:11 PM
To: Lynton Grice
Cc: rabbitmq-discuss@lists.rabbitmq.com
Subject: Re: [rabbitmq-discuss] URGENT: Run-Tests failing...please help

Lynton Grice wrote:
> I run windows.....how can I do what you said:
>
> svn co http://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/python
> qpid_testsuite
>
> In windows?

You'll need a subversion client. The above checks out the latest qpid
test suite from qpid's subversion trunk.

Anyway, I found the problem. The test suite that ships with qpid-1.0-M2
sets the vhost to "localhost" (well, the host name of the broker you are
connecting to, actually) instead of "/". Just change client.py:46 to read
self.vhost = "/"
and the tests should run. You will see a few errors due to the fact that
the M2 test suite does not support exclusion patterns. Other than that
things work fine.


Matthias.


_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum