#1088735 optuna: current optuna is failing newer fakeredis autopkgtest

#1088735#5
Date:
2024-11-30 07:50:33 UTC
From:
To:
Dear Maintainer,

python-fakeredis has been updated to a new major version.

https://tracker.debian.org/pkg/python-fakeredis

optuna is now failing it's test and most likely also need an update.

I'm filling this bug as "Serious" to allow migration
of fakeredis in a timely manner.



Most likely "python-redis" itself needs to be updated too;
this one as a lot of reverse dependencies
and will need a lot of work :-)


Greetings



540s     def read_response(self, **kwargs: Any) -> Any:  # type: ignore
540s         if not self._sock:
540s             raise redis.ConnectionError(msgs.CONNECTION_ERROR_MSG)
540s         if not self._server.connected:
540s             try:
540s                 response = self._sock.responses.get_nowait()
540s             except queue.Empty:
540s                 if kwargs.get("disconnect_on_error", True):
540s                     self.disconnect()
540s                 raise redis.ConnectionError(msgs.CONNECTION_ERROR_MSG)
540s         else:
540s             response = self._sock.responses.get()
540s         if isinstance(response, redis.ResponseError):
540s >           raise response
540s E           redis.exceptions.ResponseError: unknown command `eval`, with args beginning with:
540s
540s /usr/lib/python3/dist-packages/fakeredis/_connection.py:66: ResponseError

#1088735#10
Date:
2025-01-20 15:50:05 UTC
From:
To:
Thank you for the bug report. From my understanding, this needs to be
fixed elsewhere in the Python Redis stack. I have not yet had time to
investigate.

Since the fakeredis stuff is only found in the tests, I believe that the
errors are not indicative of a problem in the wider package.

I've uploaded Optuna version 3.6.1-2 where autopkgtests are
disabled. I'm therefore lowering the severity.

For the future, I wish you would test out such a major version jump in
fakeredis in experimental before uploading.


 Best,
 Gard

#1088735#17
Date:
2025-01-20 22:25:27 UTC
From:
To:
Hi,

fakeredis migrated before optuna estimated autoremoval. I guess it's the
ongoing (handling) of the transition to Python 3.13 that unstuck.

The autoremoval thread disapeared by itself.

https://tracker.debian.org/news/1603853/python-fakeredis-2261-1-migrated-to-testing/

I suggest to close this bug.

Greetings