From: Jeff King <peff@peff.net>
To: git@vger.kernel.org
Subject: [PATCH 0/3] reduce test suite dependency on network
Date: Wed, 26 Jun 2024 16:53:55 -0400 [thread overview]
Message-ID: <20240626205355.GA1009060@coredump.intra.peff.net> (raw)
I'm in a remote cabin with spotty internet this week, and I noticed
several delays while running "make test". The culprit was DNS request
packets being dropped due to a passing rainstorm, but not enough that
the OS decided the network was down (the DNS resolver was on the other
end of a VPN). So I was waiting for DNS timeouts.
This is kind of an exotic situation, but it seems to me that the test
suite should avoid making network requests in general, just for the sake
of reproducibility. And avoiding timeouts is a nice bonus.
So here are a few small fixes, after which running "make test" requires
zero DNS lookups (and presumably zero external network at all, though of
course we hit localhost/127.0.0.1 for various http, etc, tests).
[1/3]: t5553: use local url for invalid fetch
[2/3]: t5551: do not confirm that bogus url cannot be used
[3/3]: t/lib-bundle-uri: use local fake bundle URLs
t/lib-bundle-uri-protocol.sh | 4 ++--
t/t5551-http-fetch-smart.sh | 1 -
t/t5553-set-upstream.sh | 8 ++++----
3 files changed, 6 insertions(+), 7 deletions(-)
-Peff
next reply other threads:[~2024-06-26 20:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-26 20:53 Jeff King [this message]
2024-06-26 20:54 ` [PATCH 1/3] t5553: use local url for invalid fetch Jeff King
2024-06-26 20:55 ` [PATCH 2/3] t5551: do not confirm that bogus url cannot be used Jeff King
2024-06-26 20:57 ` [PATCH 3/3] t/lib-bundle-uri: use local fake bundle URLs Jeff King
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=20240626205355.GA1009060@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.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.
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 NNTP newsgroup(s).