Skip to content

Commit

Permalink
chore: Migrate rhel81-power8 to rhel8-power9 MONGOSH-1835 (#2236)
Browse files Browse the repository at this point in the history
* chore: Use new distro ids for MacOS and IBM hosts

* Try a different host name

* Try 3

* Use power instead of power9

* Update context-expansions

* Try to use toolchain v4

* Actually use v4 for ppc hosts
  • Loading branch information
nirinchev authored Nov 5, 2024
1 parent dd7f499 commit ea58f30
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 19 deletions.
16 changes: 8 additions & 8 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17183,8 +17183,8 @@ buildvariants:
tasks:
- name: compile_artifact
- name: linux_ppc64le_build
display_name: "RHEL 8.1 PPC (build)"
run_on: rhel81-power8-small
display_name: "RHEL 8 PPC (build)"
run_on: rhel8-power-small
expansions:
executable_os_id: linux-ppc64le
tasks:
Expand Down Expand Up @@ -17370,9 +17370,9 @@ buildvariants:
tasks:
- name: e2e_tests_linux_arm64
- name: e2e_tests_linux_arm64_openssl3
- name: e2e_rhel81_ppc64le
display_name: "RHEL 8.1 PPC (E2E Tests)"
run_on: rhel81-power8-small
- name: e2e_rhel8_ppc64le
display_name: "RHEL 8 PPC (E2E Tests)"
run_on: rhel8-power-small
tasks:
- name: e2e_tests_linux_ppc64le
- name: e2e_rhel7_s390x
Expand Down Expand Up @@ -17750,9 +17750,9 @@ buildvariants:
run_on: rhel8-zseries-small
tasks:
- name: pkg_test_rpmextract_rpm_s390x
- name: pkg_smoke_tests_rhel81_ppc64le
display_name: "package smoke tests (RHEL 8.1 ppc64le)"
run_on: rhel81-power8-small
- name: pkg_smoke_tests_rhel8_ppc64le
display_name: "package smoke tests (RHEL 8 ppc64le)"
run_on: rhel8-power-small
tasks:
- name: pkg_test_rpmextract_rpm_ppc64le

Expand Down
2 changes: 1 addition & 1 deletion .evergreen/compilation-context-expansions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export DISTRO_UPLOADLIST_REGEX="^(rhel70|win|rhel7-zseries|rhel81-power8|amazon2-arm64|macos)"
export DISTRO_UPLOADLIST_REGEX="^(rhel70|win|rhel7-zseries|rhel8-power|amazon2-arm64|macos)"
export COMPILING_CONTEXT_FILE="$(pwd)/../tmp/compiling-context.yml"

if ! [[ "$DISTRO_ID" =~ $DISTRO_UPLOADLIST_REGEX ]]; then
Expand Down
3 changes: 2 additions & 1 deletion .evergreen/compilation-context-expansions.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ rhel7-zseries-large=true
rhel7-zseries-small=true
rhel76-large=false
rhel80-small=false
rhel81-power8-small=true
rhel81-power8-small=false
rhel8-power-small=true
rhel82-arm64-small=false
rhel83-fips=false
rhel83-zseries-small=false
Expand Down
16 changes: 8 additions & 8 deletions .evergreen/evergreen.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -1676,8 +1676,8 @@ buildvariants:
tasks:
- name: compile_artifact
- name: linux_ppc64le_build
display_name: "RHEL 8.1 PPC (build)"
run_on: rhel81-power8-small
display_name: "RHEL 8 PPC (build)"
run_on: rhel8-power-small
expansions:
executable_os_id: linux-ppc64le
tasks:
Expand Down Expand Up @@ -1863,9 +1863,9 @@ buildvariants:
tasks:
- name: e2e_tests_linux_arm64
- name: e2e_tests_linux_arm64_openssl3
- name: e2e_rhel81_ppc64le
display_name: "RHEL 8.1 PPC (E2E Tests)"
run_on: rhel81-power8-small
- name: e2e_rhel8_ppc64le
display_name: "RHEL 8 PPC (E2E Tests)"
run_on: rhel8-power-small
tasks:
- name: e2e_tests_linux_ppc64le
- name: e2e_rhel7_s390x
Expand Down Expand Up @@ -2015,9 +2015,9 @@ buildvariants:
run_on: rhel8-zseries-small
tasks:
- name: pkg_test_rpmextract_rpm_s390x
- name: pkg_smoke_tests_rhel81_ppc64le
display_name: "package smoke tests (RHEL 8.1 ppc64le)"
run_on: rhel81-power8-small
- name: pkg_smoke_tests_rhel8_ppc64le
display_name: "package smoke tests (RHEL 8 ppc64le)"
run_on: rhel8-power-small
tasks:
- name: pkg_test_rpmextract_rpm_ppc64le

Expand Down
10 changes: 10 additions & 0 deletions .evergreen/install-node-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ EVGDIR="$ROOT_DIR/.evergreen"
NVM_DIR="$EVGDIR/.nvm"
ORIGINAL_PATH="${PATH}"

OS_ARCH="$(uname "-m")"
if [ "$OS_ARCH" = "ppc64le" ] || [ "$OS_ARCH" = "ppc64" ] ; then
echo "[INFO] Choosing v4 because OS_ARCH is $OS_ARCH"
export TOOLCHAIN_PATH='/opt/mongodbtoolchain/v4/bin'
else
echo "[INFO] Choosing v3 because OS_ARCH is $OS_ARCH"
export TOOLCHAIN_PATH='/opt/mongodbtoolchain/v3/bin'
fi
export PATH="$TOOLCHAIN_PATH:/opt/mongodbtoolchain/v4/bin:/opt/mongodbtoolchain/v3/bin:${ORIGINAL_PATH}"

export PATH="/opt/mongodbtoolchain/v4/bin:/opt/mongodbtoolchain/v3/bin:${ORIGINAL_PATH}"
export CC=gcc
export CXX=g++
Expand Down
11 changes: 10 additions & 1 deletion .evergreen/setup-env.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
set -e
set -x

OS_ARCH="$(uname "-m")"
if [ "$OS_ARCH" = "ppc64le" ] || [ "$OS_ARCH" = "ppc64" ] ; then
echo "[INFO] Choosing v4 because OS_ARCH is $OS_ARCH"
export TOOLCHAIN_PATH='/opt/mongodbtoolchain/v4/bin'
else
echo "[INFO] Choosing v3 because OS_ARCH is $OS_ARCH"
export TOOLCHAIN_PATH='/opt/mongodbtoolchain/v3/bin'
fi

export BASEDIR="$PWD/.evergreen"
export PATH="/cygdrive/c/python/Python311/Scripts:/cygdrive/c/python/Python311:/cygdrive/c/Python311/Scripts:/cygdrive/c/Python311:/opt/python/3.6/bin:$BASEDIR/mingit/cmd:$BASEDIR/mingit/mingw64/libexec/git-core:$BASEDIR/git-2:$BASEDIR/npm-10/node_modules/.bin:$BASEDIR/node-v$NODE_JS_VERSION-win-x64:/opt/java/jdk16/bin:/opt/chefdk/gitbin:/cygdrive/c/cmake/bin:/opt/mongodbtoolchain/v3/bin:$PATH"
export PATH="/cygdrive/c/python/Python311/Scripts:/cygdrive/c/python/Python311:/cygdrive/c/Python311/Scripts:/cygdrive/c/Python311:/opt/python/3.6/bin:$BASEDIR/mingit/cmd:$BASEDIR/mingit/mingw64/libexec/git-core:$BASEDIR/git-2:$BASEDIR/npm-10/node_modules/.bin:$BASEDIR/node-v$NODE_JS_VERSION-win-x64:/opt/java/jdk16/bin:/opt/chefdk/gitbin:/cygdrive/c/cmake/bin:$TOOLCHAIN_PATH:$PATH"

export MONGOSH_TEST_ONLY_MAX_LOG_FILE_COUNT=100000
export IS_MONGOSH_EVERGREEN_CI=1
Expand Down

0 comments on commit ea58f30

Please sign in to comment.