All of lore.kernel.org
 help / color / mirror / Atom feed
* Broken gfxterm_menu tests
@ 2013-11-18 15:24 Colin Watson
  2013-11-18 16:10 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 5+ messages in thread
From: Colin Watson @ 2013-11-18 15:24 UTC (permalink / raw)
  To: grub-devel

The gfxterm_menu functional tests fail for me:

  gfxterm_menu:
   tests/video_checksum.c:checksum:620: assert failed: 0 Checksum
  gfxterm_ch_2560x1440xrgba8888:18 failed: 0xcc233c83 vs
  0xa948d513
   tests/video_checksum.c:checksum:620: assert failed: 0 Checksum
  gfxterm_ch_2560x1440xrgba8888:17 failed: 0xcc233c83 vs
  0xa948d513
   tests/video_checksum.c:checksum:620: assert failed: 0 Checksum
  gfxterm_ch_2560x1440xrgba8888:15 failed: 0x4facdedc vs
  0xab22150c
   tests/video_checksum.c:checksum:620: assert failed: 0 Checksum
  gfxterm_ch_2560x1440xrgba8888:14 failed: 0x4facdedc vs
  0xab22150c
   tests/video_checksum.c:checksum:620: assert failed: 0 Checksum
  gfxterm_ch_2560x1440xrgba8888:13 failed: 0x4facdedc vs
  0xab22150c
   tests/video_checksum.c:checksum:620: assert failed: 0 Checksum
  gfxterm_ch_2560x1440xrgba8888:12 failed: 0x58950884 vs
  0xbc1bc354
   tests/video_checksum.c:checksum:620: assert failed: 0 Checksum
  gfxterm_ch_2560x1440xrgba8888:11 failed: 0x58950884 vs
  0xbc1bc354
   tests/video_checksum.c:checksum:620: assert failed: 0 Checksum
  gfxterm_ch_2560x1440xrgba8888:10 failed: 0x58950884 vs
  0xbc1bc354
   tests/video_checksum.c:checksum:620: assert failed: 0 Checksum
  gfxterm_ch_2560x1440xrgba8888:9 failed: 0x8c5a6902 vs
  0x68d4a2d2
   tests/video_checksum.c:checksum:620: assert failed: 0 Checksum
  gfxterm_ch_2560x1440xrgba8888:8 failed: 0x8c5a6902 vs
  0x68d4a2d2
   tests/video_checksum.c:checksum:620: assert failed: 0 Checksum
  gfxterm_ch_2560x1440xrgba8888:7 failed: 0x8c5a6902 vs
  0x68d4a2d2
   tests/video_checksum.c:checksum:620: assert failed: 0 Checksum
  gfxterm_ch_2560x1440xrgba8888:4 failed: 0xcc233c83 vs
  0xa948d513
   tests/video_checksum.c:checksum:620: assert failed: 0 Checksum
  gfxterm_ch_2560x1440xrgba8888:3 failed: 0x9f8f359d vs
  0xfae4dc0d
   tests/video_checksum.c:checksum:620: assert failed: 0 Checksum
  gfxterm_ch_2560x1440xrgba8888:2 failed: 0x93189e6 vs 0x27a05926
   tests/video_checksum.c:checksum:620: assert failed: 0 Checksum
  gfxterm_ch_2560x1440xrgba8888:1 failed: 0x9f8f359d vs
  0xfae4dc0d
  [lots more of the same]

Is this specific to my environment, or is it happening for everyone?  In
the latter case I guess the checksums ought to be updated.

-- 
Colin Watson                                       [cjwatson@ubuntu.com]


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

* Re: Broken gfxterm_menu tests
  2013-11-18 15:24 Broken gfxterm_menu tests Colin Watson
@ 2013-11-18 16:10 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2013-11-18 18:00   ` Colin Watson
  0 siblings, 1 reply; 5+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2013-11-18 16:10 UTC (permalink / raw)
  To: The development of GNU GRUB

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


> Is this specific to my environment, or is it happening for everyone?  In
> the latter case I guess the checksums ought to be updated.
> 
Judging by your other commits you don't have locales installed. The
tests you point check for gettext among other things.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 291 bytes --]

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

* Re: Broken gfxterm_menu tests
  2013-11-18 16:10 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2013-11-18 18:00   ` Colin Watson
  2013-11-29 14:53     ` Colin Watson
  0 siblings, 1 reply; 5+ messages in thread
From: Colin Watson @ 2013-11-18 18:00 UTC (permalink / raw)
  To: grub-devel

On Mon, Nov 18, 2013 at 05:10:13PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> Colin Watson wrote:
> > Is this specific to my environment, or is it happening for everyone?  In
> > the latter case I guess the checksums ought to be updated.
> 
> Judging by your other commits you don't have locales installed. The
> tests you point check for gettext among other things.

I certainly have locales installed in general, but since I'm running
from a clean git checkout I don't have po/*.po in place.  Are you saying
that that would cause this failure?

I think our tests should pass when run from a clean git checkout,
without needing to fetch translations from an external source.

-- 
Colin Watson                                       [cjwatson@ubuntu.com]


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

* Re: Broken gfxterm_menu tests
  2013-11-18 18:00   ` Colin Watson
@ 2013-11-29 14:53     ` Colin Watson
  2025-11-10  2:21       ` Glenn Washburn
  0 siblings, 1 reply; 5+ messages in thread
From: Colin Watson @ 2013-11-29 14:53 UTC (permalink / raw)
  To: grub-devel

On Mon, Nov 18, 2013 at 06:00:59PM +0000, Colin Watson wrote:
> On Mon, Nov 18, 2013 at 05:10:13PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> > Colin Watson wrote:
> > > Is this specific to my environment, or is it happening for everyone?  In
> > > the latter case I guess the checksums ought to be updated.
> > 
> > Judging by your other commits you don't have locales installed. The
> > tests you point check for gettext among other things.
> 
> I certainly have locales installed in general, but since I'm running
> from a clean git checkout I don't have po/*.po in place.  Are you saying
> that that would cause this failure?
> 
> I think our tests should pass when run from a clean git checkout,
> without needing to fetch translations from an external source.

For the life of me I cannot get this to pass.  I tried running
./linguas.sh first, and patching grub-shell to pass --locale-directory
to grub-mkrescue so that it's definitely using the PO files from the
source directory; no luck as yet.  Any help would be greatly
appreciated.


That said: I propose that we should occasionally run ./linguas.sh and
commit the result to git.  While these files are autogenerated from our
point of view and our copies wouldn't be the furthest-upstream versions,
they clearly aren't entirely machine-generated so I think it is
reasonable to store them in revision control.  This would have at least
the following advantages:

 * Our build processes would no longer be vulnerable to an external
   server potentially going down for an extended period of time; we'd be
   stuck with outdated translations until somebody fixed it or came up
   with a workaround, of course, but that usually isn't fatal.

 * It would be easier to manage branches of stable releases, rather than
   assuming that translations downloaded for trunk will match the POT
   files for a stable release.

 * Tests would be able to pass from a clean git checkout without relying
   on an external server, improving QA reliability.

 * It would be easier to make and test branches while offline.

 * The translations shipped with a release tarball could be tagged in
   git so that it's easy to investigate bugs in them.

 * Downstream distributors would be able to use git branches without
   having to fill in additional files.  (This has been a low-level
   annoyance for me for some time.)

What do you think?

-- 
Colin Watson                                       [cjwatson@ubuntu.com]


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

* Re: Broken gfxterm_menu tests
  2013-11-29 14:53     ` Colin Watson
@ 2025-11-10  2:21       ` Glenn Washburn
  0 siblings, 0 replies; 5+ messages in thread
From: Glenn Washburn @ 2025-11-10  2:21 UTC (permalink / raw)
  To: Colin Watson; +Cc: The development of GNU GRUB

On Fri, 29 Nov 2013 14:53:06 +0000
Colin Watson <cjwatson@ubuntu.com> wrote:

> On Mon, Nov 18, 2013 at 06:00:59PM +0000, Colin Watson wrote:
> > On Mon, Nov 18, 2013 at 05:10:13PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> > > Colin Watson wrote:
> > > > Is this specific to my environment, or is it happening for everyone?  In
> > > > the latter case I guess the checksums ought to be updated.
> > > 
> > > Judging by your other commits you don't have locales installed. The
> > > tests you point check for gettext among other things.
> > 
> > I certainly have locales installed in general, but since I'm running
> > from a clean git checkout I don't have po/*.po in place.  Are you saying
> > that that would cause this failure?
> > 
> > I think our tests should pass when run from a clean git checkout,
> > without needing to fetch translations from an external source.
> 
> For the life of me I cannot get this to pass.  I tried running
> ./linguas.sh first, and patching grub-shell to pass --locale-directory
> to grub-mkrescue so that it's definitely using the PO files from the
> source directory; no luck as yet.  Any help would be greatly
> appreciated.
> 
> 
> That said: I propose that we should occasionally run ./linguas.sh and
> commit the result to git.  While these files are autogenerated from our
> point of view and our copies wouldn't be the furthest-upstream versions,
> they clearly aren't entirely machine-generated so I think it is
> reasonable to store them in revision control.  This would have at least
> the following advantages:
> 
>  * Our build processes would no longer be vulnerable to an external
>    server potentially going down for an extended period of time; we'd be
>    stuck with outdated translations until somebody fixed it or came up
>    with a workaround, of course, but that usually isn't fatal.
> 
>  * It would be easier to manage branches of stable releases, rather than
>    assuming that translations downloaded for trunk will match the POT
>    files for a stable release.
> 
>  * Tests would be able to pass from a clean git checkout without relying
>    on an external server, improving QA reliability.
> 
>  * It would be easier to make and test branches while offline.
> 
>  * The translations shipped with a release tarball could be tagged in
>    git so that it's easy to investigate bugs in them.
> 
>  * Downstream distributors would be able to use git branches without
>    having to fill in additional files.  (This has been a low-level
>    annoyance for me for some time.)
> 
> What do you think?

Daniel, this all sounds eminently reasonable. The linguas.sh script
should always try to update the po files and fallback to using the
existing po files if that fails, which it already does. On release
linguas.sh should be run to release with the most up-to-date version of
the po files. Those updated po files should be committed as part of the
release.

Sadly, Colin was not successful and neither has anyone else been since.

Glenn

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

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

end of thread, other threads:[~2025-11-10  2:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-18 15:24 Broken gfxterm_menu tests Colin Watson
2013-11-18 16:10 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-18 18:00   ` Colin Watson
2013-11-29 14:53     ` Colin Watson
2025-11-10  2:21       ` Glenn Washburn

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.