Skip to content

Commit

Permalink
Merge branch 'release-1.2'
Browse files Browse the repository at this point in the history
Signed-off-by: ikolomi <[email protected]>
  • Loading branch information
ikolomi committed Dec 1, 2024
2 parents 8ac276c + 031dfe5 commit 5b9fe12
Show file tree
Hide file tree
Showing 255 changed files with 71,012 additions and 1,695 deletions.
2 changes: 1 addition & 1 deletion .github/DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ We use dynamic matrices for our CI/CD workflows, which are created using the `cr
4. It generates three matrices:
- Engine matrix: Defines the types and versions of the engine to test against, for example Valkey 7.2.5.
- Host matrix: Defines the host platforms to run the tests on, for example Ubuntu on ARM64.
- Language-version matrix: Defines the supported versions of languages, for example python 3.8.
- Language-version matrix: Defines the supported versions of languages, for example python 3.9.

#### Outputs

Expand Down
16 changes: 3 additions & 13 deletions .github/json_matrices/build-matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,12 @@
"ARCH": "arm64",
"TARGET": "aarch64-unknown-linux-gnu",
"PACKAGE_MANAGERS": ["pypi", "npm", "maven"],
"CONTAINER": "2_28",
"languages": ["python", "node", "java", "go", "dotnet"]
},
{
"OS": "macos",
"NAMED_OS": "darwin",
"RUNNER": "macos-12",
"ARCH": "x64",
"TARGET": "x86_64-apple-darwin",
"PACKAGE_MANAGERS": ["pypi", "npm", "maven"],
"languages": ["python", "node", "java", "go", "dotnet"]
},
{
"OS": "macos",
"NAMED_OS": "darwin",
"RUNNER": "macos-latest",
"RUNNER": "macos-14",
"ARCH": "arm64",
"TARGET": "aarch64-apple-darwin",
"PACKAGE_MANAGERS": ["pypi", "npm", "maven"],
Expand All @@ -43,7 +33,7 @@
"ARCH": "arm64",
"TARGET": "aarch64-unknown-linux-musl",
"RUNNER": ["self-hosted", "Linux", "ARM64"],
"IMAGE": "node:lts-alpine3.19",
"IMAGE": "node:lts-alpine",
"CONTAINER_OPTIONS": "--user root --privileged --rm",
"PACKAGE_MANAGERS": ["npm"],
"languages": ["node"]
Expand All @@ -54,7 +44,7 @@
"ARCH": "x64",
"TARGET": "x86_64-unknown-linux-musl",
"RUNNER": "ubuntu-latest",
"IMAGE": "node:lts-alpine3.19",
"IMAGE": "node:lts-alpine",
"CONTAINER_OPTIONS": "--user root --privileged",
"PACKAGE_MANAGERS": ["npm"],
"languages": ["node"]
Expand Down
8 changes: 4 additions & 4 deletions .github/json_matrices/supported-languages-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
},
{
"language": "python",
"versions": ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"],
"always-run-versions": ["3.8", "3.13"]
"versions": ["3.9", "3.10", "3.11", "3.12", "3.13"],
"always-run-versions": ["3.9", "3.13"]
},
{
"language": "node",
"versions": ["16.x", "17.x", "18.x", "19.x", "20.x"],
"always-run-versions": ["16.x", "20.x"]
"versions": ["16.x", "17.x", "18.x", "19.x", "20.x", "21.x", "22.x"],
"always-run-versions": ["16.x", "22.x"]
},
{
"language": "dotnet",
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ on:
- "v.?[0-9]+.[0-9]+"
- "v?[0-9]+.[0-9]+.[0-9]+"
- "v?[0-9]+.[0-9]+"
- release-*
pull_request:
branches:
- "main"
- "v.?[0-9]+.[0-9]+.[0-9]+"
- "v.?[0-9]+.[0-9]+"
- "v?[0-9]+.[0-9]+.[0-9]+"
- "v?[0-9]+.[0-9]+"
- release-*
schedule:
- cron: "37 18 * * 6"

Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
paths:
- csharp/**
- glide-core/src/**
- glide-core/redis-rs/redis/src/**
- utils/cluster_manager.py
- submodules/**
- .github/workflows/csharp.yml
- .github/workflows/install-shared-dependencies/action.yml
- .github/workflows/test-benchmark/action.yml
Expand All @@ -22,7 +22,7 @@ on:
paths:
- csharp/**
- glide-core/src/**
- submodules/**
- glide-core/redis-rs/redis/src/**
- utils/cluster_manager.py
- .github/workflows/csharp.yml
- .github/workflows/install-shared-dependencies/action.yml
Expand Down Expand Up @@ -87,8 +87,6 @@ jobs:

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

- name: Set up dotnet ${{ matrix.dotnet }}
uses: actions/setup-dotnet@v4
Expand Down Expand Up @@ -198,8 +196,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: lint rust
uses: ./.github/workflows/lint-rust
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/full-matrix-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ jobs:
name: Run CI for GLIDE core lib
secrets: inherit

# run-full-tests-for-redis-rs:
# if: (github.repository_owner == 'valkey-io' && github.event_name == 'schedule') || (github.event_name == 'workflow_dispatch' && inputs.redis-rs == true)
# uses: ./.github/workflows/redis-rs.yml
# name: Run CI for Redis-RS client
# secrets: inherit
run-full-tests-for-redis-rs:
if: (github.repository_owner == 'valkey-io' && github.event_name == 'schedule') || (github.event_name == 'workflow_dispatch' && inputs.redis-rs == true)
uses: ./.github/workflows/redis-rs.yml
name: Run CI for Redis-RS client
secrets: inherit

run-full-tests-for-java:
if: (github.repository_owner == 'valkey-io' && github.event_name == 'schedule') || (github.event_name == 'workflow_dispatch' && inputs.java == true)
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- v*
paths:
- glide-core/src/**
- submodules/**
- glide-core/redis-rs/redis/src/**
- utils/cluster_manager.py
- go/**
- .github/workflows/go.yml
Expand All @@ -21,7 +21,7 @@ on:
pull_request:
paths:
- glide-core/src/**
- submodules/**
- glide-core/redis-rs/redis/src/**
- utils/cluster_manager.py
- go/**
- .github/workflows/go.yml
Expand Down Expand Up @@ -84,8 +84,6 @@ jobs:

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

- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
Expand Down Expand Up @@ -136,8 +134,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: ./.github/workflows/lint-rust
with:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/install-shared-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ inputs:
description: "Engine version to install"
required: false
type: string

github-token:
description: "GITHUB_TOKEN, GitHub App installation access token"
required: true
Expand All @@ -39,7 +38,7 @@ runs:
if: "${{ inputs.os == 'macos' }}"
run: |
brew update
brew install git openssl coreutils
brew install openssl coreutils
- name: Install software dependencies for Ubuntu GNU
shell: bash
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/java-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ jobs:
echo "No cleaning needed"
fi
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up JDK
uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -230,8 +227,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up JDK
uses: actions/setup-java@v4
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- v*
paths:
- glide-core/src/**
- submodules/**
- glide-core/redis-rs/redis/src/**
- java/**
- utils/cluster_manager.py
- .github/workflows/java.yml
Expand All @@ -22,7 +22,7 @@ on:
pull_request:
paths:
- glide-core/src/**
- submodules/**
- glide-core/redis-rs/redis/src/**
- java/**
- utils/cluster_manager.py
- .github/workflows/java.yml
Expand Down Expand Up @@ -83,8 +83,6 @@ jobs:

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

- uses: gradle/actions/wrapper-validation@v3

Expand Down Expand Up @@ -117,6 +115,7 @@ jobs:
run: ./gradlew spotlessDiagnose | grep 'All formatters are well behaved for all files'

- uses: ./.github/workflows/test-benchmark
if: ${{ matrix.engine.version == '8.0' && matrix.host.RUNNER == 'ubuntu-latest' && matrix.java == '17' }}
with:
language-flag: -java

Expand Down Expand Up @@ -208,8 +207,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: ./.github/workflows/lint-rust
with:
Expand All @@ -218,18 +215,16 @@ jobs:
name: lint java rust

test-modules:
if: github.event.pull_request.head.repo.owner.login == 'valkey-io'
if: (github.repository_owner == 'valkey-io' && github.event_name == 'workflow_dispatch') || github.event.pull_request.head.repo.owner.login == 'valkey-io'
environment: AWS_ACTIONS
name: Running Module Tests
name: Modules Tests
runs-on: [self-hosted, linux, ARM64]
timeout-minutes: 15
steps:
- name: Setup self-hosted runner access
run: sudo chown -R $USER:$USER /home/ubuntu/actions-runner/_work/valkey-glide

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

- name: Set up JDK
uses: actions/setup-java@v4
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/lint-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ runs:
using: "composite"
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Rust toolchain and protoc
uses: ./.github/workflows/install-rust-and-protoc
Expand All @@ -39,7 +37,7 @@ runs:

- run: |
cargo update
cargo install --locked --version 0.15.1 cargo-deny
cargo install --locked cargo-deny
cargo deny check --config ${GITHUB_WORKSPACE}/deny.toml
working-directory: ${{ inputs.cargo-toml-folder }}
shell: bash
Expand Down
Loading

0 comments on commit 5b9fe12

Please sign in to comment.