unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Volunteers to implement test for stuff called at startup?
@ 2016-05-01 15:41 Eli Zaretskii
  2016-05-01 23:07 ` Richard Stallman
  2016-05-11  2:05 ` John Wiegley
  0 siblings, 2 replies; 10+ messages in thread
From: Eli Zaretskii @ 2016-05-01 15:41 UTC (permalink / raw)
  To: emacs-devel

From time to time, as part of development, we install changes that
break some rare platforms or configurations.  One reason for that is
inadvertent calls during startup sequence to primitives that are
either not yet set up (because Emacs is in the middle of its startup),
or are simply not available in those rare configurations.

For example, a recent change caused process-list to be called very
early during startup.  The code that was installed was not intended to
run during startup, I think, so this was an inadvertent side effect.
If the fact that process-list is called when Emacs starts was evident
at the time, I'm sure several brows would have been raised, and the
author would have been asked to explain why that is needed, with the
result that this code could have been scrutinized in time for us to
either change it not to run during startup, or add some conditions
that would have avoided the trouble, or whatever.

So with this in mind, one idea that could help us detect similar
situations in the future would be to have a test in the test suite
that would record every primitive called during startup, compare it
against some expected list, and flag any changes (at least additions,
not sure about deletions).  Then both people who run the test suite
regularly and bots like Hydra could flag any changes and let us handle
these potential problems when they are young.

Does that make sense?  If so, would someone like to volunteer for the
job?

TIA



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

end of thread, other threads:[~2016-05-11  2:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-01 15:41 Volunteers to implement test for stuff called at startup? Eli Zaretskii
2016-05-01 23:07 ` Richard Stallman
2016-05-02 15:08   ` Kaushal Modi
2016-05-02 15:15     ` Robert Pluim
2016-05-02 15:23       ` Kaushal Modi
2016-05-02 15:32     ` Eli Zaretskii
2016-05-02 15:44       ` Kaushal Modi
2016-05-02 15:56         ` Eli Zaretskii
2016-05-02 16:23           ` Kaushal Modi
2016-05-11  2:05 ` John Wiegley

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).