From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
To: git@vger.kernel.org
Cc: "Junio C Hamano" <gitster@pobox.com>,
"Johannes Schindelin" <johannes.schindelin@gmx.de>,
"SZEDER Gábor" <szeder.dev@gmail.com>,
"Victoria Dye" <vdye@github.com>,
"Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Subject: [PATCH v4 0/5] CI: Remove Travis CI, shorten names for GH tooltips, split jobs
Date: Tue, 23 Nov 2021 17:29:07 +0100 [thread overview]
Message-ID: <cover-v4-0.5-00000000000-20211123T134300Z-avarab@gmail.com> (raw)
In-Reply-To: <cover-v3-0.5-00000000000-20211120T115414Z-avarab@gmail.com>
A small update to the v3[1] of this series of CI UX improvements. A CI
run can be seen at:
https://github.com/avar/git/runs/4299892497
And the improvement to tooltips by shortening them at (click on the CI
status symbol next to the commit subject):
https://github.com/avar/git/tree/avar/ci-rm-travis-cleanup-ci-names-4
For comparison, the same for "master":
https://github.com/git/git/runs/4289544907
https://github.com/git/git/tree/master
Changes:
* In removing Travis support I omitted the removal of now-dead
linux-gcc-4.8 supporting code. Remove it too.
* Clarify with a comment where new test targets in
ci/run-build-and-tests.sh need to be added, to avoid a repeat of
running new tests in the compilation-only "pedantic" job.
1. https://lore.kernel.org/git/cover-v3-0.5-00000000000-20211120T115414Z-avarab@gmail.com/
Ævar Arnfjörð Bjarmason (5):
CI: remove Travis CI support
CI: use shorter names that fit in UX tooltips
CI: rename the "Linux32" job to lower-case "linux32"
CI: use "$runs_on_pool", not "$jobname" to select packages & config
CI: don't run "make test" twice in one job
.github/workflows/main.yml | 26 ++++++++++++--
.travis.yml | 60 -------------------------------
README.md | 2 +-
ci/install-dependencies.sh | 35 ++++++++----------
ci/install-docker-dependencies.sh | 2 +-
ci/lib.sh | 60 ++++++++-----------------------
ci/print-test-failures.sh | 10 ------
ci/run-build-and-tests.sh | 27 +++++++-------
ci/run-docker-build.sh | 11 +-----
ci/run-docker.sh | 4 +--
10 files changed, 72 insertions(+), 165 deletions(-)
delete mode 100644 .travis.yml
Range-diff against v3:
1: 96433bcc02f ! 1: 6a4f1961cd2 CI: remove Travis CI support
@@ Commit message
into more general code. See 0f0c51181df (travis-ci: install packages
in 'ci/install-dependencies.sh', 2018-11-01).
+ Remove the "linux-gcc-4.8" job added in fb9d7431cf4 (travis-ci: build
+ with GCC 4.8 as well, 2019-07-18), it only ran in Travis CI.
+
1. https://travis-ci.org/github/git/git/builds
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
@@ ci/install-dependencies.sh: UBUNTU_COMMON_PKGS="make libssl-dev libcurl4-openssl
sudo apt-get -q update
sudo apt-get -q -y install language-pack-is libsvn-perl apache2 \
$UBUNTU_COMMON_PKGS
+@@ ci/install-dependencies.sh: Documentation)
+ test -n "$ALREADY_HAVE_ASCIIDOCTOR" ||
+ sudo gem install --version 1.5.8 asciidoctor
+ ;;
+-linux-gcc-default|linux-gcc-4.8)
++linux-gcc-default)
+ sudo apt-get -q update
+ sudo apt-get -q -y install $UBUNTU_COMMON_PKGS
+ ;;
## ci/lib.sh ##
@@ ci/lib.sh: save_good_tree () {
@@ ci/print-test-failures.sh: do
- echo " curl https://api.travis-ci.org/v3/job/$TRAVIS_JOB_ID/log.txt |./ci/util/extract-trash-dirs.sh"
-fi
+ ## ci/run-build-and-tests.sh ##
+@@ ci/run-build-and-tests.sh: linux-clang)
+ export GIT_TEST_DEFAULT_HASH=sha256
+ make test
+ ;;
+-linux-gcc-4.8|pedantic)
++pedantic)
+ # Don't run the tests; we only care about whether Git can be
+- # built with GCC 4.8 or with pedantic
++ # built.
+ ;;
+ *)
+ make test
+
## ci/run-docker-build.sh ##
@@ ci/run-docker-build.sh: else
else
2: b09cd076aeb = 2: 5d53b79347f CI: use shorter names that fit in UX tooltips
3: fb1b0ecbadd = 3: 37b97fc6c3a CI: rename the "Linux32" job to lower-case "linux32"
4: 54913e775c1 = 4: 614a99f7b64 CI: use "$runs_on_pool", not "$jobname" to select packages & config
5: 877f27d847c ! 5: ee2f9254fc7 CI: don't run "make test" twice in one job
@@ Commit message
the variables, and then override it to just "all" for the compile-only
tests.
+ Add a comment to clarify that new "test" targets should adjust
+ $MAKE_TARGETS rather than being added after the "case/esac". This
+ should avoid future confusion where e.g. the compilation-only
+ "pedantic" target will unexpectedly start running tests. See [1] and
+ [2].
+
+ 1. https://lore.kernel.org/git/211122.86ee78yxts.gmgdl@evledraar.gmail.com/
+ 2. https://lore.kernel.org/git/211123.86ilwjujmd.gmgdl@evledraar.gmail.com/
+
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
## .github/workflows/main.yml ##
@@ ci/run-build-and-tests.sh: linux-gcc)
export GIT_TEST_DEFAULT_HASH=sha256
- make test
;;
--linux-gcc-4.8|pedantic)
-- # Don't run the tests; we only care about whether Git can be
-- # built with GCC 4.8 or with pedantic
-+pedantic)
-+ export DEVOPTS=pedantic
-+ export MAKE_TARGETS=all
- ;;
+ pedantic)
+ # Don't run the tests; we only care about whether Git can be
+ # built.
+- ;;
-*)
- make test
-+linux-gcc-4.8)
++ export DEVOPTS=pedantic
+ export MAKE_TARGETS=all
;;
esac
++# Any new "test" targets should not go after this "make", but should
++# adjust $MAKE_TARGETS. Otherwise compilation-only targets above will
++# start running tests.
+make $MAKE_TARGETS
-+
check_unignored_build_artifacts
save_good_tree
--
2.34.0.830.gb9cdc59c8af
next prev parent reply other threads:[~2021-11-23 16:29 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-19 13:56 [PATCH 0/2] CI: use shorter names for CI jobs, less truncation Ævar Arnfjörð Bjarmason
2021-11-19 13:56 ` [PATCH 1/2] CI: use shorter names that fit in UX tooltips Ævar Arnfjörð Bjarmason
2021-11-19 14:58 ` Johannes Schindelin
2021-11-19 20:39 ` Ævar Arnfjörð Bjarmason
2021-11-19 16:02 ` Victoria Dye
2021-11-19 20:33 ` Ævar Arnfjörð Bjarmason
2021-11-19 21:55 ` Victoria Dye
2021-11-20 2:51 ` Ævar Arnfjörð Bjarmason
2021-11-19 22:14 ` Junio C Hamano
2021-11-19 13:56 ` [PATCH 2/2] CI: rename the "Linux32" job to lower-case "linux32" Ævar Arnfjörð Bjarmason
2021-11-19 14:57 ` Jeff King
2021-11-19 15:03 ` [PATCH 0/2] CI: use shorter names for CI jobs, less truncation Jeff King
2021-11-19 19:57 ` Junio C Hamano
2021-11-19 20:48 ` Ævar Arnfjörð Bjarmason
2021-11-20 3:28 ` [PATCH v2 0/6] CI: Remove Travis CI, shorten names for GH tooltips, split jobs Ævar Arnfjörð Bjarmason
2021-11-20 3:28 ` [PATCH v2 1/6] CI: remove Travis CI support Ævar Arnfjörð Bjarmason
2021-11-20 3:28 ` [PATCH v2 2/6] CI: use shorter names that fit in UX tooltips Ævar Arnfjörð Bjarmason
2021-11-20 7:01 ` Victoria Dye
2021-11-20 3:28 ` [PATCH v2 3/6] CI: rename the "Linux32" job to lower-case "linux32" Ævar Arnfjörð Bjarmason
2021-11-20 3:28 ` [PATCH v2 4/6] CI: use "$runs_on_pool", not "$jobname" to select packages & config Ævar Arnfjörð Bjarmason
2021-11-20 3:28 ` [PATCH v2 5/6] CI: don't run "make test" twice in one job Ævar Arnfjörð Bjarmason
2021-11-20 3:28 ` [PATCH v2 6/6] CI: run "documentation" via run-build-and-test.sh Ævar Arnfjörð Bjarmason
2021-11-20 8:05 ` [PATCH v2 0/6] CI: Remove Travis CI, shorten names for GH tooltips, split jobs Johannes Schindelin
2021-11-20 12:14 ` Ævar Arnfjörð Bjarmason
2021-11-20 12:10 ` [PATCH v3 0/5] " Ævar Arnfjörð Bjarmason
2021-11-20 12:10 ` [PATCH v3 1/5] CI: remove Travis CI support Ævar Arnfjörð Bjarmason
2021-11-20 12:10 ` [PATCH v3 2/5] CI: use shorter names that fit in UX tooltips Ævar Arnfjörð Bjarmason
2021-11-20 19:06 ` Victoria Dye
2021-11-20 12:10 ` [PATCH v3 3/5] CI: rename the "Linux32" job to lower-case "linux32" Ævar Arnfjörð Bjarmason
2021-11-20 12:10 ` [PATCH v3 4/5] CI: use "$runs_on_pool", not "$jobname" to select packages & config Ævar Arnfjörð Bjarmason
2021-11-21 7:21 ` Junio C Hamano
2021-11-20 12:10 ` [PATCH v3 5/5] CI: don't run "make test" twice in one job Ævar Arnfjörð Bjarmason
2021-11-23 16:29 ` Ævar Arnfjörð Bjarmason [this message]
2021-11-23 16:29 ` [PATCH v4 1/5] CI: remove Travis CI support Ævar Arnfjörð Bjarmason
2021-11-23 16:29 ` [PATCH v4 2/5] CI: use shorter names that fit in UX tooltips Ævar Arnfjörð Bjarmason
2021-11-23 16:29 ` [PATCH v4 3/5] CI: rename the "Linux32" job to lower-case "linux32" Ævar Arnfjörð Bjarmason
2021-11-23 16:29 ` [PATCH v4 4/5] CI: use "$runs_on_pool", not "$jobname" to select packages & config Ævar Arnfjörð Bjarmason
2021-11-23 16:29 ` [PATCH v4 5/5] CI: don't run "make test" twice in one job Ævar Arnfjörð Bjarmason
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover-v4-0.5-00000000000-20211123T134300Z-avarab@gmail.com \
--to=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=johannes.schindelin@gmx.de \
--cc=szeder.dev@gmail.com \
--cc=vdye@github.com \
/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 public inbox
https://80x24.org/mirrors/git.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).