All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] tests/acceptance: change armbian archive to a faster host
@ 2021-05-26 20:56 Willian Rampazzo
  2021-05-26 20:56 ` [PATCH 1/1] " Willian Rampazzo
  0 siblings, 1 reply; 7+ messages in thread
From: Willian Rampazzo @ 2021-05-26 20:56 UTC (permalink / raw)
  To: qemu-devel
  Cc: Philippe Mathieu-Daudé, Wainer dos Santos Moschetta, Cleber Rosa

Successful run of acceptance-system-debian job on an empty cache of GitLab CI:
https://gitlab.com/willianrampazzo/qemu/-/jobs/1296353352

Pipeline run:
https://gitlab.com/willianrampazzo/qemu/-/pipelines/310116951

The measure of the download speed with the previous host:
https://gitlab.com/willianrampazzo/qemu/-/pipelines/309442706

The current host for the image
Armbian_20.08.1_Orangepipc_bionic_current_5.8.5.img.xz
(archive.armbian.com) is extremely slow in the last couple of weeks,
making the job running the test
tests/system/boot_linux_console.py:BootLinuxConsole.test_arm_orangepi_bionic_20_08
for the first time when the image is not yet on GitLab cache, time out
while the image is being downloaded.

This changes the host to one faster, so new users with an empty cache
are not impacted.

Signed-off-by: Willian Rampazzo <willianr@redhat.com>

Willian Rampazzo (1):
  tests/acceptance: change armbian archive to a faster host

 tests/acceptance/boot_linux_console.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.31.1




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

* [PATCH 1/1] tests/acceptance: change armbian archive to a faster host
  2021-05-26 20:56 [PATCH 0/1] tests/acceptance: change armbian archive to a faster host Willian Rampazzo
@ 2021-05-26 20:56 ` Willian Rampazzo
  2021-05-26 23:41   ` Cleber Rosa
  2021-05-27 18:11   ` Wainer dos Santos Moschetta
  0 siblings, 2 replies; 7+ messages in thread
From: Willian Rampazzo @ 2021-05-26 20:56 UTC (permalink / raw)
  To: qemu-devel
  Cc: Philippe Mathieu-Daudé, Wainer dos Santos Moschetta, Cleber Rosa

The current host for the image
Armbian_20.08.1_Orangepipc_bionic_current_5.8.5.img.xz
(archive.armbian.com) is extremely slow in the last couple of weeks,
making the job running the test
tests/system/boot_linux_console.py:BootLinuxConsole.test_arm_orangepi_bionic_20_08
for the first time when the image is not yet on GitLab cache, time out
while the image is being downloaded.

This changes the host to one faster, so new users with an empty cache
are not impacted.

Signed-off-by: Willian Rampazzo <willianr@redhat.com>
---
 tests/acceptance/boot_linux_console.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
index 276a53f146..51c23b822c 100644
--- a/tests/acceptance/boot_linux_console.py
+++ b/tests/acceptance/boot_linux_console.py
@@ -804,7 +804,8 @@ def test_arm_orangepi_bionic_20_08(self):
         # to 1036 MiB, but the underlying filesystem is 1552 MiB...
         # As we expand it to 2 GiB we are safe.
 
-        image_url = ('https://archive.armbian.com/orangepipc/archive/'
+        image_url = ('https://armbian.systemonachip.net/'
+                     'archive/orangepipc/archive/'
                      'Armbian_20.08.1_Orangepipc_bionic_current_5.8.5.img.xz')
         image_hash = ('b4d6775f5673486329e45a0586bf06b6'
                       'dbe792199fd182ac6b9c7bb6c7d3e6dd')
-- 
2.31.1



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

* Re: [PATCH 1/1] tests/acceptance: change armbian archive to a faster host
  2021-05-26 20:56 ` [PATCH 1/1] " Willian Rampazzo
@ 2021-05-26 23:41   ` Cleber Rosa
  2021-05-27 13:45     ` Willian Rampazzo
  2021-05-27 18:11   ` Wainer dos Santos Moschetta
  1 sibling, 1 reply; 7+ messages in thread
From: Cleber Rosa @ 2021-05-26 23:41 UTC (permalink / raw)
  To: Willian Rampazzo
  Cc: Philippe Mathieu-Daudé, qemu-devel, Wainer dos Santos Moschetta

[-- Attachment #1: Type: text/plain, Size: 2308 bytes --]

On Wed, May 26, 2021 at 05:56:01PM -0300, Willian Rampazzo wrote:
> The current host for the image
> Armbian_20.08.1_Orangepipc_bionic_current_5.8.5.img.xz
> (archive.armbian.com) is extremely slow in the last couple of weeks,
> making the job running the test
> tests/system/boot_linux_console.py:BootLinuxConsole.test_arm_orangepi_bionic_20_08
> for the first time when the image is not yet on GitLab cache, time out
> while the image is being downloaded.
> 
> This changes the host to one faster, so new users with an empty cache
> are not impacted.
> 
> Signed-off-by: Willian Rampazzo <willianr@redhat.com>
> ---
>  tests/acceptance/boot_linux_console.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
> index 276a53f146..51c23b822c 100644
> --- a/tests/acceptance/boot_linux_console.py
> +++ b/tests/acceptance/boot_linux_console.py
> @@ -804,7 +804,8 @@ def test_arm_orangepi_bionic_20_08(self):
>          # to 1036 MiB, but the underlying filesystem is 1552 MiB...
>          # As we expand it to 2 GiB we are safe.
>  
> -        image_url = ('https://archive.armbian.com/orangepipc/archive/'
> +        image_url = ('https://armbian.systemonachip.net/'
> +                     'archive/orangepipc/archive/'

Hi Willian,

I was pretty annoyed by my pipeline failures, that I came up with:

   https://gitlab.com/cleber.gnu/qemu/-/commit/917b3e376e682e9c35c6f7f597ffca110c719e13

To prove that it was a GitLab <-> archive.arbian.com issue.  But I
wonder:

 1. how susceptible to the same situation is this other mirror?
 2. how trustworthy is this mirror, say, stability wise? Maybe
    people in the armbian community would have some info?

Depending on the feedback we get about, this can be a very valid
hotfix/workaround indeed.  But the core issues we need to look into
are:

 a. applying a timeout when fetching assets.  If the asset fails to be
    fetched within the timeout, the test simply gets canceled.

 b. evaluate the use of the multiple "locations" support that the
    avocado.utils.asset library has (and improve it if necessary).

Anyway, thanks for looking into this, and let's wait a bit for
feedback.

- Cleber.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [PATCH 1/1] tests/acceptance: change armbian archive to a faster host
  2021-05-26 23:41   ` Cleber Rosa
@ 2021-05-27 13:45     ` Willian Rampazzo
  2021-06-02 14:08       ` Cleber Rosa Junior
  0 siblings, 1 reply; 7+ messages in thread
From: Willian Rampazzo @ 2021-05-27 13:45 UTC (permalink / raw)
  To: Cleber Rosa
  Cc: Philippe Mathieu-Daudé, qemu-devel, Wainer dos Santos Moschetta

On Wed, May 26, 2021 at 8:41 PM Cleber Rosa <crosa@redhat.com> wrote:
>
> On Wed, May 26, 2021 at 05:56:01PM -0300, Willian Rampazzo wrote:
> > The current host for the image
> > Armbian_20.08.1_Orangepipc_bionic_current_5.8.5.img.xz
> > (archive.armbian.com) is extremely slow in the last couple of weeks,
> > making the job running the test
> > tests/system/boot_linux_console.py:BootLinuxConsole.test_arm_orangepi_bionic_20_08
> > for the first time when the image is not yet on GitLab cache, time out
> > while the image is being downloaded.
> >
> > This changes the host to one faster, so new users with an empty cache
> > are not impacted.
> >
> > Signed-off-by: Willian Rampazzo <willianr@redhat.com>
> > ---
> >  tests/acceptance/boot_linux_console.py | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
> > index 276a53f146..51c23b822c 100644
> > --- a/tests/acceptance/boot_linux_console.py
> > +++ b/tests/acceptance/boot_linux_console.py
> > @@ -804,7 +804,8 @@ def test_arm_orangepi_bionic_20_08(self):
> >          # to 1036 MiB, but the underlying filesystem is 1552 MiB...
> >          # As we expand it to 2 GiB we are safe.
> >
> > -        image_url = ('https://archive.armbian.com/orangepipc/archive/'
> > +        image_url = ('https://armbian.systemonachip.net/'
> > +                     'archive/orangepipc/archive/'
>
> Hi Willian,
>
> I was pretty annoyed by my pipeline failures, that I came up with:
>
>    https://gitlab.com/cleber.gnu/qemu/-/commit/917b3e376e682e9c35c6f7f597ffca110c719e13
>
> To prove that it was a GitLab <-> archive.arbian.com issue.

When I tried both links, the slow link, and this new link, on my
machine, I could see the slow link is also slow locally. Not as slow
as on GitLab, but 10 times slower than this new link. I was thinking
about open an issue on GitLab. In the worst case, they will say it is
not their fault, but a problem on the other end.

> But I wonder:
>
>  1. how susceptible to the same situation is this other mirror?

Unfortunately, having tests depending on external artifacts will bring
this kind of situation. Unless GitLab is doing traffic shaping, we
will never know how susceptible an external server is to any kind of
instability.

>  2. how trustworthy is this mirror, say, stability wise? Maybe
>     people in the armbian community would have some info?

This new link is the same link that
https://www.armbian.com/orange-pi-pc/ "Archived versions" is pointing,
so I consider it an official mirror from Armbian. That's why I have
not thought much about changing it.

Now, stability wise, we never know :) I don't think we have this
answer for any of the links related to external artifacts QEMU
acceptance tests use.

>
> Depending on the feedback we get about, this can be a very valid
> hotfix/workaround indeed.  But the core issues we need to look into
> are:
>
>  a. applying a timeout when fetching assets.  If the asset fails to be
>     fetched within the timeout, the test simply gets canceled.

But this is failing during the download before the test starts, or in
the pre-phase. The test suite was not created and Avocado don't have a
mapping asset <=> test yet.

>
>  b. evaluate the use of the multiple "locations" support that the
>     avocado.utils.asset library has (and improve it if necessary).
>

This may be an option with a timeout in the location. If the download
on one location times out, try another.

> Anyway, thanks for looking into this, and let's wait a bit for
> feedback.
>
> - Cleber.



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

* Re: [PATCH 1/1] tests/acceptance: change armbian archive to a faster host
  2021-05-26 20:56 ` [PATCH 1/1] " Willian Rampazzo
  2021-05-26 23:41   ` Cleber Rosa
@ 2021-05-27 18:11   ` Wainer dos Santos Moschetta
  1 sibling, 0 replies; 7+ messages in thread
From: Wainer dos Santos Moschetta @ 2021-05-27 18:11 UTC (permalink / raw)
  To: Willian Rampazzo, qemu-devel; +Cc: Philippe Mathieu-Daudé, Cleber Rosa

Hi,

On 5/26/21 5:56 PM, Willian Rampazzo wrote:
> The current host for the image
> Armbian_20.08.1_Orangepipc_bionic_current_5.8.5.img.xz
> (archive.armbian.com) is extremely slow in the last couple of weeks,
> making the job running the test
> tests/system/boot_linux_console.py:BootLinuxConsole.test_arm_orangepi_bionic_20_08
> for the first time when the image is not yet on GitLab cache, time out
> while the image is being downloaded.
>
> This changes the host to one faster, so new users with an empty cache
> are not impacted.

Here the old host performed slightly better: download time of 0:17:36 vs 
0:19:44. Maybe it was a temporary issue with the old host or maybe 
GitLab's runner network?

Anyway,

Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>


>
> Signed-off-by: Willian Rampazzo <willianr@redhat.com>
> ---
>   tests/acceptance/boot_linux_console.py | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
> index 276a53f146..51c23b822c 100644
> --- a/tests/acceptance/boot_linux_console.py
> +++ b/tests/acceptance/boot_linux_console.py
> @@ -804,7 +804,8 @@ def test_arm_orangepi_bionic_20_08(self):
>           # to 1036 MiB, but the underlying filesystem is 1552 MiB...
>           # As we expand it to 2 GiB we are safe.
>   
> -        image_url = ('https://archive.armbian.com/orangepipc/archive/'
> +        image_url = ('https://armbian.systemonachip.net/'
> +                     'archive/orangepipc/archive/'
>                        'Armbian_20.08.1_Orangepipc_bionic_current_5.8.5.img.xz')
>           image_hash = ('b4d6775f5673486329e45a0586bf06b6'
>                         'dbe792199fd182ac6b9c7bb6c7d3e6dd')



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

* Re: [PATCH 1/1] tests/acceptance: change armbian archive to a faster host
  2021-05-27 13:45     ` Willian Rampazzo
@ 2021-06-02 14:08       ` Cleber Rosa Junior
  2021-06-02 14:42         ` Willian Rampazzo
  0 siblings, 1 reply; 7+ messages in thread
From: Cleber Rosa Junior @ 2021-06-02 14:08 UTC (permalink / raw)
  To: Willian Rampazzo
  Cc: Philippe Mathieu-Daudé, qemu-devel, Wainer dos Santos Moschetta

[-- Attachment #1: Type: text/plain, Size: 3883 bytes --]

On Thu, May 27, 2021 at 9:45 AM Willian Rampazzo <wrampazz@redhat.com>
wrote:

> On Wed, May 26, 2021 at 8:41 PM Cleber Rosa <crosa@redhat.com> wrote:
> >
> > On Wed, May 26, 2021 at 05:56:01PM -0300, Willian Rampazzo wrote:
> > > The current host for the image
> > > Armbian_20.08.1_Orangepipc_bionic_current_5.8.5.img.xz
> > > (archive.armbian.com) is extremely slow in the last couple of weeks,
> > > making the job running the test
> > >
> tests/system/boot_linux_console.py:BootLinuxConsole.test_arm_orangepi_bionic_20_08
> > > for the first time when the image is not yet on GitLab cache, time out
> > > while the image is being downloaded.
> > >
> > > This changes the host to one faster, so new users with an empty cache
> > > are not impacted.
> > >
> > > Signed-off-by: Willian Rampazzo <willianr@redhat.com>
> > > ---
> > >  tests/acceptance/boot_linux_console.py | 3 ++-
> > >  1 file changed, 2 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/tests/acceptance/boot_linux_console.py
> b/tests/acceptance/boot_linux_console.py
> > > index 276a53f146..51c23b822c 100644
> > > --- a/tests/acceptance/boot_linux_console.py
> > > +++ b/tests/acceptance/boot_linux_console.py
> > > @@ -804,7 +804,8 @@ def test_arm_orangepi_bionic_20_08(self):
> > >          # to 1036 MiB, but the underlying filesystem is 1552 MiB...
> > >          # As we expand it to 2 GiB we are safe.
> > >
> > > -        image_url = ('https://archive.armbian.com/orangepipc/archive/
> '
> > > +        image_url = ('https://armbian.systemonachip.net/'
> > > +                     'archive/orangepipc/archive/'
> >
> > Hi Willian,
> >
> > I was pretty annoyed by my pipeline failures, that I came up with:
> >
> >
> https://gitlab.com/cleber.gnu/qemu/-/commit/917b3e376e682e9c35c6f7f597ffca110c719e13
> >
> > To prove that it was a GitLab <-> archive.arbian.com issue.
>
> When I tried both links, the slow link, and this new link, on my
> machine, I could see the slow link is also slow locally. Not as slow
> as on GitLab, but 10 times slower than this new link. I was thinking
> about open an issue on GitLab. In the worst case, they will say it is
> not their fault, but a problem on the other end.
>
> > But I wonder:
> >
> >  1. how susceptible to the same situation is this other mirror?
>
> Unfortunately, having tests depending on external artifacts will bring
> this kind of situation. Unless GitLab is doing traffic shaping, we
> will never know how susceptible an external server is to any kind of
> instability.
>
> >  2. how trustworthy is this mirror, say, stability wise? Maybe
> >     people in the armbian community would have some info?
>
> This new link is the same link that
> https://www.armbian.com/orange-pi-pc/ "Archived versions" is pointing,
> so I consider it an official mirror from Armbian. That's why I have
> not thought much about changing it.
>
> Now, stability wise, we never know :) I don't think we have this
> answer for any of the links related to external artifacts QEMU
> acceptance tests use.
>
> >
> > Depending on the feedback we get about, this can be a very valid
> > hotfix/workaround indeed.  But the core issues we need to look into
> > are:
> >
> >  a. applying a timeout when fetching assets.  If the asset fails to be
> >     fetched within the timeout, the test simply gets canceled.
>
> But this is failing during the download before the test starts, or in
> the pre-phase. The test suite was not created and Avocado don't have a
> mapping asset <=> test yet.
>
>
Right. But my point is that if it times out, then this "best effort"
attempt would fail (but not abort the job).  Then, during the test itself,
considering `cancel_on_missing=True`, the test would also cancel when it
fails to access the asset.

A canceled test is what we want here, and not a stuck job.  That's why I
still think the timeout may be a solution.

Thanks,
- Cleber.

[-- Attachment #2: Type: text/html, Size: 5528 bytes --]

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

* Re: [PATCH 1/1] tests/acceptance: change armbian archive to a faster host
  2021-06-02 14:08       ` Cleber Rosa Junior
@ 2021-06-02 14:42         ` Willian Rampazzo
  0 siblings, 0 replies; 7+ messages in thread
From: Willian Rampazzo @ 2021-06-02 14:42 UTC (permalink / raw)
  To: Cleber Rosa Junior
  Cc: Philippe Mathieu-Daudé, qemu-devel, Wainer dos Santos Moschetta

On Wed, Jun 2, 2021 at 11:08 AM Cleber Rosa Junior <crosa@redhat.com> wrote:
>
>
>
> On Thu, May 27, 2021 at 9:45 AM Willian Rampazzo <wrampazz@redhat.com> wrote:
>>
>> On Wed, May 26, 2021 at 8:41 PM Cleber Rosa <crosa@redhat.com> wrote:
>> >
>> > On Wed, May 26, 2021 at 05:56:01PM -0300, Willian Rampazzo wrote:
>> > > The current host for the image
>> > > Armbian_20.08.1_Orangepipc_bionic_current_5.8.5.img.xz
>> > > (archive.armbian.com) is extremely slow in the last couple of weeks,
>> > > making the job running the test
>> > > tests/system/boot_linux_console.py:BootLinuxConsole.test_arm_orangepi_bionic_20_08
>> > > for the first time when the image is not yet on GitLab cache, time out
>> > > while the image is being downloaded.
>> > >
>> > > This changes the host to one faster, so new users with an empty cache
>> > > are not impacted.
>> > >
>> > > Signed-off-by: Willian Rampazzo <willianr@redhat.com>
>> > > ---
>> > >  tests/acceptance/boot_linux_console.py | 3 ++-
>> > >  1 file changed, 2 insertions(+), 1 deletion(-)
>> > >
>> > > diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
>> > > index 276a53f146..51c23b822c 100644
>> > > --- a/tests/acceptance/boot_linux_console.py
>> > > +++ b/tests/acceptance/boot_linux_console.py
>> > > @@ -804,7 +804,8 @@ def test_arm_orangepi_bionic_20_08(self):
>> > >          # to 1036 MiB, but the underlying filesystem is 1552 MiB...
>> > >          # As we expand it to 2 GiB we are safe.
>> > >
>> > > -        image_url = ('https://archive.armbian.com/orangepipc/archive/'
>> > > +        image_url = ('https://armbian.systemonachip.net/'
>> > > +                     'archive/orangepipc/archive/'
>> >
>> > Hi Willian,
>> >
>> > I was pretty annoyed by my pipeline failures, that I came up with:
>> >
>> >    https://gitlab.com/cleber.gnu/qemu/-/commit/917b3e376e682e9c35c6f7f597ffca110c719e13
>> >
>> > To prove that it was a GitLab <-> archive.arbian.com issue.
>>
>> When I tried both links, the slow link, and this new link, on my
>> machine, I could see the slow link is also slow locally. Not as slow
>> as on GitLab, but 10 times slower than this new link. I was thinking
>> about open an issue on GitLab. In the worst case, they will say it is
>> not their fault, but a problem on the other end.
>>
>> > But I wonder:
>> >
>> >  1. how susceptible to the same situation is this other mirror?
>>
>> Unfortunately, having tests depending on external artifacts will bring
>> this kind of situation. Unless GitLab is doing traffic shaping, we
>> will never know how susceptible an external server is to any kind of
>> instability.
>>
>> >  2. how trustworthy is this mirror, say, stability wise? Maybe
>> >     people in the armbian community would have some info?
>>
>> This new link is the same link that
>> https://www.armbian.com/orange-pi-pc/ "Archived versions" is pointing,
>> so I consider it an official mirror from Armbian. That's why I have
>> not thought much about changing it.
>>
>> Now, stability wise, we never know :) I don't think we have this
>> answer for any of the links related to external artifacts QEMU
>> acceptance tests use.
>>
>> >
>> > Depending on the feedback we get about, this can be a very valid
>> > hotfix/workaround indeed.  But the core issues we need to look into
>> > are:
>> >
>> >  a. applying a timeout when fetching assets.  If the asset fails to be
>> >     fetched within the timeout, the test simply gets canceled.
>>
>> But this is failing during the download before the test starts, or in
>> the pre-phase. The test suite was not created and Avocado don't have a
>> mapping asset <=> test yet.
>>
>
> Right. But my point is that if it times out, then this "best effort" attempt would fail (but not abort the job).  Then, during the test itself, considering `cancel_on_missing=True`, the test would also cancel when it fails to access the asset.
>
> A canceled test is what we want here, and not a stuck job.  That's why I still think the timeout may be a solution.
>

Okay, got it! I opened an issue to track this feature:
https://github.com/avocado-framework/avocado/issues/4643

Anyway, for now, I think changing the URL gives us some time until we
have the problem again :)

> Thanks,
> - Cleber.
>



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

end of thread, other threads:[~2021-06-02 14:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 20:56 [PATCH 0/1] tests/acceptance: change armbian archive to a faster host Willian Rampazzo
2021-05-26 20:56 ` [PATCH 1/1] " Willian Rampazzo
2021-05-26 23:41   ` Cleber Rosa
2021-05-27 13:45     ` Willian Rampazzo
2021-06-02 14:08       ` Cleber Rosa Junior
2021-06-02 14:42         ` Willian Rampazzo
2021-05-27 18:11   ` Wainer dos Santos Moschetta

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.