All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: Nicholas Piggin <npiggin@gmail.com>, qemu-devel@nongnu.org
Cc: Peter Xu <peterx@redhat.com>, Fabiano Rosas <farosas@suse.de>,
	Laurent Vivier <lvivier@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	qemu-ppc@nongnu.org
Subject: Re: [PATCH v2 1/6] tests/qtest/migration: Run test_mode_reboot outside gitlab CI
Date: Tue, 28 May 2024 08:35:23 +0200	[thread overview]
Message-ID: <ef45002e-4693-4c97-9b94-9624db2090e9@redhat.com> (raw)
In-Reply-To: <20240528004211.564010-2-npiggin@gmail.com>

On 28/05/2024 02.42, Nicholas Piggin wrote:
> As Fabiano points out, this test isn't flaky it just can't run under
> gitlab CI since runners have a very small shm size.
> 
> Suggested-by: Fabiano Rosas <farosas@suse.de>
> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
> ---
>   tests/qtest/migration-test.c | 18 +++++++++---------
>   1 file changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
> index b7e3406471..04bf1c0092 100644
> --- a/tests/qtest/migration-test.c
> +++ b/tests/qtest/migration-test.c
> @@ -706,6 +706,14 @@ static int test_migrate_start(QTestState **from, QTestState **to,
>               g_test_skip("/dev/shm is not supported");
>               return -1;
>           }
> +        if (getenv("GITLAB_CI")) {
> +            /*
> +             * Gitlab runners are limited to 64MB shm size. See:
> +             * https://lore.kernel.org/all/87ttq5fvh7.fsf@suse.de/
> +             */
> +            g_test_skip("/dev/shm is not supported in Gitlab CI environment");
> +            return -1;
> +        }
>       }

Note that there is more than gitlab-CI: We can also run tests on Travis 
(well, hardly anybody beside me is still doing that) or other constraints 
container environments ... so it might be better to check whether enough 
space is available than to tie this to an environment variable (or even 
better change away from /dev/shm if possible like you did in your other 
patch - but I don't have a clue whether that's ok or not for these tests)

  Thomas



  reply	other threads:[~2024-05-28  6:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-28  0:42 [PATCH v2 0/6] tests/qtest/migration-test: Improve and enable on ppc64 Nicholas Piggin
2024-05-28  0:42 ` [PATCH v2 1/6] tests/qtest/migration: Run test_mode_reboot outside gitlab CI Nicholas Piggin
2024-05-28  6:35   ` Thomas Huth [this message]
2024-05-28  0:42 ` [PATCH v2 2/6] tests/qtest/migration-test: Fix and enable test_ignore_shared Nicholas Piggin
2024-05-28 19:21   ` Peter Xu
2024-05-28  0:42 ` [PATCH v2 3/6] tests/qtest: Move common define from libqos-spapr.h to new ppc-util.h Nicholas Piggin
2024-05-28  6:37   ` Thomas Huth
2024-05-28  0:42 ` [PATCH v2 4/6] tests/qtest/migration-test: Quieten ppc64 QEMU warnigns Nicholas Piggin
2024-05-28  6:38   ` Thomas Huth
2024-05-28  0:42 ` [PATCH v2 5/6] tests/qtest/migration-test: Enable on ppc64 TCG Nicholas Piggin
2024-05-28  0:42 ` [PATCH v2 6/6] tests/qtest/migration-test: Use custom asm bios for ppc64 Nicholas Piggin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ef45002e-4693-4c97-9b94-9624db2090e9@redhat.com \
    --to=thuth@redhat.com \
    --cc=farosas@suse.de \
    --cc=lvivier@redhat.com \
    --cc=npiggin@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=peterx@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.