[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libguestfs
Subject:    =?utf-8?q?=5BLibguestfs=5D?= Re: [PATCH nbdkit] tests: gcs: skip tests without google cloud module
From:       "Richard W.M. Jones" <rjones () redhat ! com>
Date:       2024-04-28 18:38:36
Message-ID: 20240428183836.GU7636 () redhat ! com
[Download RAW message or body]

On Sun, Apr 28, 2024 at 07:40:43PM +0200, Thomas Weißschuh wrote:
> On 2024-04-28 19:26:00+0000, Thomas Weißschuh wrote:
> > On 2024-04-28 17:34:42+0000, Richard W.M. Jones wrote:
> 
> > [..]
> 
> > > It should run without any google.* modules installed, and also if any
> > > combination of google.* modules are installed.  In all cases it ought
> > > to load the mocked module from tests/test-gcs and ignore the installed
> > > google.* modules, or if it can't do that (see my commit message above)
> > > it should skip the test.
> > > 
> > > For me, that all works.
> > 
> > I missed the tests/test-gcs/google/api_core directory.
> > 
> > > However I found last week that there's something seriously weird about
> > > the google.* modules (not to mention Python module loading in
> > > general), so I can believe the test might not work in some
> > > combination.
> > > 
> > > Nevertheless, the commit as proposed is definitely wrong.  The gcs
> > > test does not (or should not) use any installed google.* module, so if
> > > it does then that's a bug of some kind.
> > 
> > Agree.
> > 
> > I narrowed it down to python-protobuf being installed.
> > It creates /usr/lib/python3.12/site-packages/google .
> > 
> > I think this should be a namespace package, which is handled specially,
> > But I'm not sure if the problem is in python-protobuf, the Python import
> > machinery or the setup by test nbdkit testsuite.
> > 
> > Will investigate.
> 
> PEBKAC...
> 
> I first ran the testsuite against v1.38.1 where the gcs test failed.
> 
> Then I went to master and tried to fix it, blindly creating
> tests/test-gcs/google/__init__.py. This broke the namespace package
> import logic and with it the test on master again.
> 
> So please just disregard all of this noise.

No problem.  I'll need to backport the gcs fixes to the stable branch
once we're sure they're good.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
_______________________________________________
Libguestfs mailing list -- guestfs@lists.libguestfs.org
To unsubscribe send an email to guestfs-leave@lists.libguestfs.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic