Skip to content

ci: add GitLab CI definition

Patrick Steinhardt git 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest8 patches 1 replyIn review
  2. v58 patches 0 repliesSuperseded
  3. v48 patches 8 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v38 patches8 repliesSuperseded
v25 patches14 repliesSuperseded
v15 patches22 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8ci: reorder definitions for grouping functionsci/lib.sh+10 -100 replies
2/8ci: make grouping setup more genericci/lib.sh+22 -240 replies
3/8ci: group installation of Docker dependenciesci/install-docker-dependencies.sh+6 -00 replies
4/8ci: split out logic to set up failed test artifactsci/lib.sh+21 -170 replies
5/8ci: unify setup of some environment variablesci/lib.sh+17 -100 replies
6/8ci: squelch warnings when testing with unusable Git repoci/lib.sh+32 -00 replies
7/8ci: install test dependencies for linux-muslci/install-docker-dependencies.sh t/lib-httpd.sh+19 -20 replies
8/8ci: add support for GitLab CI.gitlab-ci.yml ci/install-docker-dependencies.sh ci/lib.sh +1 more+116 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 0/8] ci: add GitLab CI definition

Hi,

this is the 6th version of my patch series to introduce support for GitLab CI into the Git project.

There's only a single change compared to v5 based on Chris' feedback, namely to move around a return 1. The newly extracted helper function create_failed_test_artifacts() indeed wasn't the correct place to put this error code.

A test run of this pipeline can be found at [1].

Thanks!

Patrick

[1]: https://gitlab.com/gitlab-org/git/-/pipelines/1066250852

Patrick Steinhardt (8):
ci: reorder definitions for grouping functions
ci: make grouping setup more generic
ci: group installation of Docker dependencies
ci: split out logic to set up failed test artifacts
ci: unify setup of some environment variables
ci: squelch warnings when testing with unusable Git repo
ci: install test dependencies for linux-musl
ci: add support for GitLab CI

 .gitlab-ci.yml                    |  53 +++++++++
 ci/install-docker-dependencies.sh |  23 +++-
 ci/lib.sh                         | 190 ++++++++++++++++++++++--------
 ci/print-test-failures.sh         |   6 +
 t/lib-httpd.sh                    |  17 ++-
 5 files changed, 234 insertions(+), 55 deletions(-)
 create mode 100644 .gitlab-ci.yml

Range-diff against v5:

1:  0ba396f2a33 = 1:  a1413b76422 ci: reorder definitions for grouping functions
2:  821cfcd6125 = 2:  29039d7aa3a ci: make grouping setup more generic
3:  6e5bcf143c8 = 3:  414655ffb2d ci: group installation of Docker dependencies
4:  2182acf5bfc ! 4:  96d710faec8 ci: split out logic to set up failed test artifacts
    @@ ci/lib.sh: handle_failed_tests () {
     +		cp "t/test-results/$test_name.out" t/failed-test-artifacts/
     +		tar czf t/failed-test-artifacts/"$test_name".trash.tar.gz "$trash_dir"
     +	done
    -+	return 1
     +}
     +
      # GitHub Action doesn't set TERM, which is required by tput
    @@ ci/lib.sh: then
     -			cp "t/test-results/$test_name.out" t/failed-test-artifacts/
     -			tar czf t/failed-test-artifacts/"$test_name".trash.tar.gz "$trash_dir"
     -		done
    --		return 1
     +		create_failed_test_artifacts
    + 		return 1
      	}
      
    - 	cache_dir="$HOME/none"
5:  6078aea246d = 5:  486d4bbf8b0 ci: unify setup of some environment variables
6:  d69bde92f2f = 6:  534b14f0262 ci: squelch warnings when testing with unusable Git repo
7:  b911c005bae = 7:  a060613f039 ci: install test dependencies for linux-musl
8:  5784d03a6f1 ! 8:  c05ff28cc2c ci: add support for GitLab CI
    @@ ci/lib.sh: then
     +	DONT_SKIP_TAGS=t
     +	handle_failed_tests () {
     +		create_failed_test_artifacts
    ++		return 1
     +	}
     +
     +	cache_dir="$HOME/none"

base-commit: dadef801b365989099a9929e995589e455c51fed

Signature · 1 line
2.42.0