~sircmpwn/sr.ht-discuss

4 2

[hg.sr.ht] failing to create a new repository on push

Details
Message ID
<3b92358f-c1fe-44ed-bdfd-1e94b6e8b1ba@fcresende.dev.br>
DKIM signature
permerror
Download raw message
Hi,

When pushing to a non-existing repository on hg.sr.ht it is failing 
instead of creating the repository:

$ hg push ssh://hg@hg.sr.ht/~fcresende/new_repo
pushing to ssh://hg@hg.sr.ht/~fcresende/new_repo
remote: Traceback (most recent call last):
remote:   File "/usr/bin/hgsrht-shell", line 269, in <module>
remote:     r = check_ssh_access(path, user_id, username)
remote:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
remote:   File "/usr/bin/hgsrht-shell", line 122, in check_ssh_access_sql
remote:     r = _do_get_or_create_repo(path, user_id, username, con)
remote:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
remote:   File "/usr/bin/hgsrht-shell", line 162, in _do_get_or_create_repo
remote:     row = query.one()._mapping
remote:           ^^^^^^^^^^^
remote:   File 
"/usr/lib/python3.11/site-packages/sqlalchemy/engine/result.py", line 
1520, in one
remote:     return self._only_one_row(
remote:            ^^^^^^^^^^^^^^^^^^^
remote:   File 
"/usr/lib/python3.11/site-packages/sqlalchemy/engine/result.py", line 
752, in _only_one_row
remote:     raise exc.NoResultFound(
remote: sqlalchemy.exc.NoResultFound: No row was found when one was required

Best regards,
Felipe
Details
Message ID
<f8cabec2-84c3-45ca-9458-6776d7c3007f@app.fastmail.com>
In-Reply-To
<3b92358f-c1fe-44ed-bdfd-1e94b6e8b1ba@fcresende.dev.br> (view parent)
DKIM signature
pass
Download raw message
> When pushing to a non-existing repository on hg.sr.ht it is failing
> instead of creating the repository:

Ah yes, I think that's a fallout of the recent breaking changes in
sqlalchemy.

It should be fixed soon, once it's done deploying the new version.

Thanks for reporting the problem!
Details
Message ID
<e621cfe5-24d3-4df2-b711-625309bb109f@app.fastmail.com>
In-Reply-To
<f8cabec2-84c3-45ca-9458-6776d7c3007f@app.fastmail.com> (view parent)
DKIM signature
pass
Download raw message
Scratch that, the ongoing issue with python package versions somehow
also happened on a tagged release, and prevented deploying the fix...
I'm not sure why yet...

https://builds.sr.ht/~sircmpwn/job/1182935#task-package
Details
Message ID
<af86b44b-245b-43aa-b9f7-40c3dd7b5e4c@fcresende.dev.br>
In-Reply-To
<e621cfe5-24d3-4df2-b711-625309bb109f@app.fastmail.com> (view parent)
DKIM signature
permerror
Download raw message
On 3/30/24 17:11, Ludovic Chabant wrote:
> Scratch that, the ongoing issue with python package versions somehow
> also happened on a tagged release, and prevented deploying the fix...
> I'm not sure why yet...
> 
> https://builds.sr.ht/~sircmpwn/job/1182935#task-package

no hurry, thanks.
Details
Message ID
<2262d58e-afd8-486d-935f-59494df54d18@app.fastmail.com>
In-Reply-To
<af86b44b-245b-43aa-b9f7-40c3dd7b5e4c@fcresende.dev.br> (view parent)
DKIM signature
pass
Download raw message
It's fixed now!
Reply to thread Export thread (mbox)