I think just removing it is OK, we can always bring it back if needed,
and doing so is actually going to be simpler on top of this since the
CI is now less special, and leans more heavily on the logic of our
normal build process.
1. https://lore.kernel.org/git/cover-00.25-00000000000-20220221T143936Z-avarab@xxxxxxxxx
2. https://lore.kernel.org/git/6b83bb83-32b9-20c9-fa02-c1c3170351c3@xxxxxxxxxx/
3. https://lore.kernel.org/git/220222.86y2236ndp.gmgdl@xxxxxxxxxxxxxxxxxxx/
Ævar Arnfjörð Bjarmason (25):
CI: run "set -ex" early in ci/lib.sh
CI: make "$jobname" explicit, remove fallback
CI: remove more dead Travis CI support
CI: remove dead "tree skipping" code
CI: remove unused Azure ci/* code
CI: don't have "git grep" invoke a pager in tree content check
CI: have "static-analysis" run a "make ci-static-analysis" target
CI: have "static-analysis" run "check-builtins", not "documentation"
CI: move p4 and git-lfs variables to ci/install-dependencies.sh
CI: consistently use "export" in ci/lib.sh
CI: export variables via a wrapper
CI: remove "run-build-and-tests.sh", run "make [test]" directly
CI: check ignored unignored build artifacts in "win[+VS] build" too
CI: invoke "make artifacts-tar" directly in windows-build
CI: split up and reduce "ci/test-documentation.sh"
CI: combine ci/install{,-docker}-dependencies.sh
CI: move "env" definitions into ci/lib.sh
ci/run-test-slice.sh: replace shelling out with "echo"
CI: pre-select test slice in Windows & VS tests
CI: only invoke ci/lib.sh as "steps" in main.yml
CI: narrow down variable definitions in --build and --test
CI: add more variables to MAKEFLAGS, except under vs-build
CI: set CC in MAKEFLAGS directly, don't add it to the environment
CI: set PYTHON_PATH setting for osx-{clang,gcc} into "$jobname" case
CI: don't use "set -x" in "ci/lib.sh" output
.github/workflows/main.yml | 100 +++++---
Makefile | 31 ++-
ci/check-directional-formatting.bash | 2 +-
ci/check-unignored-build-artifacts.sh | 20 ++
ci/install-dependencies.sh | 53 ++++-
ci/install-docker-dependencies.sh | 22 --
ci/lib-ci-type.sh | 10 +
ci/lib-tput.sh | 2 +
ci/lib.sh | 316 +++++++++++++-------------
ci/make-test-artifacts.sh | 12 -
ci/mount-fileshare.sh | 25 --
ci/print-test-failures.sh | 16 +-
ci/run-build-and-tests.sh | 54 -----
ci/run-docker-build.sh | 66 ------
ci/run-docker.sh | 47 ----
ci/run-static-analysis.sh | 32 ---
ci/run-test-slice.sh | 17 --
ci/select-test-slice.sh | 10 +
ci/test-documentation.sh | 37 +--
ci/util/extract-trash-dirs.sh | 50 ----
shared.mak | 1 +
21 files changed, 346 insertions(+), 577 deletions(-)
create mode 100755 ci/check-unignored-build-artifacts.sh
delete mode 100755 ci/install-docker-dependencies.sh
create mode 100644 ci/lib-ci-type.sh
create mode 100644 ci/lib-tput.sh
delete mode 100755 ci/make-test-artifacts.sh
delete mode 100755 ci/mount-fileshare.sh
delete mode 100755 ci/run-build-and-tests.sh
delete mode 100755 ci/run-docker-build.sh
delete mode 100755 ci/run-docker.sh
delete mode 100755 ci/run-static-analysis.sh
delete mode 100755 ci/run-test-slice.sh
create mode 100755 ci/select-test-slice.sh
delete mode 100755 ci/util/extract-trash-dirs.sh
Range-diff against v1:
1: 970849a227f = 1: 4addbd70213 CI: run "set -ex" early in ci/lib.sh
2: eda7fb18064 = 2: b23aa99fd37 CI: make "$jobname" explicit, remove fallback
3: 3ee32815cf3 = 3: eec15a95879 CI: remove more dead Travis CI support
4: c81c1b3f504 = 4: 73c894f1665 CI: remove dead "tree skipping" code
5: 4738a22a36d = 5: b5e6d538554 CI: remove unused Azure ci/* code
6: 59e4f41e86c = 6: a4b9febbdca CI: don't have "git grep" invoke a pager in tree content check
7: 836ef20fdcc ! 7: 5d46d5b34c9 CI: have "static-analysis" run a "make ci-static-analysis" target
@@ .github/workflows/main.yml: jobs:
if: needs.ci-config.outputs.enabled == 'yes'
## Makefile ##
-@@ Makefile: ifndef V
- QUIET_HDR = @echo ' ' HDR $(<:hcc=h);
- QUIET_RC = @echo ' ' RC $@;
- QUIET_SPATCH = @echo ' ' SPATCH $<;
-+ QUIET_CHECK = @echo ' ' CHECK $@;
- QUIET_SUBDIR0 = +@subdir=
- QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \
- $(MAKE) $(PRINT_DIR) -C $$subdir
@@ Makefile: coccicheck: $(addsuffix .patch,$(filter-out %.pending.cocci,$(wildcard contrib/c
# See contrib/coccinelle/README
coccicheck-pending: $(addsuffix .patch,$(wildcard contrib/coccinelle/*.pending.cocci))
@@ ci/run-static-analysis.sh (deleted)
-
-make hdr-check ||
-exit 1
+
+ ## shared.mak ##
+@@ shared.mak: ifndef V
+ QUIET_HDR = @echo ' ' HDR $(<:hcc=h);
+ QUIET_RC = @echo ' ' RC $@;
+ QUIET_SPATCH = @echo ' ' SPATCH $<;
++ QUIET_CHECK = @echo ' ' CHECK $@;
+
+ ## Used in "Documentation/Makefile"
+ QUIET_ASCIIDOC = @echo ' ' ASCIIDOC $@;
8: 95cd496868e = 8: 81e06f13d84 CI: have "static-analysis" run "check-builtins", not "documentation"
9: a1d0796259e = 9: 3be91c26d44 CI: move p4 and git-lfs variables to ci/install-dependencies.sh
10: b6a61a786c5 = 10: 9dc148341ba CI: consistently use "export" in ci/lib.sh
11: f2fcee5d6e4 = 11: e9c7ba492e8 CI: export variables via a wrapper
12: dfd823f2e7d = 12: 86d5a48d59a CI: remove "run-build-and-tests.sh", run "make [test]" directly
13: 46459fff296 = 13: 649ad1ae249 CI: check ignored unignored build artifacts in "win[+VS] build" too
14: aecd3ebaafe = 14: b1b5b083389 CI: invoke "make artifacts-tar" directly in windows-build
15: 4f1564af70f = 15: dfa91ac8938 CI: split up and reduce "ci/test-documentation.sh"
16: 868613a5b06 = 16: ba4ed216769 CI: combine ci/install{,-docker}-dependencies.sh
17: 5d854e8ff36 = 17: b5e89a33340 CI: move "env" definitions into ci/lib.sh
18: a6106525b7f = 18: 571f4d0f441 ci/run-test-slice.sh: replace shelling out with "echo"
19: e9c6c4dd293 = 19: 2edea06ee4d CI: pre-select test slice in Windows & VS tests
20: 40d86e8c1dc = 20: ef9daa6882f CI: only invoke ci/lib.sh as "steps" in main.yml
21: abf9c504740 = 21: 44e3ace5fbe CI: narrow down variable definitions in --build and --test
22: 9f4c2798a82 = 22: 5f56b922e08 CI: add more variables to MAKEFLAGS, except under vs-build
23: 8a8b7ecf16b ! 23: b45b7cec94e CI: stop over-setting the $CC variable
@@ Metadata
Author: Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx>
## Commit message ##
- CI: stop over-setting the $CC variable
+ CI: set CC in MAKEFLAGS directly, don't add it to the environment
- As detailed in 2c8921db2b8 (travis-ci: build with the right compiler,
- 2019-01-17) the reason we started using $CC in $MAKEFLAGS as opposed
- to setting it in the environment was due to Travis CI clobbering $CC
- in the environment.
+ Rather than pass a "$CC" and "$CC_PACKAGE" in the environment to be
+ picked up in ci/lib.sh let's instead have ci/lib.sh itself add it
+ directly to MAKEFLAGS.
- We don't need to set it unconditionally to accomplish that, but rather
- just have it set for those jobs that need them. E.g. the "win+VS
- build" job confusingly has CC=gcc set, even though it builds with
- MSVC.
+ Setting CC=gcc by default made for confusing trace output, and since a
+ preceding change to carry it and others over across "steps" in the
+ GitHub CI it's been even more misleading. E.g. the "win+VS build" job
+ confusingly has CC=gcc set, even though it builds with MSVC.
+
+ Let's instead reply on the Makefile default of CC=cc, and only
+ override it for those jobs where it's needed. This does mean that
+ we'll need to set it for the "pedantic" job, which previously relied
+ on the default CC=gcc in case "clang" become the default on that
+ platform.
This partially reverts my 707d2f2fe86 (CI: use "$runs_on_pool", not
"$jobname" to select packages & config, 2021-11-23), i.e. we're now
@@ ci/lib.sh: linux-TEST-vars)
setenv --test GIT_TEST_DEFAULT_HASH sha256
;;
pedantic)
++ CC=gcc
+ # Don't run the tests; we only care about whether Git can be
+ # built.
+ setenv --build DEVOPTS pedantic
@@ ci/lib.sh: linux-musl)
MAKEFLAGS="$MAKEFLAGS GIT_TEST_UTF8_LOCALE=C.UTF-8"
;;
24: d7b472b4a52 = 24: 06bf8d9f61b CI: set PYTHON_PATH setting for osx-{clang,gcc} into "$jobname" case
25: 08a9776c259 = 25: 6dc96ba8b82 CI: don't use "set -x" in "ci/lib.sh" output