Monday 14 October 2024

Re: git-ubuntu: call for testing: core24

Hi Christian,

Thank you for testing!

On Mon, Oct 14, 2024 at 07:36:03AM +0200, Christian Ehrhardt wrote:
> The two warnings seem to be deprecation warnings that probably happen
> for every user:
>
> gitubuntu/__main__.py:7
> /snap/git-ubuntu/1613/usr/lib/python3/dist-packages/gitubuntu/__main__.py:7:
> DeprecationWarning: pkg_resources is deprecated as an API. See
> https://setuptools.pypa.io/en/latest/pkg_resources.html
> import pkg_resources

I saw this one, but didn't reproduce it in normal usage, so deferred it
for now. To keep making changes in small reviewable pieces, I thought
I'd move the Python baseline forwards only after the core24 piece lands
in the edge channel, so deprecation warnings are OK for now. But also
there are some others who are keen to package git-ubuntu as a deb, too,
and moving up might preclude backports, so I'd like to investigate
further before doing that.

> pkg_resources/__init__.py:2871
> /snap/git-ubuntu/1613/usr/lib/python3/dist-packages/pkg_resources/__init__.py:2871:
> DeprecationWarning: Deprecated call to
> `pkg_resources.declare_namespace('logilab')`.
> Implementing implicit namespace packages (as specified in PEP 420)
> is preferred to `pkg_resources.declare_namespace`. See
> https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
> declare_namespace(pkg)

This one sounds like something inherent in the Ubuntu archive in Noble,
and might need an SRU to elimnate. It is unfortunate that core24 only
becomes available after Noble's release, so snap-based projects don't
have the opportunity to fix issues they discover during Ubuntu's
development cycle. The python3-debianbts bug I already mentioned is
another one of these :-/

> I ran a few basics (clone and checking the repo matches what I got
> last time) which still worked as they did last week with the former
> version.
> export-orig and merge-start worked for me as well without behaving differently.
> Tested on 1.1-55-gcab5296 (1613).

Thank you!

> One more thing you want to confirm and explain to lower the
> suspicious-eye-brow count.
> Whole running importer/tag_test.py the test will use the user's GPG
> setup (like when running import locally), so it might pop up a GPG
> prompt.

Agreed. Thanks! This is another one of those interactions with the host
system and its configuration that is necessary for git-ubuntu to have
but is difficult to test. The behaviour you describe sounds normal for
regular operation, but perhaps I can improve the test. I filed LP:
#2084440 but probably won't block the merge on this.

Robie