unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24503: unstable test results (on hydra)
@ 2016-09-21 20:22 Glenn Morris
  2017-01-11 19:41 ` Glenn Morris
  0 siblings, 1 reply; 11+ messages in thread
From: Glenn Morris @ 2016-09-21 20:22 UTC (permalink / raw)
  To: 24503

Package: emacs
Version: 25.1

On hydra (at least), some tests fail in one iteration and succeed in the
next, for no clear reason. This cause noise on the emacs-buildstatus
mailing list and makes it harder to spot real problems.

Someone (TM) should look into this and try to figure out if the tests
really have a problem, or if the problematic ones should just be
disabled on hydra.

eieio-test-37-obsolete-name-in-constructor is one I have noticed several
times.

Failed: http://hydra.nixos.org/build/40880158
Passed: http://hydra.nixos.org/build/40890883

There were no relevant changes between those builds.





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

* bug#24503: unstable test results (on hydra)
  2016-09-21 20:22 bug#24503: unstable test results (on hydra) Glenn Morris
@ 2017-01-11 19:41 ` Glenn Morris
  2017-01-11 21:45   ` Stefan Monnier
  0 siblings, 1 reply; 11+ messages in thread
From: Glenn Morris @ 2017-01-11 19:41 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 24503


Hi Stefan,

Do you have any idea why eieio-test-37-obsolete-name-in-constructor
sometimes (randomly?) fails with:

(eieio--testing "toto") -> [eieio-class-tag--eieio--testing]

rather than ("toto" 2) ?

Eg http://hydra.nixos.org/build/46213612/log/raw





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

* bug#24503: unstable test results (on hydra)
  2017-01-11 19:41 ` Glenn Morris
@ 2017-01-11 21:45   ` Stefan Monnier
  2017-01-11 22:09     ` Glenn Morris
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Monnier @ 2017-01-11 21:45 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 24503

> Do you have any idea why eieio-test-37-obsolete-name-in-constructor
> sometimes (randomly?) fails with:
> (eieio--testing "toto") -> [eieio-class-tag--eieio--testing]
> rather than ("toto" 2) ?

Hmm... not off the top of my head no.  I'll have to dig deeper to give
you a better answer,


        Stefan





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

* bug#24503: unstable test results (on hydra)
  2017-01-11 21:45   ` Stefan Monnier
@ 2017-01-11 22:09     ` Glenn Morris
  2017-01-11 23:06       ` Stefan Monnier
  0 siblings, 1 reply; 11+ messages in thread
From: Glenn Morris @ 2017-01-11 22:09 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 24503


I've failed to reproduce this issue myself in 1000+ trials. So maybe
it is some hydra-specific weirdness, though I can't see how.
If all else fails, the test can just be skipped there.





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

* bug#24503: unstable test results (on hydra)
  2017-01-11 22:09     ` Glenn Morris
@ 2017-01-11 23:06       ` Stefan Monnier
  2017-01-11 23:16         ` Glenn Morris
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Monnier @ 2017-01-11 23:06 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 24503

> I've failed to reproduce this issue myself in 1000+ trials. So maybe
> it is some hydra-specific weirdness, though I can't see how.
> If all else fails, the test can just be skipped there.

It could be due to a parallel-make issue where sometimes we load a .el
file and sometimes we load a .elc file depending on the relative order
of execution of the various parallel commands.


        Stefan "who still haven't looked at the actual code, so is just
                talking about very general ideas"





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

* bug#24503: unstable test results (on hydra)
  2017-01-11 23:06       ` Stefan Monnier
@ 2017-01-11 23:16         ` Glenn Morris
  2017-04-19 21:38           ` Glenn Morris
  0 siblings, 1 reply; 11+ messages in thread
From: Glenn Morris @ 2017-01-11 23:16 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 24503

Stefan Monnier wrote:

> It could be due to a parallel-make issue where sometimes we load a .el
> file and sometimes we load a .elc file depending on the relative order
> of execution of the various parallel commands.

I think hydra builds are single-core.
But obviously we need to wait till you can have a proper look. :)





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

* bug#24503: unstable test results (on hydra)
  2017-01-11 23:16         ` Glenn Morris
@ 2017-04-19 21:38           ` Glenn Morris
  2017-11-28 17:57             ` Glenn Morris
  0 siblings, 1 reply; 11+ messages in thread
From: Glenn Morris @ 2017-04-19 21:38 UTC (permalink / raw)
  To: 24503


Another one I've seen intermittently fail:

Test eieio-test-method-order-list-6 condition:
    (error "eieio-test-methodinvoke.el: Test Failed:
    ((:STATIC C) (:STATIC C-base1) (:STATIC C-base2)) != ((:STATIC C))")

Eg http://hydra.nixos.org/build/51808781





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

* bug#24503: unstable test results (on hydra)
  2017-04-19 21:38           ` Glenn Morris
@ 2017-11-28 17:57             ` Glenn Morris
  2017-11-29 13:35               ` Noam Postavsky
  2018-01-10  4:02               ` Glenn Morris
  0 siblings, 2 replies; 11+ messages in thread
From: Glenn Morris @ 2017-11-28 17:57 UTC (permalink / raw)
  To: 24503


Tests that "randomly" fail, like the ones mentioned in this report, are
a problem for downstream distributions that run "make check" and pay
attention to the results (I sometimes think they pay more attention than
Emacs does). They can waste their time investigating things that seem to
be platform-specific just because they happen to fail once on a
particular architecture.

Eg
https://bugs.debian.org/879020

So we do a disservice to the wider community with these tests that
sometimes fail. If they aren't good enough to be enabled on Emacs's own
CI system, they probably aren't good enough full-stop, and should be
disabled by default for everyone.





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

* bug#24503: unstable test results (on hydra)
  2017-11-28 17:57             ` Glenn Morris
@ 2017-11-29 13:35               ` Noam Postavsky
  2018-01-10  4:21                 ` Noam Postavsky
  2018-01-10  4:02               ` Glenn Morris
  1 sibling, 1 reply; 11+ messages in thread
From: Noam Postavsky @ 2017-11-29 13:35 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 24503

Glenn Morris <rgm@gnu.org> writes:

> Tests that "randomly" fail, like the ones mentioned in this report, are
> a problem for downstream distributions that run "make check" and pay
> attention to the results (I sometimes think they pay more attention than
> Emacs does). They can waste their time investigating things that seem to
> be platform-specific just because they happen to fail once on a
> particular architecture.
>
> Eg
> https://bugs.debian.org/879020
>
> So we do a disservice to the wider community with these tests that
> sometimes fail. If they aren't good enough to be enabled on Emacs's own
> CI system, they probably aren't good enough full-stop, and should be
> disabled by default for everyone.

Hmm, I can't see any reason for these tests to fail in a
non-deterministic way.  This sounds like it could be a serious bug.  And
if happens on machines other than the Hydra ones, the bug is almost
certainly in Emacs.  I think we need to add some logging statements to
figure out what is going.  I will try to figure how to do that.





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

* bug#24503: unstable test results (on hydra)
  2017-11-28 17:57             ` Glenn Morris
  2017-11-29 13:35               ` Noam Postavsky
@ 2018-01-10  4:02               ` Glenn Morris
  1 sibling, 0 replies; 11+ messages in thread
From: Glenn Morris @ 2018-01-10  4:02 UTC (permalink / raw)
  To: 24503-done

Version: 26.0.91

I've tagged the relevant tests as unstable and skipped them by default.
I will tag more tests as unstable if and when they come up.





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

* bug#24503: unstable test results (on hydra)
  2017-11-29 13:35               ` Noam Postavsky
@ 2018-01-10  4:21                 ` Noam Postavsky
  0 siblings, 0 replies; 11+ messages in thread
From: Noam Postavsky @ 2018-01-10  4:21 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 24503

Noam Postavsky <npostavs@users.sourceforge.net> writes:

> Hmm, I can't see any reason for these tests to fail in a
> non-deterministic way.  This sounds like it could be a serious bug.  And
> if happens on machines other than the Hydra ones, the bug is almost
> certainly in Emacs.  I think we need to add some logging statements to
> figure out what is going.  I will try to figure how to do that.

I didn't see any failures since I added tracing code [1: cfa50d30f2],
probably the tracing itself changed something which somehow prevents the
bug from triggering.

[1: cfa50d30f2]: 2017-12-03 15:39:02 -0500
  ; Tracing for eieio-test random failure (Bug#24503)
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=cfa50d30f2876ca30158082e9a91d19e804a7e09





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

end of thread, other threads:[~2018-01-10  4:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-21 20:22 bug#24503: unstable test results (on hydra) Glenn Morris
2017-01-11 19:41 ` Glenn Morris
2017-01-11 21:45   ` Stefan Monnier
2017-01-11 22:09     ` Glenn Morris
2017-01-11 23:06       ` Stefan Monnier
2017-01-11 23:16         ` Glenn Morris
2017-04-19 21:38           ` Glenn Morris
2017-11-28 17:57             ` Glenn Morris
2017-11-29 13:35               ` Noam Postavsky
2018-01-10  4:21                 ` Noam Postavsky
2018-01-10  4:02               ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).