qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tests/docker/dockerfiles: Use Fedora 41 for the python container file
@ 2025-04-22 12:56 Thomas Huth
  2025-04-22 13:08 ` Daniel P. Berrangé
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Huth @ 2025-04-22 12:56 UTC (permalink / raw)
  To: qemu-devel, John Snow
  Cc: Alex Bennée, Peter Maydell, Richard Henderson,
	Stefan Hajnoczi

From: Thomas Huth <thuth@redhat.com>

Using "fedora:latest" now fails with Fedora 42:

  Failed to resolve the transaction:
  No match for argument: python3.8

Switch back to Fedora 41 for the time being, to be able to still
test with Python 3.8.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 tests/docker/dockerfiles/python.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/docker/dockerfiles/python.docker b/tests/docker/dockerfiles/python.docker
index 8f0af9ef25f..1245523320d 100644
--- a/tests/docker/dockerfiles/python.docker
+++ b/tests/docker/dockerfiles/python.docker
@@ -1,6 +1,6 @@
 # Python library testing environment
 
-FROM fedora:latest
+FROM fedora:41
 MAINTAINER John Snow <jsnow@redhat.com>
 
 # Please keep this list sorted alphabetically
-- 
2.49.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] tests/docker/dockerfiles: Use Fedora 41 for the python container file
  2025-04-22 12:56 [PATCH] tests/docker/dockerfiles: Use Fedora 41 for the python container file Thomas Huth
@ 2025-04-22 13:08 ` Daniel P. Berrangé
  2025-04-22 13:22   ` Stefan Hajnoczi
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel P. Berrangé @ 2025-04-22 13:08 UTC (permalink / raw)
  To: Thomas Huth
  Cc: qemu-devel, John Snow, Alex Bennée, Peter Maydell,
	Richard Henderson, Stefan Hajnoczi

On Tue, Apr 22, 2025 at 02:56:26PM +0200, Thomas Huth wrote:
> From: Thomas Huth <thuth@redhat.com>
> 
> Using "fedora:latest" now fails with Fedora 42:
> 
>   Failed to resolve the transaction:
>   No match for argument: python3.8
> 
> Switch back to Fedora 41 for the time being, to be able to still
> test with Python 3.8.

This page details why it is was removed:

  https://fedoraproject.org/wiki/Changes/RetirePython3.8

Based on the explanation there, it seems doubtful that any of our
targetted build platforms have python 3.8. Thus I'd question whether
we should test 3.8 at all.

IOW, rather than pin to fedora:41, it seems better to drop
python3.8 from the dockerfile.

> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  tests/docker/dockerfiles/python.docker | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/docker/dockerfiles/python.docker b/tests/docker/dockerfiles/python.docker
> index 8f0af9ef25f..1245523320d 100644
> --- a/tests/docker/dockerfiles/python.docker
> +++ b/tests/docker/dockerfiles/python.docker
> @@ -1,6 +1,6 @@
>  # Python library testing environment
>  
> -FROM fedora:latest
> +FROM fedora:41
>  MAINTAINER John Snow <jsnow@redhat.com>
>  
>  # Please keep this list sorted alphabetically
> -- 
> 2.49.0
> 
> 

With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] tests/docker/dockerfiles: Use Fedora 41 for the python container file
  2025-04-22 13:08 ` Daniel P. Berrangé
@ 2025-04-22 13:22   ` Stefan Hajnoczi
  2025-04-22 13:36     ` Thomas Huth
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Hajnoczi @ 2025-04-22 13:22 UTC (permalink / raw)
  To: Daniel P. Berrangé
  Cc: Thomas Huth, qemu-devel, John Snow, Alex Bennée,
	Peter Maydell, Richard Henderson, Stefan Hajnoczi

On Tue, Apr 22, 2025 at 9:09 AM Daniel P. Berrangé <berrange@redhat.com> wrote:
>
> On Tue, Apr 22, 2025 at 02:56:26PM +0200, Thomas Huth wrote:
> > From: Thomas Huth <thuth@redhat.com>
> >
> > Using "fedora:latest" now fails with Fedora 42:
> >
> >   Failed to resolve the transaction:
> >   No match for argument: python3.8
> >
> > Switch back to Fedora 41 for the time being, to be able to still
> > test with Python 3.8.
>
> This page details why it is was removed:
>
>   https://fedoraproject.org/wiki/Changes/RetirePython3.8
>
> Based on the explanation there, it seems doubtful that any of our
> targetted build platforms have python 3.8. Thus I'd question whether
> we should test 3.8 at all.
>
> IOW, rather than pin to fedora:41, it seems better to drop
> python3.8 from the dockerfile.

I'm in favor of pinning so that the test is reproducible. A test that
passed on a given git commit should pass again when it is re-run.

It's very inconvenient when tests fail arbitrarily due to unpinned
dependencies. Often the person who has to debug a non-reproducible
test failure is not knowledgeable about the test setup. They shouldn't
have to debug failures unrelated to their patch series.

Stefan

>
> >
> > Signed-off-by: Thomas Huth <thuth@redhat.com>
> > ---
> >  tests/docker/dockerfiles/python.docker | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/tests/docker/dockerfiles/python.docker b/tests/docker/dockerfiles/python.docker
> > index 8f0af9ef25f..1245523320d 100644
> > --- a/tests/docker/dockerfiles/python.docker
> > +++ b/tests/docker/dockerfiles/python.docker
> > @@ -1,6 +1,6 @@
> >  # Python library testing environment
> >
> > -FROM fedora:latest
> > +FROM fedora:41
> >  MAINTAINER John Snow <jsnow@redhat.com>
> >
> >  # Please keep this list sorted alphabetically
> > --
> > 2.49.0
> >
> >
>
> With regards,
> Daniel
> --
> |: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
> |: https://libvirt.org         -o-            https://fstop138.berrange.com :|
> |: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
>
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] tests/docker/dockerfiles: Use Fedora 41 for the python container file
  2025-04-22 13:22   ` Stefan Hajnoczi
@ 2025-04-22 13:36     ` Thomas Huth
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Huth @ 2025-04-22 13:36 UTC (permalink / raw)
  To: Stefan Hajnoczi, Daniel P. Berrangé, John Snow,
	Stefan Hajnoczi
  Cc: qemu-devel, Alex Bennée, Peter Maydell, Richard Henderson

On 22/04/2025 15.22, Stefan Hajnoczi wrote:
> On Tue, Apr 22, 2025 at 9:09 AM Daniel P. Berrangé <berrange@redhat.com> wrote:
>>
>> On Tue, Apr 22, 2025 at 02:56:26PM +0200, Thomas Huth wrote:
>>> From: Thomas Huth <thuth@redhat.com>
>>>
>>> Using "fedora:latest" now fails with Fedora 42:
>>>
>>>    Failed to resolve the transaction:
>>>    No match for argument: python3.8
>>>
>>> Switch back to Fedora 41 for the time being, to be able to still
>>> test with Python 3.8.
>>
>> This page details why it is was removed:
>>
>>    https://fedoraproject.org/wiki/Changes/RetirePython3.8
>>
>> Based on the explanation there, it seems doubtful that any of our
>> targetted build platforms have python 3.8. Thus I'd question whether
>> we should test 3.8 at all.
>>
>> IOW, rather than pin to fedora:41, it seems better to drop
>> python3.8 from the dockerfile.
> 
> I'm in favor of pinning so that the test is reproducible. A test that
> passed on a given git commit should pass again when it is re-run.

Yes, we also don't use ":latest" in any of the other tests, so pinning to a 
specific version also sounds like the better idea to me.

Anyway, if we really want to drop Python 3.8 (which we likely should do now 
indeed), we also have to update "configure" and 
docs/about/build-platforms.rst and likely some other spots... John?

  Thomas



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-04-22 13:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-22 12:56 [PATCH] tests/docker/dockerfiles: Use Fedora 41 for the python container file Thomas Huth
2025-04-22 13:08 ` Daniel P. Berrangé
2025-04-22 13:22   ` Stefan Hajnoczi
2025-04-22 13:36     ` Thomas Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).