Skip to content

Add support for osx arm64. Fix ppc64le download link. #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pom.xml.versionsBackup
test-output/
/atlassian-ide-plugin.xml
.idea
.vscode
.*.swp
.*.swo
dist/
49 changes: 49 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
pipeline {

agent {
kubernetes {
yamlFile 'jenkins/agent.yaml'
defaultContainer 'maven'
}
}

options {
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '100'))
timeout(time: 30, unit: 'MINUTES')
}

stages {
stage("Setup") {
steps {
sh '''
apt update
apt install -y binutils cpio libaio1 libaio-dev libnuma-dev rpm2cpio tree xz-utils
printenv | sort
'''
}
}

stage ("Maven") {
steps {
sh '''
mvn verify
'''
}
}
}

post {
always {
archiveArtifacts artifacts: "**/surefire-reports/",
allowEmptyArchive: true
junit '**/junitreports/*.xml'
}
fixed {
slackSend(color: "good", message: "fixed ${RUN_DISPLAY_URL}")
}
failure {
slackSend(color: "danger", message: "failure ${RUN_DISPLAY_URL}")
}
}
}
26 changes: 26 additions & 0 deletions jenkins/agent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: v1
kind: Pod
metadata:
namespace: oss-agent
labels:
containers: maven
spec:
nodeSelector:
eks.amazonaws.com/nodegroup: eks-oss-presto-dynamic-managed-ng
serviceAccountName: oss-agent
containers:
- name: maven
image: maven:3.8.6-openjdk-8-slim
tty: true
resources:
requests:
memory: "3Gi"
cpu: "500m"
limits:
memory: "3Gi"
cpu: "500m"
env:
- name: MAVEN_OPTS
value: "-Xmx3g -Xms3g"
command:
- cat
2 changes: 1 addition & 1 deletion testing-mysql-server-5/repack-mysql-5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eu

VERSION=5.7.22
BASEURL="https://dev.mysql.com/get/Downloads/MySQL-5.7"
PPC64LE_BASEURL="http://yum.mariadb.org/10.2/centos/7/ppc64le/rpms/"
PPC64LE_BASEURL="http://archive.mariadb.org/mariadb-10.2.36/yum/centos/7/ppc64le/rpms"

LINUX_BASE=mysql-$VERSION-linux-glibc2.12-x86_64
LINUX_PPC64LE_RPM=MariaDB-server-10.2.36-1.el7.centos.ppc64le.rpm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public List<String> getStartArguments()
else {
return iList
.add(
"--user=root",
"--skip-ssl",
"--disable-partition-engine-check",
"--explicit_defaults_for_timestamp",
Expand Down
39 changes: 33 additions & 6 deletions testing-mysql-server-8/repack-mysql-8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

set -eu

VERSION=8.0.15
VERSION=8.0.26
BASEURL="https://dev.mysql.com/get/Downloads/MySQL-8.0"

LINUX_BASE=mysql-$VERSION-linux-glibc2.12-x86_64
OSX_BASE=mysql-$VERSION-macos10.14-x86_64
OSX_BASE=mysql-$VERSION-macos11-x86_64
OSX_AARCH64_BASE=mysql-$VERSION-macos11-arm64

TAR=tar
command -v gtar >/dev/null && TAR=gtar
Expand Down Expand Up @@ -43,12 +44,17 @@ LINUX_DIST=dist/$LINUX_NAME
OSX_NAME=$OSX_BASE.tar.gz
OSX_DIST=dist/$OSX_NAME

OSX_AARCH64_NAME=$OSX_AARCH64_BASE.tar.gz
OSX_AARCH64_DIST=dist/$OSX_AARCH64_NAME

test -e $LINUX_DIST || curl -L -o $LINUX_DIST "$BASEURL/$LINUX_NAME" --fail
test -e $OSX_DIST || curl -L -o $OSX_DIST "$BASEURL/$OSX_NAME" --fail
test -e $OSX_AARCH64_DIST || curl -L -o $OSX_AARCH64_DIST "$BASEURL/$OSX_AARCH64_DIST" --fail

PACKDIR=$(mktemp -d "${TMPDIR:-/tmp}/mysql.XXXXXXXXXX")
$TAR -xf $LINUX_DIST -C $PACKDIR
pushd $PACKDIR/$LINUX_BASE
tree .
$STRIP bin/mysqld
$TAR -czf $OLDPWD/$RESOURCES/mysql-Linux-amd64.tar.gz \
LICENSE \
Expand All @@ -58,17 +64,17 @@ $TAR -czf $OLDPWD/$RESOURCES/mysql-Linux-amd64.tar.gz \
share/*.txt \
share/charsets \
share/english \
lib/libcrypto.* \
lib/libssl.* \
bin/libcrypto.* \
bin/libssl.* \
lib/private/libcrypto.* \
lib/private/libprotobuf-lite.* \
lib/private/libssl.* \
bin/mysqld
popd
rm -rf $PACKDIR

PACKDIR=$(mktemp -d "${TMPDIR:-/tmp}/mysql.XXXXXXXXXX")
$TAR -xf $OSX_DIST -C $PACKDIR
pushd $PACKDIR/$OSX_BASE
tree .
$TAR -czf $OLDPWD/$RESOURCES/mysql-Mac_OS_X-x86_64.tar.gz \
LICENSE \
README \
Expand All @@ -78,7 +84,28 @@ $TAR -czf $OLDPWD/$RESOURCES/mysql-Mac_OS_X-x86_64.tar.gz \
share/charsets \
share/english \
lib/libcrypto.* \
lib/libprotobuf-lite.* \
lib/libssl.* \
bin/mysqld
popd
rm -rf $PACKDIR

PACKDIR=$(mktemp -d "${TMPDIR:-/tmp}/mysql.XXXXXXXXXX")
$TAR -xf $OSX_AARCH64_DIST -C $PACKDIR
pushd $PACKDIR/$OSX_AARCH64_BASE
tree .
$TAR -czf $OLDPWD/$RESOURCES/mysql-Mac_OS_X-aarch64.tar.gz \
LICENSE \
README \
docs/INFO* \
share/*.sql \
share/*.txt \
share/charsets \
share/english \
lib/libcrypto.* \
lib/libprotobuf-lite.* \
lib/libssl.* \
bin/libprotobuf-lite.* \
bin/mysqld
popd
rm -rf $PACKDIR
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public List<String> getInitializationArguments()
public List<String> getStartArguments()
{
return ImmutableList.of(
"--no-defaults",
"--user=root",
"--skip-ssl",
"--skip-mysqlx",
"--default-time-zone=+00:00",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class TestTestingMySqlServer
@Override
public String getMySqlVersion()
{
return "8.0.15";
return "8.0.26";
}

@Override
Expand Down