Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into csharp/integ_yuryf_…
Browse files Browse the repository at this point in the history
…fix_eol

Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand committed Mar 6, 2024
2 parents 645457c + 94e1186 commit 527b4c6
Show file tree
Hide file tree
Showing 116 changed files with 7,552 additions and 1,175 deletions.
47 changes: 35 additions & 12 deletions .github/workflows/csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,68 +5,91 @@ on:
branches: ["main"]
paths:
- csharp/**
- glide-core/**
- glide-core/src/**
- submodules/**
- .github/workflows/csharp.yml
- .github/workflows/install-shared-dependencies/action.yml
- .github/workflows/install-redis/action.yml
- .github/workflows/test-benchmark/action.yml
- .github/workflows/lint-rust/action.yml
pull_request:
paths:
- csharp/**
- glide-core/src/**
- submodules/**
- .github/workflows/csharp.yml
- .github/workflows/install-shared-dependencies/action.yml
- .github/workflows/install-redis/action.yml
- .github/workflows/test-benchmark/action.yml
- .github/workflows/lint-rust/action.yml

permissions:
contents: read

jobs:
run-tests:
timeout-minutes: 15
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
redis:
- 6.2.14
- 7.2.3
dotnet:
- 6.0
- 8.0
- '6.0'
- '8.0'
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install redis
# TODO: make this step macos compatible: https://github.com/aws/glide-for-redis/issues/781
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: ./.github/workflows/install-redis
with:
redis-version: ${{ matrix.redis }}

- name: Install protoc (protobuf)
uses: arduino/[email protected]
- name: Install shared software dependencies
uses: ./.github/workflows/install-shared-dependencies
with:
version: "25.1"
os: ${{ matrix.os }}
target: ${{ matrix.os == 'ubuntu-latest' && 'x86_64-unknown-linux-gnu' || 'x86_64-apple-darwin' }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up dotnet ${{ matrix.dotnet }}
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet }}

- name: Start redis server
run: redis-server &

- name: Format
working-directory: ./csharp
run: dotnet format --verify-no-changes --verbosity diagnostic

- name: Test dotnet ${{ matrix.dotnet }}
working-directory: ./csharp
run: dotnet test --framework net${{ matrix.dotnet }} /warnaserror
run: dotnet test --framework net${{ matrix.dotnet }} "-l:html;LogFileName=TestReport.html" --results-directory . -warnaserror

- uses: ./.github/workflows/test-benchmark
with:
language-flag: -csharp

- name: Upload test reports
if: always()
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: test-reports-dotnet-${{ matrix.dotnet }}-redis-${{ matrix.redis }}-${{ matrix.os }}
path: |
csharp/TestReport.html
benchmarks/results/*
utils/clusters/**
lint-rust:
timeout-minutes: 10
runs-on: ubuntu-latest
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:
push:
branches: [ "main" ]
paths:
- glide-core/**
- glide-core/src/**
- submodules/**
- go/**
- .github/workflows/go.yml
pull_request:
paths:
- glide-core/**
- glide-core/src/**
- submodules/**
- go/**
- .github/workflows/go.yml
Expand All @@ -24,8 +24,8 @@ jobs:
fail-fast: false
matrix:
go:
- '1.18'
- '1.21'
- '1.18.10'
- '1.22.0'
redis:
- 6.2.14
- 7.2.3
Expand Down Expand Up @@ -60,21 +60,21 @@ jobs:
with:
redis-version: ${{ matrix.redis }}

- name: Install client dependencies
- name: Install tools for Go ${{ matrix.go }}
working-directory: ./go
run: make install-tools
run: make install-tools-go${{ matrix.go }}

- name: Build client
working-directory: ./go
run: make build

- name: Run linters
working-directory: ./go
run: make lint
run: make lint-ci

- name: Run unit tests
- name: Run tests
working-directory: ./go
run: make unit-test-report
run: make test-and-report

- name: Upload test reports
if: always()
Expand All @@ -83,7 +83,7 @@ jobs:
with:
name: test-reports-go-${{ matrix.go }}-redis-${{ matrix.redis }}-${{ matrix.os }}
path: |
go/reports/unit-test-report.html
go/reports/test-report.html
build-amazonlinux-latest:
if: github.repository_owner == 'aws'
Expand All @@ -93,7 +93,7 @@ jobs:
matrix:
go:
- 1.18.10
- 1.21.6
- 1.22.0
runs-on: ubuntu-latest
container: amazonlinux:latest
timeout-minutes: 15
Expand Down Expand Up @@ -135,29 +135,29 @@ jobs:
echo "/usr/local/go/bin" >> $GITHUB_PATH
echo "$HOME/go/bin" >> $GITHUB_PATH
- name: Install client dependencies
- name: Install tools for Go ${{ matrix.go }}
working-directory: ./go
run: make install-tools
run: make install-tools-go${{ matrix.go }}

- name: Build client
working-directory: ./go
run: make build

- name: Run linters
working-directory: ./go
run: make lint
run: make lint-ci

- name: Run unit tests
- name: Run tests
working-directory: ./go
run: make unit-test-report
run: make test-and-report

- name: Upload test reports
if: always()
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: test-reports-go-${{ matrix.go }}-amazon-linux-latest
path: go/reports/unit-test-report.html
path: go/reports/test-report.html

lint-rust:
timeout-minutes: 15
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/install-shared-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ runs:
shell: bash
if: "${{ inputs.os == 'macos-latest' }}"
run: |
brew install git gcc pkgconfig openssl redis
brew install git gcc pkgconfig openssl redis coreutils
- name: Install software dependencies for Ubuntu
shell: bash
Expand All @@ -52,7 +52,7 @@ runs:
targets: ${{ inputs.target }}

- name: Install protoc (protobuf)
uses: arduino/setup-protoc@v2.1.0
uses: arduino/setup-protoc@v3
with:
version: "25.1"
repo-token: ${{ inputs.github-token }}
56 changes: 0 additions & 56 deletions .github/workflows/java-benchmark.yml

This file was deleted.

25 changes: 19 additions & 6 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,24 @@ on:
push:
branches: ["main"]
paths:
- glide-core/**
- glide-core/src/**
- submodules/**
- "java/**"
- ".github/workflows/java.yml"
- java/**
- .github/workflows/java.yml
- .github/workflows/install-shared-dependencies/action.yml
- .github/workflows/install-redis/action.yml
- .github/workflows/test-benchmark/action.yml
- .github/workflows/lint-rust/action.yml
pull_request:
paths:
- glide-core/**
- glide-core/src/**
- submodules/**
- "java/**"
- ".github/workflows/java.yml"
- java/**
- .github/workflows/java.yml
- .github/workflows/install-shared-dependencies/action.yml
- .github/workflows/install-redis/action.yml
- .github/workflows/test-benchmark/action.yml
- .github/workflows/lint-rust/action.yml

jobs:
build-and-test-java-client:
Expand Down Expand Up @@ -67,6 +75,10 @@ jobs:
working-directory: java
run: ./gradlew spotlessDiagnose | grep 'All formatters are well behaved for all files'

- uses: ./.github/workflows/test-benchmark
with:
language-flag: -java

- name: Upload test reports
if: always()
continue-on-error: true
Expand All @@ -77,6 +89,7 @@ jobs:
java/client/build/reports/**
java/integTest/build/reports/**
utils/clusters/**
benchmarks/results/**
build-amazonlinux-latest:
if: github.repository_owner == 'aws'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ runs:
- uses: Swatinem/rust-cache@v2

- name: Install protoc (protobuf)
uses: arduino/setup-protoc@v2.1.0
uses: arduino/setup-protoc@v3
with:
version: "25.1"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: ["main"]
paths:
- glide-core/**
- glide-core/src/**
- submodules/**
- node/**
- utils/cluster_manager.py
Expand Down
Loading

0 comments on commit 527b4c6

Please sign in to comment.