forked from valkey-io/valkey
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'unstable' into cache-cluster-slots
Signed-off-by: Roshan Khatri <[email protected]>
- Loading branch information
Showing
545 changed files
with
21,605 additions
and
17,248 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# See https://github.com/crate-ci/typos/blob/master/docs/reference.md to configure typos | ||
|
||
[files] | ||
extend-exclude = [ | ||
"deps/", | ||
# crc16_slottable is primarily pre-generated random strings. | ||
"src/crc16_slottable.h", | ||
] | ||
|
||
[default.extend-words] | ||
advices = "advices" | ||
exat = "exat" | ||
optin = "optin" | ||
ro = "ro" | ||
smove = "smove" | ||
|
||
[type.c] | ||
extend-ignore-re = [ | ||
"BA3E2571", # sha1.c | ||
"D4C4DAA4", # sha1.c | ||
"Georg Nees", | ||
"\\[l\\]ist", # eval.c | ||
] | ||
|
||
[type.tcl] | ||
extend-ignore-re = [ | ||
"DUMPed", | ||
] | ||
|
||
[type.sv.extend-identifiers] | ||
# sv = .h | ||
module_gil_acquring = "module_gil_acquring" | ||
|
||
[type.c.extend-identifiers] | ||
ang = "ang" | ||
clen = "clen" | ||
fle = "fle" | ||
module_gil_acquring = "module_gil_acquring" | ||
nd = "nd" | ||
ot = "ot" | ||
|
||
[type.tcl.extend-identifiers] | ||
fo = "fo" | ||
oll = "oll" | ||
stressers = "stressers" | ||
|
||
[type.sv.extend-words] | ||
# sv = .h | ||
fo = "fo" | ||
seeked = "seeked" | ||
|
||
[type.c.extend-words] | ||
arange = "arange" | ||
fo = "fo" | ||
frst = "frst" | ||
limite = "limite" | ||
pn = "pn" | ||
seeked = "seeked" | ||
tre = "tre" | ||
ws = "ws" | ||
|
||
[type.systemd.extend-words] | ||
# systemd = .conf | ||
ake = "ake" | ||
|
||
[type.tcl.extend-words] | ||
fo = "fo" | ||
lst = "lst" | ||
tre = "tre" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Questions? | ||
url: https://github.com/valkey-io/valkey/discussions | ||
about: Ask and answer questions on GitHub Discussions. | ||
- name: Chat with us on Discord? | ||
url: https://discord.gg/zbcPa5umUB | ||
about: We are on Discord! | ||
- name: Chat with us on Matrix? | ||
url: https://matrix.to/#/#valkey:matrix.org | ||
about: We are on Matrix too! | ||
- name: Documentation issue? | ||
url: https://github.com/valkey-io/valkey-doc/issues | ||
about: Report it on the valkey-doc repo. |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Crash report | ||
description: Submit a crash report | ||
title: '[CRASH] <short description>' | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to post your crash report! | ||
Please notice: | ||
- If a module was involved, please open an issue in the module's repo instead! | ||
- If you're using docker on Apple M1, please make sure the image you're using was compiled for ARM! | ||
- type: textarea | ||
id: crash-report | ||
attributes: | ||
label: Crash report | ||
description: Paste the complete crash log. Please include a few lines from the log preceding the crash report to provide some context. | ||
render: shell | ||
validations: | ||
required: true | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Please provide the following additional information below: | ||
- OS distribution and version | ||
- Steps to reproduce (if any) | ||
- type: textarea | ||
id: additional-information | ||
attributes: | ||
label: Additional information | ||
description: OS version, steps to reproduce and other useful info. | ||
render: shell | ||
validations: | ||
required: false |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Generate target matrix. | ||
description: Matrix creation for building Valkey for different architectures and platforms. | ||
|
||
inputs: | ||
ref: | ||
description: The commit, tag or branch of Valkey to checkout to determine what version to use. | ||
required: true | ||
outputs: | ||
x86_64-build-matrix: | ||
description: The x86_64 build matrix. | ||
value: ${{ steps.set-matrix.outputs.x86matrix }} | ||
arm64-build-matrix: | ||
description: The arm64 build matrix. | ||
value: ${{ steps.set-matrix.outputs.armmatrix }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout code for version check | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
path: version-check | ||
|
||
- name: Get targets | ||
run: | | ||
x86_arch=$(jq -c '[.linux_targets[] | select(.arch=="x86_64")]' utils/releasetools/build-config.json) | ||
x86_matrix=$(echo "{ \"distro\" : $x86_arch }" | jq -c .) | ||
echo "X86_MATRIX=$x86_matrix" >> $GITHUB_ENV | ||
arm_arch=$(jq -c '[.linux_targets[] | select(.arch=="arm64")]' utils/releasetools/build-config.json) | ||
arm_matrix=$(echo "{ \"distro\" : $arm_arch }" | jq -c .) | ||
echo "ARM_MATRIX=$arm_matrix" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- id: set-matrix | ||
run: | | ||
echo $X86_MATRIX | ||
echo $X86_MATRIX| jq . | ||
echo "x86matrix=$X86_MATRIX" >> $GITHUB_OUTPUT | ||
echo $ARM_MATRIX | ||
echo $ARM_MATRIX| jq . | ||
echo "armmatrix=$ARM_MATRIX" >> $GITHUB_OUTPUT | ||
shell: bash |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Build Release Packages | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: Version of Valkey to build | ||
required: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
# This job provides the version metadata from the tag for the other jobs to use. | ||
release-build-get-meta: | ||
name: Get metadata to build | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.get_version.outputs.VERSION }} | ||
steps: | ||
|
||
- run: | | ||
echo "Version: ${{ inputs.version || github.ref_name }}" | ||
shell: bash | ||
# This step is to consolidate the three different triggers into a single "version" | ||
# 1. If manual dispatch - use the version provided. | ||
# 3. If tag trigger, use that tag. | ||
- name: Get the version | ||
id: get_version | ||
run: | | ||
VERSION="${INPUT_VERSION}" | ||
if [ -z "${VERSION}" ]; then | ||
exit 1 | ||
fi | ||
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT | ||
shell: bash | ||
env: | ||
# Use the dispatch variable in preference, if empty use the context ref_name which should | ||
# only ever be a tag | ||
INPUT_VERSION: ${{ inputs.version || github.ref_name }} | ||
|
||
generate-build-matrix: | ||
name: Generating build matrix | ||
runs-on: ubuntu-latest | ||
outputs: | ||
x86_64-build-matrix: ${{ steps.set-matrix.outputs.x86_64-build-matrix }} | ||
arm64-build-matrix: ${{ steps.set-matrix.outputs.arm64-build-matrix }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
# Set up the list of target to build so we can pass the JSON to the reusable job | ||
- uses: ./.github/actions/generate-package-build-matrix | ||
id: set-matrix | ||
with: | ||
ref: ${{ inputs.version || github.ref_name }} | ||
|
||
release-build-linux-x86-packages: | ||
needs: | ||
- release-build-get-meta | ||
- generate-build-matrix | ||
uses: ./.github/workflows/call-build-linux-x86-packages.yml | ||
with: | ||
version: ${{ needs.release-build-get-meta.outputs.version }} | ||
ref: ${{ inputs.version || github.ref_name }} | ||
build_matrix: ${{ needs.generate-build-matrix.outputs.x86_64-build-matrix }} | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
bucket: ${{ secrets.AWS_S3_BUCKET }} | ||
access_key_id: ${{ secrets.AWS_S3_ACCESS_KEY_ID }} | ||
secret_access_key: ${{ secrets.AWS_S3_ACCESS_KEY }} | ||
|
||
release-build-linux-arm-packages: | ||
needs: | ||
- release-build-get-meta | ||
- generate-build-matrix | ||
uses: ./.github/workflows/call-build-linux-arm-packages.yml | ||
with: | ||
version: ${{ needs.release-build-get-meta.outputs.version }} | ||
ref: ${{ inputs.version || github.ref_name }} | ||
build_matrix: ${{ needs.generate-build-matrix.outputs.arm64-build-matrix }} | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
bucket: ${{ secrets.AWS_S3_BUCKET }} | ||
access_key_id: ${{ secrets.AWS_S3_ACCESS_KEY_ID }} | ||
secret_access_key: ${{ secrets.AWS_S3_ACCESS_KEY }} |
Oops, something went wrong.