[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 06/11] tests/avocado: Add FreeBSD distro boot tests for p
From: |
Nicholas Piggin |
Subject: |
Re: [RFC PATCH 06/11] tests/avocado: Add FreeBSD distro boot tests for ppc |
Date: |
Wed, 11 Oct 2023 10:36:32 +1000 |
On Wed Oct 11, 2023 at 7:55 AM AEST, Warner Losh wrote:
> On Tue, Oct 10, 2023 at 1:53 AM Nicholas Piggin <npiggin@gmail.com> wrote:
>
> > FreeBSD project provides qcow2 images that work well for testing QEMU.
> > Add pseries tests for HPT and Radix, KVM and TCG.
> >
> > Other architectures could be added so this does not get a ppc_ prefix
> > but is instead named similarly to boot_linux.
> >
> > Cc: Warner Losh <imp@bsdimp.com>
> > Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
> >
> > CC'ing Warner to check if it's okay for us to use these images and
> > any comments or suggestions. avocado tests have many Linux boots so we'd
> > do much better to expand test coverage by adding some other systems.
> >
>
> I like this.... I'm a little worried at the exact hash encoded in it, but
> since there's a checksum
> to match, it's OK I guess. It will give this code a shelf-life of months,
> IIRC our retention policy.
Oh I didn't realise, I saw some 2021 dates in the directory listing but looks
like they're not for the artifacts themselves.
I don't suppose you know if there are any long-term artifacts kept
around, or someone who I could ask?
The downside of using short term images is that it can be harder to
reproduce reports from others, bisect, run manual testing, etc. I think
these would still be useful, so long as they get updated regularly.
>
> Other than that, I think this is good. Not familiar enough with Avocado to
> understand
> skipping for gitlab CI, but given the extreme crunch on minutes, I think
> that's OK.
Yeah I'm not sure what the situation there is, I didn't want to add new
tests of any significant weight yet. We could always flip it on later if
people want it.
>
> Other than one nit below which is fine if it is intentionally left behind
> (or removed):
>
> Reviewed-by: Warner Losh <imp@bsdimp.com>
>
> Please don't hesitate to reach out to me if this is failing. I'll act as a
> backstop to get
> it to the right people.
Thanks Warner.
>
> Warner
>
>
[snip]
> > + def run_pseries_test(self, force_HPT=False):
> > + # We need zstd for all the tuxrun tests
> > + # See https://github.com/avocado-framework/avocado/issues/5609
> > + zstd = find_command('zstd', False)
> > + if zstd is False:
> > + self.cancel('Could not find "zstd", which is required to '
> > + 'decompress rootfs')
> > + self.zstd = zstd
> > +
> > + drive_url = ('
> > https://artifact.ci.freebsd.org/snapshot/15.0-CURRENT/a2440348eed75bb7682579af0905b652747fd016/powerpc/powerpc64le/disk.qcow2.zst
> > ')
> > + drive_hash = '8ab11a05ccab3d44215fd4667a70454ed10a203f'
> > + drive_path_zstd = self.fetch_asset(drive_url,
> > asset_hash=drive_hash)
> > + drive_path = os.path.join(self.workdir, 'disk.qcow2')
> > + # archive.zstd_uncompress(drive_path_zstd, drive_path)
> >
>
> Why is this commented out? It looks like a leftover maybe?
>
Ah yes, avocado recently got zstd_uncompress but it seems not
available for QEMU yet so we have to do it by hand. I'll remove.
Thanks,
Nick
- [RFC PATCH 00/11] ppc: avocado test additions and new defaults, Nicholas Piggin, 2023/10/10
- [RFC PATCH 01/11] tests/avocado: ppc add powernv10 boot_linux_console test, Nicholas Piggin, 2023/10/10
- [RFC PATCH 02/11] tests/avocado: Add ppc pseries and powernv Hash MMU tests, Nicholas Piggin, 2023/10/10
- [RFC PATCH 03/11] tests/avocado: Add pseries KVM boot_linux test, Nicholas Piggin, 2023/10/10
- [RFC PATCH 04/11] tests/avocado: ppc add hypervisor tests, Nicholas Piggin, 2023/10/10
- [RFC PATCH 06/11] tests/avocado: Add FreeBSD distro boot tests for ppc, Nicholas Piggin, 2023/10/10
[RFC PATCH 05/11] testing/avocado: ppc add new BookE boot_linux_console.py tests, Nicholas Piggin, 2023/10/10
Re: [RFC PATCH 05/11] testing/avocado: ppc add new BookE boot_linux_console.py tests, Cédric Le Goater, 2023/10/16
[RFC PATCH 07/11] tests/avocado: Add ppc boot tests for non-free AIX images, Nicholas Piggin, 2023/10/10