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
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -484,15 +484,15 @@ workflows:
<<: *on-integ-and-version-tags
matrix:
parameters:
platform: [focal, bionic, xenial, centos8, centos7, bullseye]
platform: [focal, bionic, xenial, ol8, centos7, bullseye]
- build-arm-platforms:
<<: *on-integ-and-version-tags
context: common
matrix:
parameters:
platform: [bionic]
- build-macos:
<<: *on-integ-and-version-tags
<<: *on-integ-and-version-tags
- coverage:
context: common
<<: *on-any-branch
Expand Down
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
ARG REDIS_VER=6.2.5
ARG REDISEARCH_BRANCH=master

# OSNICK=focal|bionic|xenial|bullseye|centos8|centos7
ARG OSNICK=bullseye

# OS=debian:bullseye-slim|ubuntu:bionic|centos:7
ARG OS=debian:bullseye-slim

# ARCH=x64|arm64v8|arm32v7
Expand Down
3 changes: 0 additions & 3 deletions build/platforms/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

ARG REDIS_VER=6.2.5

# OSNICK=focal|bionic|xenial|bullseye|centos8|centos7
ARG OSNICK=bullseye

# OS=debian:bullseye-slim|ubuntu:bionic|centos:7
ARG OS=debian:bullseye-slim

# ARCH=x64|arm64v8|arm32v7
Expand Down
1 change: 0 additions & 1 deletion build/platforms/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ include $(ROOT)/deps/readies/mk/main

DOCKERFILE_STEM=$(ROOT)/build/platforms/Dockerfile

# OSNICK=bullseye|bionic|xenial|centos7|centos8
OSNICK ?= bullseye

REPO=rejson
Expand Down
2 changes: 1 addition & 1 deletion deps/readies
4 changes: 2 additions & 2 deletions sbin/get-redisearch
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ else
if [[ $nick != bullseye ]]; then
nick=ubuntu18.04
fi
elif [[ $dist == centos || $dist == redhat || $dist == fedora ]]; then
if [[ $nick == centos8 ]]; then
elif [[ $dist == centos || $dist == redhat || $dist == fedora || $dist == ol ]]; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ol without nick == ol8 falls to rhel7
is this right? Does this flow exist?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Practically, we have two options for CentOS-like systems, rhel7 and rhel8 (note that those are RLEC-style names which we're forced to use in packages). The former will work on most systems (so unless we're a type-8 system - which falls under the category of osnick == centos8/ol8, because we don't distinguish between rhel8 and centos8 on the osnick level).
If you find it a conceptual hell, you're not wrong. It is.

if [[ $nick == centos8 || $nick == ol8 ]]; then
nick="rhel8"
else
nick="rhel7"
Expand Down
1 change: 1 addition & 0 deletions sbin/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export OSNICK=$($READIES/bin/platform --osnick)
[[ $OSNICK == focal ]] && OSNICK=ubuntu20.04
[[ $OSNICK == centos7 ]] && OSNICK=rhel7
[[ $OSNICK == centos8 ]] && OSNICK=rhel8
[[ $OSNICK == ol8 ]] && OSNICK=rhel8

export PRODUCT=rejson
export PRODUCT_LIB=$PRODUCT.so
Expand Down
2 changes: 1 addition & 1 deletion sbin/system-setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def common_first(self):
self.pip_install("wheel")
self.pip_install("setuptools --upgrade")

self.install("git rsync")
self.install("git rsync tar")

if not self.has_command("clang"):
self.run("%s/bin/getclang --modern" % READIES)
Expand Down
5 changes: 4 additions & 1 deletion tests/qa/qatests
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ RS_PLATFORMS = {
'cenos7': {
'platform': 'Linux-rhel7',
'env': 'rhel7.7-amd64-aws' },
'cenos8': {
'centos8': {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why keep centos8 if it is replaced??

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not being replaced. I think once they fix it, it will be back. Note that 'centos8' is not just CentOS 8 literally, but the class of systems which are compatible with RHEL8. The point is that some systems, like Oracle Linux and Amazon Linux are not exactly 100% compatible with it (for instance, names of some packages may be different), so we keep them a little bit apart until we know them better. They do qualify for redhat_compat in system-setup.py though.

'platform': 'Linux-rhel8',
'env': 'rhel8.3-amd64-aws' }
'ol8': {
'platform': 'Linux-rhel8',
'env': 'rhel8.3-amd64-aws' }
}
Expand Down