Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
4fdf120
Refactor Git checkout process in workflows to use git clone for speci…
eranhd Dec 5, 2024
5fc7b37
Refactor Redis checkout process in workflows to use git clone for imp…
eranhd Dec 5, 2024
1c07d00
Update artifact upload conditions and upgrade to actions/upload-artif…
eranhd Dec 5, 2024
8f5bbe5
Upgrade actions/checkout and actions/upload-artifact to v4 in workflo…
eranhd Dec 5, 2024
cc44c70
Rename git checkout step to 'Get Redis' for clarity in workflows
eranhd Dec 5, 2024
71e5650
Update git clone command in workflows to specify branch for improved …
eranhd Dec 5, 2024
a396817
Update git clone commands in workflows to use commit SHA for improved…
eranhd Dec 8, 2024
2228b3a
fix
eranhd Dec 8, 2024
cb261d0
Add workflow inputs and dynamic matrix generation for Linux builds
eranhd Dec 8, 2024
3a74f45
.
eranhd Dec 8, 2024
f3de3fa
.
eranhd Dec 8, 2024
ceb9200
.
eranhd Dec 8, 2024
af33d8d
.
eranhd Dec 8, 2024
26a6d12
.
eranhd Dec 8, 2024
2e8f9a2
.
eranhd Dec 8, 2024
06feb19
.
eranhd Dec 8, 2024
f44b857
.
eranhd Dec 8, 2024
84c3c70
fix
eranhd Dec 8, 2024
f3b274f
refactor: update git clone and checkout process in CI workflows
eranhd Dec 8, 2024
b3f73bc
fix
eranhd Dec 8, 2024
a898648
fix: add safe.directory configuration for git in CI workflows
eranhd Dec 8, 2024
ac76dd4
fix
eranhd Dec 8, 2024
3ed5ebc
fix: update job name in build-linux-platforms workflow
eranhd Dec 8, 2024
4d75f9b
fix: enhance AWS credentials configuration in S3 upload action
eranhd Dec 8, 2024
20c4a97
fix: enable branch and tag triggers for build-linux-platforms workflow
eranhd Dec 8, 2024
f5c7043
fix: update AWS credentials step and improve artifact upload process …
eranhd Dec 8, 2024
ebb40da
fix
eranhd Dec 8, 2024
5fb2597
.
eranhd Dec 8, 2024
0b04215
fix
eranhd Dec 8, 2024
a06e8d4
fix
eranhd Dec 8, 2024
9d9774f
fix
eranhd Dec 8, 2024
3215ddc
refactor: update AWS CLI configuration and checkout steps in workflows
eranhd Dec 8, 2024
78b7b4f
refactor: update workflows to use dynamic Redis ref input and enable …
eranhd Dec 8, 2024
15d0c57
refactor: remove push triggers from workflows and streamline event ha…
eranhd Dec 8, 2024
986767f
refactor: rename CI workflows for clarity and consistency
eranhd Dec 8, 2024
a5b71f3
refactor: remove obsolete trigger-build workflow file
eranhd Dec 8, 2024
a910f1a
fix
eranhd Dec 18, 2024
5efa03d
.
eranhd Dec 18, 2024
7c1add4
.
eranhd Dec 18, 2024
aafe812
.
eranhd Dec 18, 2024
fa5e801
.
eranhd Dec 18, 2024
4d986d9
.
eranhd Dec 18, 2024
808351a
.
eranhd Dec 18, 2024
b913e1f
.
eranhd Dec 18, 2024
460dd3f
.
eranhd Dec 19, 2024
71820d1
.
eranhd Dec 19, 2024
8a577a1
.
eranhd Dec 19, 2024
f88dce4
.
eranhd Dec 19, 2024
2510f14
.
eranhd Dec 19, 2024
4bbd545
.
eranhd Dec 19, 2024
3f96cc5
.
eranhd Dec 19, 2024
832b03c
.
eranhd Dec 19, 2024
e20fb89
fix
eranhd Dec 19, 2024
c0ed866
.
eranhd Dec 19, 2024
573144a
.
eranhd Dec 19, 2024
4f40650
.
eranhd Dec 19, 2024
9d53d48
.
eranhd Dec 19, 2024
1965519
.
eranhd Dec 19, 2024
f4e6b96
.
eranhd Dec 22, 2024
6ca6e21
.
eranhd Dec 22, 2024
5722866
.
eranhd Dec 22, 2024
7dcd984
.
eranhd Dec 22, 2024
2dbe3c1
.
eranhd Dec 22, 2024
a064774
.
eranhd Dec 22, 2024
b2444e9
.
eranhd Dec 22, 2024
ebeb325
.
eranhd Dec 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: update git clone and checkout process in CI workflows
  • Loading branch information
eranhd committed Dec 8, 2024
commit f3b274facaa8b6d830c9f368a60c61d90c77aa5a
9 changes: 7 additions & 2 deletions .github/workflows/alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ jobs:
# Perform checkout
REPO_URL="https://github.com/${{ github.repository }}.git"
# Clone the repository to the current directory
git clone --recurse-submodules --depth=1 -b ${{github.sha}} $REPO_URL .
git clone --recurse-submodules --depth=1 $REPO_URL .
REF=${{github.sha}}
git fetch origin ${REF}
git checkout ${REF}
- name: Install python dependencies
run: |
pip install -q --upgrade setuptools
Expand All @@ -39,7 +42,9 @@ jobs:
# Perform checkout
REPO_URL="https://github.com/redis/redis.git"
# Clone the repository to the current directory
git clone --recurse-submodules --depth=1 -b unstable $REPO_URL redis
git clone --recurse-submodules --depth=1 $REPO_URL redis
git fetch origin unstable
git checkout unstable
- name: Build Redis
working-directory: redis
run: make install
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/build-linux-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,16 @@ on:
required: true

jobs:
prepare-matrix-values:
prepare-values:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
redis-ref: ${{ steps.set-env.outputs.redis-ref }}
steps:
- name: set env
id: set-env
run: |
echo "redis-ref=${{ inputs.redis-ref || 'unstable' }}" >> $GITHUB_OUTPUT
- name: Set matrix
id: set-matrix
run: |
Expand Down Expand Up @@ -73,7 +78,7 @@ jobs:
echo "matrix=${MATRIX}" >> $GITHUB_OUTPUT
build-linux-matrix:
runs-on: ubuntu-latest
needs: prepare-matrix-values
needs: prepare-values
strategy:
fail-fast: false
matrix:
Expand All @@ -97,7 +102,10 @@ jobs:
# Perform checkout
REPO_URL="https://github.com/${{ github.repository }}.git"
# Clone the repository to the current directory
git clone --recurse-submodules --depth=1 -b ${{github.sha}} $REPO_URL .
git clone --recurse-submodules --depth=1 $REPO_URL .
REF=${{github.sha}}
git fetch origin ${REF}
git checkout ${REF}
- name: Setup
working-directory: .install
run: |
Expand All @@ -121,7 +129,9 @@ jobs:
# Perform checkout
REPO_URL="https://github.com/redis/redis.git"
# Clone the repository to the current directory
git clone --recurse-submodules --depth=1 -b unstable $REPO_URL redis
git clone --recurse-submodules --depth=1 $REPO_URL redis
git fetch origin ${{needs.prepare-values.outputs.redis-ref}}
git checkout ${{needs.prepare-values.outputs.redis-ref}}
- name: build
uses: ./.github/actions/build-json-module-and-redis-with-cargo
- name: Set Artifact Names
Expand Down
76 changes: 7 additions & 69 deletions .github/workflows/ci-basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,72 +18,10 @@ on:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
build-linux-jammy:
runs-on: "ubuntu-latest"
container:
image: "ubuntu:jammy"
defaults:
run:
shell: bash -l -eo pipefail {0}
steps:
- name: Install git
run: |
apt-get update && apt-get install -y git
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup
working-directory: .install
run: |
echo ::group::Install dependencies
./ubuntu_22.04.sh
echo ::endgroup::
echo ::group::Install rust
./getrust.sh
echo ::endgroup::
- name: Get Redis
uses: actions/checkout@v4
with:
repository: redis/redis
ref: 'unstable' # todo change per version/tag
path: redis
- name: Build Redis
working-directory: redis
run: |
make install
- name: Build module
run: |
. "$HOME/.cargo/env"
cargo --version
cargo build --release
- name: Set Artifact Names
# Artifact names have to be unique, so we base them on the environment.
# We also remove invalid characters from the name.
id: artifact-names
run: | # Invalid characters include: Double quote ", Colon :, Less than <, Greater than >, Vertical bar |, Asterisk *, Question mark ?
echo "name=$(echo "ubuntu22 x86-64, Redis unstable" | \
sed -e 's/[":\/\\<>\|*?]/_/g' -e 's/__*/_/g' -e 's/^_//' -e 's/_$//')" >> $GITHUB_OUTPUT
- name: Run tests
run: |
echo ::group::Activate virtual environment
./.install/activate_venv.sh
echo ::endgroup::
echo ::group::Install python dependencies
./.install/common_installations.sh
echo ::endgroup::
echo ::group::Flow tests
MODULE=$(realpath ./target/release/librejson.so) RLTEST_ARGS='--no-progress' ./tests/pytest/tests.sh
echo ::endgroup::
echo ::group::Unit tests
cargo test
echo ::endgroup::
env:
PIP_BREAK_SYSTEM_PACKAGES: 1
- name: Upload artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: Test logs ${{ steps.artifact-names.outputs.name }}
path: tests/**/logs/*.log*
if-no-files-found: ignore
build-linux:
crdt_tests:
uses: ./.github/workflows/build-linux-platforms.yaml
with:
os: jammy focal bionic
redis-ref: unstable
secrets: inherit
Loading