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

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ workflows:
context: common
matrix:
parameters:
platform: [focal, bionic, xenial, ol8, centos7, bullseye]
platform: [focal, bionic, xenial, rocky8, centos7, bullseye]
- build-arm-platforms:
<<: *on-integ-and-version-tags
context: common
Expand Down
10 changes: 0 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -257,16 +257,6 @@ coverage:

#----------------------------------------------------------------------------------------------

docker:
$(SHOW)make -C build/platforms build

docker_push:
$(SHOW)make -C build/platforms publish

.PHONY: docker docker_push

#----------------------------------------------------------------------------------------------

docker:
$(SHOW)$(MAKE) -C build/docker
ifeq ($(PUBLISH),1)
Expand Down
2 changes: 1 addition & 1 deletion deps/readies
Submodule readies updated 1 files
+1 −0 bin/getgcc
54 changes: 33 additions & 21 deletions sbin/pack.sh
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
#!/bin/bash

HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
# [[ $V == 1 || $VERBOSE == 1 ]] && set -x

PROGNAME="${BASH_SOURCE[0]}"
HERE="$(cd "$(dirname "$PROGNAME")" &>/dev/null && pwd)"
ROOT=$(cd $HERE/.. && pwd)
export READIES=$ROOT/deps/readies
. $READIES/shibumi/defs

cd $ROOT
SBIN=$ROOT/sbin

export PYTHONWARNINGS=ignore

cd $ROOT

#----------------------------------------------------------------------------------------------

if [[ $1 == --help || $1 == help ]]; then
if [[ $1 == --help || $1 == help || $HELP == 1 ]]; then
cat <<-END
Generate RedisJSON distribution packages.

[ARGVARS...] pack.sh [--help|help]

Argument variables:
MODULE=path Path of module .so

RAMP=1|0 Build RAMP file
DEPS=0|1 Build dependencies file
SYM=0|1 Build debug symbols file

VARIANT=name Build variant (default: empty)
BRANCH=name Branch name for snapshot packages
GITSHA=1 Append Git SHA to shapshot package names
VERSION=ver Version for release packages
WITH_GITSHA=1 Append Git SHA to shapshot package names
VARIANT=name Build variant (default: empty)

ARTDIR=dir Directory in which packages are created (default: bin/artifacts)

Expand All @@ -37,9 +44,6 @@ fi

#----------------------------------------------------------------------------------------------

[[ $IGNERR == 1 ]] || set -e
[[ $V == 1 || $VERBOSE == 1 ]] && set -x

RAMP=${RAMP:-1}
DEPS=${DEPS:-1}
SYM=${SYM:-1}
Expand All @@ -48,21 +52,21 @@ SYM=${SYM:-1}
mkdir -p $ARTDIR $ARTDIR/snapshots
ARTDIR=$(cd $ARTDIR && pwd)

export ARCH=$($READIES/bin/platform --arch)
export OS=$($READIES/bin/platform --os)
export OSNICK=$($READIES/bin/platform --osnick)

# RLEC naming conventions

ARCH=$($READIES/bin/platform --arch)
[[ $ARCH == x64 ]] && ARCH=x86_64
OS=$($READIES/bin/platform --os)
[[ $OS == linux ]] && OS=Linux

OSNICK=$($READIES/bin/platform --osnick)
[[ $OSNICK == trusty ]] && OSNICK=ubuntu14.04
[[ $OSNICK == xenial ]] && OSNICK=ubuntu16.04
[[ $OSNICK == bionic ]] && OSNICK=ubuntu18.04
[[ $OSNICK == focal ]] && OSNICK=ubuntu20.04
[[ $OSNICK == centos7 ]] && OSNICK=rhel7
[[ $OSNICK == centos8 ]] && OSNICK=rhel8
[[ $OSNICK == ol8 ]] && OSNICK=rhel8
[[ $OSNICK == rocky8 ]] && OSNICK=rhel8

export PRODUCT=rejson
export PRODUCT_LIB=$PRODUCT.so
Expand Down Expand Up @@ -170,17 +174,25 @@ prepare_symbols_dep() {

#----------------------------------------------------------------------------------------------

export NUMVER=$(NUMERIC=1 $ROOT/sbin/getver)
export SEMVER=$($ROOT/sbin/getver)
NUMVER=$(NUMERIC=1 $SBIN/getver)
SEMVER=$($SBIN/getver)

if [[ ! -z $VARIANT ]]; then
VARIANT=-${VARIANT}
fi

[[ -z $BRANCH ]] && BRANCH=${CIRCLE_BRANCH:-`git rev-parse --abbrev-ref HEAD`}
#----------------------------------------------------------------------------------------------

if [[ -z $BRANCH ]]; then
BRANCH=$(git rev-parse --abbrev-ref HEAD)
# this happens of detached HEAD
if [[ $BRANCH == HEAD ]]; then
BRANCH="$SEMVER"
fi
fi
BRANCH=${BRANCH//[^A-Za-z0-9._-]/_}
if [[ $GITSHA == 1 ]]; then
GIT_COMMIT=$(git describe --always --abbrev=7 --dirty="+" 2>/dev/null || git rev-parse --short HEAD)
if [[ $WITH_GITSHA == 1 ]]; then
GIT_COMMIT=$(git rev-parse --short HEAD)
BRANCH="${BRANCH}-${GIT_COMMIT}"
fi
export BRANCH
Expand All @@ -198,7 +210,7 @@ fi

if [[ $RAMP == 1 ]]; then
if ! command -v redis-server > /dev/null; then
eprint "$0: Cannot find redis-server. Aborting."
eprint "$PROGNAME: Cannot find redis-server. Aborting."
exit 1
fi

Expand Down
1 change: 1 addition & 0 deletions sbin/upload-artifacts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ OS=$($READIES/bin/platform --os)
[[ $OSNICK == centos7 ]] && OSNICK=rhel7
[[ $OSNICK == centos8 ]] && OSNICK=rhel8
[[ $OSNICK == ol8 ]] && OSNICK=rhel8
[[ $OSNICK == rocky8 ]] && OSNICK=rhel8

PLATFORM="$OS-$OSNICK-$ARCH"

Expand Down
9 changes: 5 additions & 4 deletions tests/pytest/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
redis>=3.0.0
redis-py-cluster>=2.1.0
rltest==0.4.2
six>=1.10.0
redis >= 3.0.0
redis-py-cluster >= 2.1.0
RLTest ~= 0.4.2
ramp-packer ~= 2.2.1
six >= 1.10.0
7 changes: 4 additions & 3 deletions tests/qa/RS_VERSIONS
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
6.2.10-24
100.0.0-2721
6.0.8-32
6.0.12-58
6.0.20-101
6.2.4-54
6.2.8-44
100.0.0-2617
6.2.8-53
6.2.10-83
6.2.12-11
8 changes: 4 additions & 4 deletions tests/qa/qatests
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ RS_PLATFORMS = {
'cenos7': {
'platform': 'Linux-rhel7',
'env': 'rhel7.7-amd64-aws' },
'centos8': {
'platform': 'Linux-rhel8',
'env': 'rhel8.3-amd64-aws' }
'ol8': {
# 'centos8': {
# 'platform': 'Linux-rhel8',
# 'env': 'rhel8.3-amd64-aws' },
'rocky8': {
'platform': 'Linux-rhel8',
'env': 'rhel8.3-amd64-aws' }
}
Expand Down