Git designed for AI agents.
ci: run the git, service and storage tests with reftable on pushes
Federico Elia40d3b25736a2
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 045d43d..6940c9a 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -89,6 +89,63 @@ jobs:export PATH="$RUNNER_TEMP/testpath:$PATH"make test-go TEST_PACKAGES="$(echo $pkgs)"+ # The Git, service and storage packages again with the reftable reference+ # backend (GITALY_TEST_REF_FORMAT=reftable, set by make test-with-reftable),+ # on pushes (main and ci/**) only. internal/graft is not repeated here: the+ # authoritative storage mode serves reftable repositories only and its tests+ # already create reftable repositories (the voter package runs with reftable+ # as its default), while the rest of graft does not depend on the reference+ # backend of the repositories it reads.+ test-reftable:+ name: test (reftable, ${{ matrix.group }})+ if: github.event_name == 'push'+ runs-on: ubuntu-latest+ timeout-minutes: 120+ strategy:+ fail-fast: false+ matrix:+ group: [git, gitaly-service, gitaly-storage]+ steps:+ - uses: actions/checkout@v4++ - uses: actions/setup-go@v5+ with:+ go-version-file: go.mod++ - name: Build dependencies+ run: |+ sudo apt-get update+ sudo apt-get install -y build-essential libcurl4-openssl-dev libexpat1-dev gettext libssl-dev zlib1g-dev libpcre2-dev+ # The bundled Git is built with Meson and Ninja; the packaged Meson can be too old.+ python3 -m venv "$RUNNER_TEMP/buildtools"+ "$RUNNER_TEMP/buildtools/bin/pip" install --quiet "meson>=1.12" ninja+ echo "$RUNNER_TEMP/buildtools/bin" >> "$GITHUB_PATH"++ - name: Cache the built dependencies (bundled Git)+ uses: actions/cache@v4+ with:+ path: _build/deps+ key: deps-${{ runner.os }}-${{ hashFiles('Makefile') }}++ - name: Build+ run: make build++ - name: Prepare tests+ run: make prepare-tests++ - name: Test+ run: |+ case "${{ matrix.group }}" in+ git) pkgs=$(go list ./internal/git/...) ;;+ gitaly-service) pkgs=$(go list ./internal/gitaly/service/...) ;;+ gitaly-storage) pkgs=$(go list ./internal/gitaly/storage/...) ;;+ esac+ # RewriteHistory runs git-filter-repo from PATH, as in production.+ mkdir -p "$RUNNER_TEMP/testpath"+ ln -s "$PWD/_build/bin/git-filter-repo" "$RUNNER_TEMP/testpath/git-filter-repo"+ export PATH="$RUNNER_TEMP/testpath:$PATH"+ make test-with-reftable TEST_PACKAGES="$(echo $pkgs)"+# Pull requests: the storage core, configuration, CLI and SDK, and the# storage end-to-end tests. The full suite runs once the change is on main.quick: