Skip to content

galaxycache: fix a couple typos #323

galaxycache: fix a couple typos

galaxycache: fix a couple typos #323

Workflow file for this run

name: Go
on: [push, workflow_dispatch, pull_request_target]
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, ubuntu-latest]
goversion: ['1.24', '1.25']
steps:
- name: Set up Go ${{matrix.goversion}} on ${{matrix.os}}
uses: actions/setup-go@v3
with:
go-version: ${{matrix.goversion}}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: gofmt
if: ${{matrix.goversion == '1.25'}}
run: |
[[ -z $(gofmt -l $(find . -name '*.go') ) ]]
- name: Get dependencies
env:
GO111MODULE: on
run: go mod download
- name: Vet
env:
GO111MODULE: on
run: go vet -mod=readonly ./...
- name: Vet k8swatch
env:
GO111MODULE: on
run: cd k8swatch && go vet -mod=readonly ./...
- name: Test
env:
GO111MODULE: on
run: go test -mod=readonly -count 2 ./...
- name: Test k8swatch
env:
GO111MODULE: on
run: cd k8swatch && go test -mod=readonly -count 2 ./...
- name: Race Test
env:
GO111MODULE: on
run: go test -race -mod=readonly -count 2 ./...
- name: Race Test k8swatch
env:
GO111MODULE: on
run: cd k8swatch && go test -race -mod=readonly -count 2 ./...
# We ran the k8swatch tests with whatever galaxycache module version
# was set in that submodule's go.mod earlier. Run it with this version
# now. (using a go.work to create that linkage)
- name: Test k8swatch with go.work
env:
GO111MODULE: on
run: go work init . ./k8swatch ./compattest/peerv1.2 && cd k8swatch && go test -mod=readonly -count 2 ./...
# Run all consistenthash Fuzz tests for 30s with go 1.24
- name: Fuzz Consistent-Hash
if: ${{matrix.goversion == '1.25'}}
env:
GO111MODULE: on
run: go test -fuzz=. -fuzztime=30s ./consistenthash
# Run all the tests with the paranoid linked-list checks enabled
- name: Race Test Paranoid LinkedList
env:
GO111MODULE: on
run: |
go test --tags=paranoidgcll -race -mod=readonly -count 2 ./...
# Run the lru Fuzz tests for 30s with go 1.24 (in paranoid mode)
- name: Fuzz Consistent-Hash
if: ${{matrix.goversion == '1.25'}}
env:
GO111MODULE: on
run: go test --tags=paranoidgcll -fuzz=. -fuzztime=30s ./lru