Bug 227430 - ports-mgmt/freebsd-bugzilla-cli: bz crashes when running "bz get"
Summary: ports-mgmt/freebsd-bugzilla-cli: bz crashes when running "bz get"
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jimmy Olgeni
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-10 21:13 UTC by Mateusz Piotrowski
Modified: 2019-03-05 07:22 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (olgeni)


Attachments
freebsd-bugzilla-cli.diff (357 bytes, patch)
2019-01-21 21:22 UTC, Tobias Kortkamp
tobik: maintainer-approval? (olgeni)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Piotrowski freebsd_committer freebsd_triage 2018-04-10 21:13:48 UTC
Isn't this port broken? I tried to use it but it just crashed. Here's my session output:

> $ bz init
> Login: FreeBSD Bugzilla User [mpts]: 0mp
> Login: FreeBSD Bugzilla Password:
> Submit: E-Mail to use for submissions [mpts@FreeBSD.org]: 0mp@FreeBSD.org
> Search: Default Product [Ports & Packages]:
> Search: Default PR state [New,Open,In Progress]:
> Search: Default PR assignee [0mp@FreeBSD.org]:
> Port Commit: space seperated list of your hats [none]:
> $ bz get 226907
> Traceback (most recent call last):
>   File "/usr/local/bin/bugz", line 11, in <module>
>     load_entry_point('pybugz==0.13', 'console_scripts', 'bugz')()
>   File "/usr/local/lib/python3.6/site-packages/bugz/cli.py", line 702, in main
>     args.func(settings)
>   File "/usr/local/lib/python3.6/site-packages/bugz/cli.py", line 400, in get
>     result = settings.call_bz(settings.bz.Bug.get, params)
>   File "/usr/local/lib/python3.6/site-packages/bugz/settings.py", line 153, in call_bz
>     return method(params)
>   File "/usr/local/lib/python3.6/xmlrpc/client.py", line 1112, in __call__
>     return self.__send(self.__name, args)
>   File "/usr/local/lib/python3.6/xmlrpc/client.py", line 1452, in __request
>     verbose=self.__verbose
>   File "/usr/local/lib/python3.6/xmlrpc/client.py", line 1154, in request
>     return self.single_request(host, handler, request_body, verbose)
>   File "/usr/local/lib/python3.6/xmlrpc/client.py", line 1166, in single_request
>     http_conn = self.send_request(host, handler, request_body, verbose)
>   File "/usr/local/lib/python3.6/xmlrpc/client.py", line 1279, in send_request
>     self.send_content(connection, request_body)
>   File "/usr/local/lib/python3.6/xmlrpc/client.py", line 1309, in send_content
>     connection.endheaders(request_body)
>   File "/usr/local/lib/python3.6/http/client.py", line 1234, in endheaders
>     self._send_output(message_body, encode_chunked=encode_chunked)
>   File "/usr/local/lib/python3.6/http/client.py", line 1026, in _send_output
>     self.send(msg)
>   File "/usr/local/lib/python3.6/http/client.py", line 964, in send
>     self.connect()
>   File "/usr/local/lib/python3.6/http/client.py", line 1392, in connect
>     super().connect()
>   File "/usr/local/lib/python3.6/http/client.py", line 936, in connect
>     (self.host,self.port), self.timeout, self.source_address)
>   File "/usr/local/lib/python3.6/socket.py", line 704, in create_connection
>     for res in getaddrinfo(host, port, 0, SOCK_STREAM):
>   File "/usr/local/lib/python3.6/socket.py", line 745, in getaddrinfo
>     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
> socket.gaierror: [Errno 8] hostname nor servname provided, or not known
> [: -gt: unexpected operator
> [: -eq: unexpected operator
> No Attachments.
> ----> /tmp/mpts/freebsd/226907
> $ cat /tmp/mpts/freebsd/226907
>  * Info: Using [FreeBSD] (https://bugs.freebsd.org/bugzilla/xmlrpc.cgi)
>  * Info: Getting bug 226907 ..
Comment 1 Tobias Kortkamp freebsd_committer freebsd_triage 2019-01-21 21:22:27 UTC
Created attachment 201315 [details]
freebsd-bugzilla-cli.diff

I think this port is badly broken and creates bogus PRs. See the recent
bug #235114 and bug #235118.  Time to retire it I would say.
Comment 2 Tobias Kortkamp freebsd_committer freebsd_triage 2019-02-03 04:52:07 UTC
New failure examples in bug #235447, bug #235448, bug #235449.