From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
To: git@vger.kernel.org
Cc: "Derrick Stolee" <derrickstolee@github.com>,
"Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Subject: [RFC PATCH 3/5] CI: add a linux-BUILD-vars job
Date: Wed, 15 Jun 2022 12:53:30 +0200 [thread overview]
Message-ID: <RFC-patch-3.5-d69368c5b39-20220615T104503Z-avarab@gmail.com> (raw)
In-Reply-To: <RFC-cover-0.5-00000000000-20220615T104503Z-avarab@gmail.com>
Add a linux-BUILD-vars job, in a preceding commit we fixed a bug that
would have been spotted by testing under NO_CURL=Y.
This CI job attempts to unset various settings in config.mak.uname and
the Makefile, so that we'll stress our fallbacks and conditionally
compiled code as much as possible.
If there is a missing setting here that we can enable under
"ubuntu-latest" the omission isn't intentional, this list came from a
quick skimming of the relevant parts of the Makefile and
config.mak.uname.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
.github/workflows/main.yml | 3 +++
ci/run-build-and-tests.sh | 30 ++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 3fa88b78b6d..25263c6b17a 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -229,6 +229,9 @@ jobs:
cc: gcc
os: ubuntu
cc_package: gcc-8
+ - jobname: linux-BUILD-vars
+ cc: gcc
+ os: ubuntu
pool: ubuntu-latest
- jobname: osx-clang
cc: clang
diff --git a/ci/run-build-and-tests.sh b/ci/run-build-and-tests.sh
index 8ebff425967..786285c5071 100755
--- a/ci/run-build-and-tests.sh
+++ b/ci/run-build-and-tests.sh
@@ -31,6 +31,36 @@ linux-TEST-vars)
export GIT_TEST_WRITE_REV_INDEX=1
export GIT_TEST_CHECKOUT_WORKERS=2
;;
+linux-BUILD-vars)
+ export NO_CURL=Y
+ export NO_PTHREADS=Y
+ export NO_GETTEXT=Y
+
+ # Undo settings in config.mak.uname
+ export HAVE_ALLOCA_H=
+
+ # Various compat/ fallbacks, with "FAIL" omitted if faking it
+ # doesn't work on Linux.
+ export NO_REGEX=Y
+ export NO_MEMMEM=Y
+ export INTERNAL_QSORT=Y
+ export SNPRINTF_RETURNS_BOGUS=Y
+ export FREAD_READS_DIRECTORIES=Y
+ export OPEN_RETURNS_EINTR=Y
+ export NO_HSTRERROR= # compat/hstrerror.c FAIL
+ export NO_POLL=Y
+ export NO_STRCASESTR=Y
+ export NO_STRTOUMAX=Y
+ export NO_SETENV=Y
+ export NO_UNSETENV=Y
+ export NO_MMAP=Y
+ export NO_PREAD=Y
+ export NEEDS_MODE_TRANSLATION= # compat/stat.c FAIL
+ export NO_IPV6=Y
+ export NO_INET_NTOP=Y
+ export NO_INET_PTON=Y
+ export NO_UNIX_SOCKETS=Y
+ ;;
linux-clang)
export GIT_TEST_DEFAULT_HASH=sha1
;;
--
2.36.1.1239.gfba91521d90
next prev parent reply other threads:[~2022-06-15 10:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-15 10:53 [RFC PATCH 0/5] fix issues in transfer.credentialsInUrl Ævar Arnfjörð Bjarmason
2022-06-15 10:53 ` [RFC PATCH 1/5] push tests: add a missing "test_line_count" Ævar Arnfjörð Bjarmason
2022-06-15 10:53 ` [RFC PATCH 2/5] fetch+push tests: add missing coverage for 6dcbdc0d661 Ævar Arnfjörð Bjarmason
2022-06-15 12:39 ` Derrick Stolee
2022-06-15 10:53 ` Ævar Arnfjörð Bjarmason [this message]
2022-06-15 12:41 ` [RFC PATCH 3/5] CI: add a linux-BUILD-vars job Derrick Stolee
2022-06-15 10:53 ` [RFC PATCH 4/5] fetch: stop emitting duplicate transfer.credentialsInUrl=warn warnings Ævar Arnfjörð Bjarmason
2022-06-15 10:53 ` [RFC PATCH 5/5] transport: check remote.<name>pushurl with transfer.credentialsInUrl Ævar Arnfjörð Bjarmason
2022-06-15 12:52 ` [RFC PATCH 0/5] fix issues in transfer.credentialsInUrl Derrick Stolee
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=RFC-patch-3.5-d69368c5b39-20220615T104503Z-avarab@gmail.com \
--to=avarab@gmail.com \
--cc=derrickstolee@github.com \
--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).