launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #08241
Re: help with yuixhr_fixture tests in my useoops branch
Hi Francis.
Your instructions for running yuixhr tests look good to me for the currently landed code.
Once I am able to get a particular branch (re-)landed (waiting on me landing the last part of the fix for 875697), the recommended instructions will simplify somewhat, but what you wrote will still work.
What's more, "make run-testapp" also works for me, even on tip of devel. "OperationalError: 'fe_sendauth: no password supplied\n'" doesn't mean much to me on the face of it. Moreover, *almost* every bit of "make run-testapp" is run or tested in the test suite, and it continues to pass on ec2 and buildbot, so I am hopeful that this is specific to your machine. I can try to help next week, though some direction (from Stuart?) on the specific meaning of the OperationalError would be great.
As an aside, the branch I want to land also removes the source of the red herring you found.
I'll see if I can quickly dupe and address Robert's original issues now. His Monday comes before mine, and my upcoming week is pretty jam-packed already.
Gary
On Oct 28, 2011, at 12:27 PM, Francis J. Lacoste wrote:
> Of course, I didn't test these instructions before sending them out...
>
>
> Now, that I'm trying it out, I'm stuck on the first step:
>
> make run-testapp fails with
>
> Traceback (most recent call last):
> File "bin/run-testapp", line 26, in <module>
> canonical.launchpad.scripts.runlaunchpad.start_testapp()
> File
> "/home/francis/canonical/launchpad/devel/lib/canonical/launchpad/scripts/runlaunchpad.py",
> line 392, in start_testapp
> DatabaseLayer.tearDown()
> File
> "/home/francis/canonical/launchpad/devel/lib/canonical/testing/profiled.py",
> line 29, in profiled_func
> return func(cls, *args, **kw)
> File
> "/home/francis/canonical/launchpad/devel/lib/canonical/testing/layers.py",
> line 757, in tearDown
> cls.force_dirty_database()
> File
> "/home/francis/canonical/launchpad/devel/lib/canonical/testing/profiled.py",
> line 29, in profiled_func
> return func(cls, *args, **kw)
> File
> "/home/francis/canonical/launchpad/devel/lib/canonical/testing/layers.py",
> line 866, in force_dirty_database
> cls._db_fixture.force_dirty_database()
> AttributeError: 'NoneType' object has no attribute 'force_dirty_database'
>
>
> But that's a red herring, because it only means that the clean-ups
> executed in the finally are run without the setup() function being called.
>
> pdb shows that there is the following error that happens in start_launchpad:
>
> OperationalError: 'fe_sendauth: no password supplied\n'
>
> make run works correctly
>
> So I don't know if make run-testapp is broken for everyone, or it's just
> me that missed a configuration update because of the move to pgbouncer...
>
>
>
> On 11-10-28 12:11 PM, Francis J. Lacoste wrote:
>>
>>
>> On 11-10-28 06:04 AM, Robert Collins wrote:
>>>>> I'd be happy to help look at this when I return. That could conceivably be tomorrow but is more likely to be Monday. I'd look at the logs when I ran the tests interactively as my first step. Maybe that would let you tackle it?
>>> What do you mean by that? {Sorry for noob question, but I'm allowed
>>> one a week :P}
>>
>> My best guess to what he means is that he would use
>>
>> make run-testapp
>>
>> That runs launchpad with the same configuration used by AppServerLayer
>> tests (available on :8085). You will also have access to the logs like
>> when running the regular launchpad dev instance.
>>
>> You can then run the tests interactively by loading the test through the
>> /+yuitest/ URL in your browser.
>>
>> So looking at the list of your failing test, I would use the following URL:
>>
>> https://launchpad.dev:8085/+yuitest/lp/testing/tests/test_yuixhr_fixture
>>
>> And watch the logs :-)
>>
>> You can even pdb things in this setup.
>>
>> I've found that this wasn't really documented on the dev wiki, so will
>> take this opportunity to update it.
>>
>> P.S. Robert, every month, I find myself visiting the Urban Dictionary to
>> find the meaning of one your expression. Thanks for the opportunity to
>> expand my geek slang vocabulary!
>>
>>
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~launchpad-dev
>> Post to : launchpad-dev@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~launchpad-dev
>> More help : https://help.launchpad.net/ListHelp
>
>
> --
> Francis J. Lacoste
> francis.lacoste@xxxxxxxxxxxxx
>
> _______________________________________________
> Mailing list: https://launchpad.net/~launchpad-dev
> Post to : launchpad-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~launchpad-dev
> More help : https://help.launchpad.net/ListHelp
References