all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: emacs-devel@gnu.org
Subject: Volunteers to implement test for stuff called at startup?
Date: Sun, 01 May 2016 18:41:48 +0300	[thread overview]
Message-ID: <83y47tn5tv.fsf@gnu.org> (raw)

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



             reply	other threads:[~2016-05-01 15:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-01 15:41 Eli Zaretskii [this message]
2016-05-01 23:07 ` Volunteers to implement test for stuff called at startup? 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

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=83y47tn5tv.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this external index

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

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.