~samuelgruetter


#197 remote prints python stack trace on git push even though the push succeeds 6 months ago

Comment by ~samuelgruetter on ~sircmpwn/git.sr.ht

I'll post again if it occurs again.

But in any case, the output that the remote sends to my terminal should be something more concise like push succeeded, but triggering a build on builds.sr.ht failed instead of the whole stack trace. Or if you want to keep the stack trace for better debugging, a concise message of what happened should be at the very end. (I agree that this is low-priority ;))

#197 remote prints python stack trace on git push even though the push succeeds 6 months ago

Ticket created by ~samuelgruetter on ~sircmpwn/git.sr.ht

running git push gave the following output in my terminal:

Enumerating objects: 39, done.
Counting objects: 100% (39/39), done.
Delta compression using up to 8 threads
Compressing objects: 100% (29/29), done.
Writing objects: 100% (29/29), 5.95 KiB | 1.98 MiB/s, done.
Total 29 (delta 24), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote:   File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
remote:     (self.host, self.port), self.timeout, **extra_kw)
remote:   File "/usr/lib/python3.6/site-packages/urllib3/util/connection.py", line 60, in create_connection
remote:     for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
remote:   File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
remote:     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
remote: socket.gaierror: [Errno -3] Try again
remote: 
remote: During handling of the above exception, another exception occurred:
remote: 
remote: Traceback (most recent call last):
remote:   File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
remote:     chunked=chunked)
remote:   File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request
remote:     self._validate_conn(conn)
remote:   File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
remote:     conn.connect()
remote:   File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 284, in connect
remote:     conn = self._new_conn()
remote:   File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
remote:     self, "Failed to establish a new connection: %s" % e)
remote: urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8af2c1eac8>: Failed to establish a new connection: [Errno -3] Try again
remote: 
remote: During handling of the above exception, another exception occurred:
remote: 
remote: Traceback (most recent call last):
remote:   File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 445, in send
remote:     timeout=timeout
remote:   File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
remote:     _stacktrace=sys.exc_info()[2])
remote:   File "/usr/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment
remote:     raise MaxRetryError(_pool, url, error or ResponseError(cause))
remote: urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='builds.sr.ht', port=443): Max retries exceeded with url: /api/jobs (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8af2c1eac8>: Failed to establish a new connection: [Errno -3] Try again',))
remote: 
remote: During handling of the above exception, another exception occurred:
remote: 
remote: Traceback (most recent call last):
remote:   File "hooks/post-update", line 55, in <module>
remote:     do_post_update(repo, refs)
remote:   File "/usr/lib/python3.6/site-packages/gitsrht/submit.py", line 156, in do_post_update
remote:     s.submit(commit)
remote:   File "/usr/lib/python3.6/site-packages/scmsrht/submit.py", line 35, in submit
remote:     self._do_submit(raw_manifests, commit)
remote:   File "/usr/lib/python3.6/site-packages/scmsrht/submit.py", line 91, in _do_submit
remote:     headers=webhook_headers, timeout=3)
remote:   File "/usr/lib/python3.6/site-packages/requests/api.py", line 112, in post
remote:     return request('post', url, data=data, json=json, **kwargs)
remote:   File "/usr/lib/python3.6/site-packages/requests/api.py", line 58, in request
remote:     return session.request(method=method, url=url, **kwargs)
remote:   File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 512, in request
remote:     resp = self.send(prep, **send_kwargs)
remote:   File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 622, in send
remote:     r = adapter.send(request, **kwargs)
remote:   File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 513, in send
remote:     raise ConnectionError(e, request=request)
remote: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='builds.sr.ht', port=443): Max retries exceeded with url: /api/jobs (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8af2c1eac8>: Failed to establish a new connection: [Errno -3] Try again',))
To git.sr.ht:~andres/bedrock2
   65017ae..e6e1a5e  master -> master

Which made me think that the push failed. But when I checked, it turned out that the commits were pushed. However, no build was triggered on dispatch.sr.ht.

#213 filter builds by git branch 7 months ago

Ticket created by ~samuelgruetter on ~sircmpwn/builds.sr.ht

On the builds page for a given git repo (eg https://builds.sr.ht/~andres/bedrock2), I'd like to be able to filter by git branch, i.e. only display the builds of commits which lie on a given branch. Ticket https://todo.sr.ht/~sircmpwn/dispatch.sr.ht/15 might help to achieve this, but searching for the keyword master is not what I'd want, because if there's a branch with a commit message implement a master-solution, that should not show up. I'm not sure how much builds.sr.ht knows about git -- apologies if this should have been posted on the dispatch.sr.ht issue tracker instead.

#26 cancel build 7 months ago

Comment by ~samuelgruetter on ~sircmpwn/dispatch.sr.ht

I see, makes sense!

#26 cancel build 7 months ago

Comment by ~samuelgruetter on ~sircmpwn/dispatch.sr.ht

It's a sourcehut repo (which happens to be also on github, but I don't think sourcehut is aware of that). I'm looking at the page https://builds.sr.ht/~andres/bedrock2, logged in as user samuelgruetter, trying to cancel the build of a commit authored by me (but with an email address in the git commit which does not match the email address I used to sign up for sourcehut).

#26 cancel build 7 months ago

Comment by ~samuelgruetter on ~sircmpwn/dispatch.sr.ht

I'm logged in, but I can't find that button. Maybe it's because I'm pushing to a repo owned by my collaborator, to which he gave me push access? If that's indeed the reason, I'd raise the following feature request: It should be possible to cancel builds on repos to which I have push access.

RESOLVED INVALID REPORTED

#26 cancel build 7 months ago

Ticket created by ~samuelgruetter on ~sircmpwn/dispatch.sr.ht

Sometimes I know that a build will fail or does not have to be run, so if I knew where to click to cancel the build, I'd save you some server running cost ;) But either such a button is not present, or I didn't find it, therefore the feature request.

#25 manual github webhook setup instead of granting all permissions 7 months ago

Ticket created by ~samuelgruetter on ~sircmpwn/dispatch.sr.ht

We would like to install a webhook on github which tells dispatch.sr.ht when to run a new build. The only way I see to do so would be to grant dispatch.sr.ht a permission for github saying This application will be able to read and write all public and private repository data, which sounds a bit scary & too much to me. In particular, there are private repos which should really remain private.

I would prefer to manually set up this webhook on the github repo settings page, by copy-pasting some URLs/settings which would be provided by dispatch.sr.ht, so my feature request is to have a page on dispatch.sr.ht which tells me how to do that and what URLs to copy.