Local testing of imports
Dmitrijs Ledkovs
dmitrij.ledkov at gmail.com
Wed Dec 16 02:34:36 GMT 2009
2009/12/10 James Westby <james.westby at canonical.com>:
> Hi all,
>
> We have a number of packages failing to import, for a variety of reasons.
> It's useful to be able to run the code locally for testing purposes, so
> I've just pushed the driver code to
>
> lp:~james-w/bzr-builddeb/import-scripts
>
> They're not exactly designed to run on an arbitrary system, but you
> should be able to get them to work without too much effort.
>
> It requires bzr-builddeb, bzrtools, python-launchpadlib, python-debian
> and of course bzr to be installed.
>
> You first have to get some LP credentials:
>
> python create_creds.py
>
> You should be able to get away with "Read non-private", but may want
> to grant more.
>
> You can trigger a run with
>
> ./import_package.py --no-push <package-name>
>
> (The --no-push ensures that it doesn't try and push to LP if it
> succeeds.)
>
> This will create a number of directories in your cwd. "updates"
> is where the work happens, and where the final branches end up.
> "revids" is where the audit data is stored. "logs" contains a log
> file per-package, you can tail it to watch progress. There are
> a few more of lesser importance.
>
> Any improvements are welcome. I know the code isn't very pleasant,
> and I am trying to clean up as I change things. Bug fixes are
> especially welcome.
>
> In addition, I think it would be useful if we could classify the
> list of current failures. Does the LP OOPS system have code to
> match tracebacks? Anyone know of anything else to do this? Perhaps
> a weekly email here with counts of classified tracebacks would
> help us reduce the number?
>
> Current failures are at
>
> http://package-import.ubuntu.com/failures/.bzr/failures/
>
> Thanks,
>
> James
>
Running the scripts I get (see below)
I have ssh key set up for launchpad. Where else is it trying to
authenticate to? (Permissin denied (publickey))????
Please help
$ ./import_package.py --no-push ardour
No handlers could be found for logger "bzr"
Permission denied (publickey).
Traceback (most recent call last):
File "./import_package.py", line 983, in <module>
extra_debian=options.extra_debian))
File "./import_package.py", line 925, in main
possible_transports=possible_transports)
File "./import_package.py", line 736, in find_unimported_versions
possible_transports=possible_transports)
File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 169, in open
possible_transports=possible_transports)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 843, in open
return BzrDir.open_from_transport(t, _unsupported=_unsupported)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 878,
in open_from_transport
return format.open(transport, _found=True)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 2088, in open
return self._open(transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 3320, in _open
return remote.RemoteBzrDir(transport, self)
File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 115,
in __init__
self._probe_bzrdir()
File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 124,
in _probe_bzrdir
self._rpc_open_2_1(path)
File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 131,
in _rpc_open_2_1
response = self._call('BzrDir.open_2.1', path)
File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 52, in _call
return self._client.call(method, *args)
File "/usr/lib/python2.6/dist-packages/bzrlib/smart/client.py", line
129, in call
result, protocol = self.call_expecting_body(method, *args)
File "/usr/lib/python2.6/dist-packages/bzrlib/smart/client.py", line
142, in call_expecting_body
method, args, expect_response_body=True)
File "/usr/lib/python2.6/dist-packages/bzrlib/smart/client.py", line
90, in _call_and_read_response
expect_body=expect_response_body)
File "/usr/lib/python2.6/dist-packages/bzrlib/smart/message.py",
line 299, in read_response_tuple
self._wait_for_response_args()
File "/usr/lib/python2.6/dist-packages/bzrlib/smart/message.py",
line 264, in _wait_for_response_args
self._read_more()
File "/usr/lib/python2.6/dist-packages/bzrlib/smart/message.py",
line 286, in _read_more
"Unexpected end of message. "
bzrlib.errors.ConnectionReset: Connection closed: Unexpected end of
message. Please check connectivity and permissions, and report a bug
if problems persist.
--
With best regards
Dmitrijs Ledkovs (for short Dima),
Ледков Дмитрий Юрьевич
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
More information about the ubuntu-distributed-devel
mailing list