ci(don't review): Run e2e zb daily tests for "Retry stalled control-client calls for zonal buckets" #15716
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '*' | |
permissions: | |
contents: read | |
jobs: | |
filter: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
outputs: | |
run_tests: ${{ steps.filter.outputs.run_tests }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/[email protected] | |
id: filter | |
with: | |
predicate-quantifier: 'every' | |
filters: | | |
run_tests: | |
- '!**/*.md' | |
- '!tools/**' | |
- '!perfmetrics/**' | |
- '!samples/**' | |
format-test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.24" | |
- name: CodeGen | |
run: go generate ./... | |
- name: Formatting diff | |
run: go fmt ./... && go mod tidy && git diff --exit-code --name-only | |
linux-tests: | |
needs: filter | |
strategy: | |
matrix: | |
go: [ 1.24.x ] | |
runs-on: ubuntu-latest | |
timeout-minutes: 25 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/[email protected] | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Install fuse | |
run: sudo apt-get update && sudo apt-get install -y fuse3 libfuse-dev | |
- name: Build | |
if: ${{ needs.filter.outputs.run_tests == 'true' }} | |
run: | | |
CGO_ENABLED=0 go build ./... | |
go install ./tools/build_gcsfuse | |
build_gcsfuse . /tmp ${GITHUB_SHA} | |
- name: Test all | |
if: ${{ needs.filter.outputs.run_tests == 'true' }} | |
run: CGO_ENABLED=0 go test -p 1 -count 1 -covermode=atomic -coverprofile=coverage.out -coverpkg=./... -v -skip `cat flaky_tests.lst | go run tools/scripts/skip_tests/main.go` `go list ./...` | |
- name: RaceDetector Test | |
if: ${{ needs.filter.outputs.run_tests == 'true' }} | |
run: go test -p 1 -count 1 -v -race -skip `cat flaky_tests.lst | go run tools/scripts/skip_tests/main.go` ./internal/cache/... ./internal/gcsx/... | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
timeout-minutes: 5 | |
with: | |
fail_ci_if_error: false | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: unittests | |
lint: | |
name: Lint | |
if: github.ref != 'refs/heads/master' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.24" | |
- name: checkout code | |
uses: actions/checkout@v4 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@032fa5c5e48499f06cf9d32c02149bfac1284239 | |
with: | |
args: -E=goimports,unused --timeout 2m0s | |
only-new-issues: true | |