Your message dated Wed, 18 Jan 2023 15:16:34 +0000
with message-id <e1piab0-008xzc...@fasolo.debian.org>
and subject line Bug#1029000: fixed in yoyo 8.2.0+dfsg1-1
has caused the Debian Bug report #1029000,
regarding yoyo: (autopkgtest) needs update for Python 3.11
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1029000: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029000
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: yoyo
Version: 7.3.2+dfsg1-5
Severity: serious
User: debian...@lists.debian.org
Usertags: needs-update
User: debian-pyt...@lists.debian.org
Usertags: python3.11
Control: affects -1 src:python3-defaults
Hi Maintainer
The autopkgtests of yoyo fail with Python 3.11 as the default version
(and Python 3.10 still supported) [1]. I've copied what I hope is the
relevant part of the log below.
Regards
Graham
[1] https://ci.debian.net/packages/y/yoyo/testing/amd64/
Creating new PostgreSQL cluster 15/regress ...
Warning: connection to the database failed, disabling startup checks:
psql: error: connection to server on socket "/tmp/.s.PGSQL.5433"
failed: FATAL: role "debci" does not exist
+ export
PYTHONPATH=/tmp/autopkgtest-lxc.z8fl1tkb/downtmp/build.X7w/src/debian/tests
+ PYTHONPATH=/tmp/autopkgtest-lxc.z8fl1tkb/downtmp/build.X7w/src/debian/tests
+ psql -Upostgres -c 'create database yoyo_test;'
CREATE DATABASE
+ pytest-3 yoyo/tests
============================= test session starts ==============================
platform linux -- Python 3.11.1, pytest-7.2.0, pluggy-1.0.0+repack
rootdir: /tmp/autopkgtest-lxc.z8fl1tkb/downtmp/build.X7w/src
collected 152 items
yoyo/tests/test_backends.py ......ss......s.s...... [ 15%]
yoyo/tests/test_cli_script.py ..............s.s......................... [ 42%]
. [ 43%]
yoyo/tests/test_config.py ............... [ 53%]
yoyo/tests/test_connections.py ........ [ 58%]
yoyo/tests/test_internalmigrations.py ........ [ 63%]
yoyo/tests/test_migrations.py .......................................... [ 91%]
..FF.... [ 96%]
yoyo/tests/test_utils.py ..... [100%]
=================================== FAILURES ===================================
__________ TestPostApplyHooks.test_it_runs_multiple_post_apply_hooks ___________
self = <yoyo.tests.test_migrations.TestPostApplyHooks object at 0x7fc68367c190>
backend_sqlite3 = <yoyo.backends.SQLiteBackend object at 0x7fc6836a4dd0>
def test_it_runs_multiple_post_apply_hooks(self, backend_sqlite3):
with migrations_dir(
**{
"a": "step('create table postapply (i int)')",
"post-apply": "step('insert into postapply values (1)')",
"post-apply2": "step('insert into postapply values (2)')",
}
) as tmpdir:
> backend_sqlite3.apply_migrations(
backend_sqlite3.to_apply(read_migrations(tmpdir))
)
yoyo/tests/test_migrations.py:611:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
yoyo/backends.py:449: in apply_migrations
self.apply_migrations_only(migrations, force=force)
yoyo/backends.py:461: in apply_migrations_only
self.apply_one(m, force=force)
yoyo/backends.py:507: in apply_one
migration.process_steps(migration_backend, "apply", force=force)
yoyo/migrations.py:272: in process_steps
raise exc_info[1].with_traceback(exc_info[2])
yoyo/migrations.py:257: in process_steps
getattr(step, direction)(backend, force)
yoyo/migrations.py:315: in apply
getattr(self.step, direction)(backend, force)
yoyo/migrations.py:411: in apply
self._execute(cursor, self._apply)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <MigrationStep #0>, cursor = <sqlite3.Cursor object at 0x7fc683661740>
stmt = 'create table postapply (i int)'
out = <_io.TextIOWrapper name="<_io.FileIO name=6 mode='rb+'
closefd=True>" mode='r+' encoding='utf-8'>
def _execute(self, cursor, stmt, out=None):
"""
Execute the given statement. If rows are returned, output these in a
tabulated format.
"""
if out is None:
out = sys.stdout
if isinstance(stmt, str):
logger.debug(" - executing %r", stmt.encode("ascii", "replace"))
else:
logger.debug(" - executing %r", stmt)
> cursor.execute(stmt)
E sqlite3.OperationalError: table postapply already exists
yoyo/migrations.py:381: OperationalError
_______ TestPostApplyHooks.test_apply_migrations_only_does_not_run_hooks _______
self = <yoyo.tests.test_migrations.TestPostApplyHooks object at 0x7fc68369abd0>
backend_sqlite3 = <yoyo.backends.SQLiteBackend object at 0x7fc6833dcf50>
def test_apply_migrations_only_does_not_run_hooks(self, backend_sqlite3):
with migrations_dir(
**{
"a": "step('create table postapply (i int)')",
"post-apply": "step('insert into postapply values (1)')",
}
) as tmpdir:
> backend_sqlite3.apply_migrations_only(
backend_sqlite3.to_apply(read_migrations(tmpdir))
)
yoyo/tests/test_migrations.py:625:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
yoyo/backends.py:461: in apply_migrations_only
self.apply_one(m, force=force)
yoyo/backends.py:507: in apply_one
migration.process_steps(migration_backend, "apply", force=force)
yoyo/migrations.py:272: in process_steps
raise exc_info[1].with_traceback(exc_info[2])
yoyo/migrations.py:257: in process_steps
getattr(step, direction)(backend, force)
yoyo/migrations.py:315: in apply
getattr(self.step, direction)(backend, force)
yoyo/migrations.py:411: in apply
self._execute(cursor, self._apply)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <MigrationStep #0>, cursor = <sqlite3.Cursor object at 0x7fc683667740>
stmt = 'create table postapply (i int)'
out = <_io.TextIOWrapper name="<_io.FileIO name=6 mode='rb+'
closefd=True>" mode='r+' encoding='utf-8'>
def _execute(self, cursor, stmt, out=None):
"""
Execute the given statement. If rows are returned, output these in a
tabulated format.
"""
if out is None:
out = sys.stdout
if isinstance(stmt, str):
logger.debug(" - executing %r", stmt.encode("ascii", "replace"))
else:
logger.debug(" - executing %r", stmt)
> cursor.execute(stmt)
E sqlite3.OperationalError: table postapply already exists
yoyo/migrations.py:381: OperationalError
--- End Message ---
--- Begin Message ---
Source: yoyo
Source-Version: 8.2.0+dfsg1-1
Done: Stuart Prescott <stu...@debian.org>
We believe that the bug you reported is fixed in the latest version of
yoyo, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1029...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Stuart Prescott <stu...@debian.org> (supplier of updated yoyo package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Thu, 19 Jan 2023 01:05:49 +1100
Source: yoyo
Architecture: source
Version: 8.2.0+dfsg1-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Stuart Prescott <stu...@debian.org>
Closes: 1029000
Changes:
yoyo (8.2.0+dfsg1-1) unstable; urgency=medium
.
* Team upload.
* New upstream version.
- Fix autopkgtest with Python 3.11 (Closes: #1029000).
- Refresh patch.
- Add python3-importlib-metadata to build-dependencies.
* Change invocation of pg_virtualenv so that test database is correctly
created for autopkgtest.
* Test all supported versions of the interpreter in autopkgtest.
* Add psycopg (i.e. psycopg3) to the autopkgtest dependencies.
* Update Standards-Version to 4.6.2 (no changes required).
Checksums-Sha1:
2ef14bf2c81faee0512ef14aada585959bae1694 2557 yoyo_8.2.0+dfsg1-1.dsc
5968c04562d51bce48c93918219885bf1f659219 53064 yoyo_8.2.0+dfsg1.orig.tar.xz
000d316b70fba1376ef13aebd0decb5ad4ac0211 8208 yoyo_8.2.0+dfsg1-1.debian.tar.xz
7a2d7ca9cc1d46817126e2e1f32aae186fa6f304 8680
yoyo_8.2.0+dfsg1-1_amd64.buildinfo
Checksums-Sha256:
79d851511e1ce7b082a56482434826fdd382ac8894f97578fec375488372de0e 2557
yoyo_8.2.0+dfsg1-1.dsc
5b1b2287b59f95f8f5287b45db60258039bd5d45b375d345746d0382bbfd8fe1 53064
yoyo_8.2.0+dfsg1.orig.tar.xz
b338db4dabe4781f31436b5cce2d15737ba7ea3af22c48520edc95bc7324e9f6 8208
yoyo_8.2.0+dfsg1-1.debian.tar.xz
02ae5c4237db7624c2e210f5b9cdf7dce2c9eaa8cd4e394732cc72fecd958fce 8680
yoyo_8.2.0+dfsg1-1_amd64.buildinfo
Files:
03f1fb81c69a4f7643dd2bdaca81d325 2557 python optional yoyo_8.2.0+dfsg1-1.dsc
151cc3d85d275002e10d8f59f2d64338 53064 python optional
yoyo_8.2.0+dfsg1.orig.tar.xz
ab68105657241847d4d5ea15bac9679b 8208 python optional
yoyo_8.2.0+dfsg1-1.debian.tar.xz
54e8c3ef14f0abbf16a6c49d6e93c1b0 8680 python optional
yoyo_8.2.0+dfsg1-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEkOLSwa0Uaht+u4kdu8F+uxOW8vcFAmPIArQACgkQu8F+uxOW
8vfDLA//XsUGcSotxr1vjrIX0xVdVJtOewHk/qf5akQ8esx5zSn0pF2dZC8fUrtL
BG/+QhR5KOIdgRRF25Td8jsuYfpmZ52abXVotZPEwJbHdWM+VciFOABZ5b+RXvrX
X40e7LhmgipaPV2TXNDd02HfDr55NG3aVc8vO0C+VuLCLWCmsoTGvcIvK5QQFtoA
ZjkbZEVSCOvRjYhEyxu9JZs56J51IvoIDq3MFWHEk8/D99ilcJ4UQhrFlpHMjQF1
Bfxdej9Nh0m05eFimxY6qHbwLLqliBhe1SvtLIJW7+xddsGNtnF2xGUnkZ72fFc2
wTwcWQYQBBupcGPitDnH/XENlaIhdSICNrB9r7NCswdyGDEzfl0RZUssIBXcqLmt
HUj3747WmCXtATYzdHK5SlNJQTMXpaLoLoHIjqxqU5gnbmqkAAp/lX4PJDa2hq0N
7R5EQaDg1CbxViqd/3ZscAjLW/FByL9ZG0omBiuPPOnnemF7LI2RG1eRfQ7MItwb
RUGQzqXQ3Lun3gAifObp+aMQKuEKK4rfum5nc6f4YL9dDRfCL5w3Gt978fh4Jv7/
WCiynO5V3pmzvT9ZrGhtDHr8bzDn61Ec1pY+hJozXIU0Vg8G6g3aawACo/C/yO3d
x89pKKruNtAID8Um5FIzbhdc7HNh8ojltlBxkbgMuj5pDVysvSw=
=/5PH
-----END PGP SIGNATURE-----
--- End Message ---