Skip to content

PSMDB-1630 initial sync performance tests #3375

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

Merged
merged 1 commit into from
Jul 22, 2025
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
77 changes: 77 additions & 0 deletions psmdb/psmdb-initsync.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
library changelog: false, identifier: "lib@master", retriever: modernSCM([
$class: 'GitSCMSource',
remote: 'https://github.com/Percona-Lab/jenkins-pipelines.git'
])

def moleculeDir = "psmdb-initsync"

pipeline {
agent {
label 'min-bookworm-x64'
}
environment {
PATH = '/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/ec2-user/.local/bin'
ANSIBLE_DISPLAY_SKIPPED_HOSTS = false
}
parameters {
choice(name: 'PSMDB',description: 'PSMDB repository',choices: ['psmdb-70','psmdb-80'])
choice(name: 'REPO',description: 'Repo for testing',choices: ['testing','experimental','release'])
choice(name: 'GATED_BUILD',description: 'Test private repo?',choices: ['true','false'])
choice(name: 'INSTANCE_TYPE',description: 'Ec2 instance type',choices: ['i3en.large','t2.micro','i3.xlarge','i3en.xlarge','i3en.3xlarge'])
string(name: 'DB_COUNT',description: 'Amount of Databases for initsync',defaultValue: '10')
string(name: 'DOC_COUNT',description: 'Amount of Documents per database for initsync',defaultValue: '1000000')
string(name: 'DOC_SIZE',description: 'Approximate size in bytes of single document for initsync, use max 10Kb to avoid issues with max batch size',defaultValue: '1024')
string(name: 'IDX_COUNT',description: 'Amount of indexes per database for initsync',defaultValue: '2')
string(name: 'TIMEOUT',description: 'Timeout for initsync',defaultValue: '3600')
string(name: 'SSH_USER',description: 'User for debugging',defaultValue: 'none')
string(name: 'SSH_PUBKEY',description: 'User ssh public key for debugging',defaultValue: 'none')
string(name: 'TESTING_BRANCH',description: 'Branch for testing repository',defaultValue: 'main')
}
options {
withCredentials(moleculePbmJenkinsCreds())
disableConcurrentBuilds()
}
stages {
stage('Set build name'){
steps {
script {
currentBuild.displayName = "${env.BUILD_NUMBER}"
}
}
}
stage('Checkout') {
steps {
deleteDir()
git poll: false, branch: TESTING_BRANCH, url: 'https://github.com/Percona-QA/psmdb-testing.git'
}
}
stage ('Prepare') {
steps {
script {
installMoleculeBookworm()
}
}
}
stage ('Test') {
steps {
withCredentials([usernamePassword(credentialsId: 'PSMDB_PRIVATE_REPO_ACCESS', passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME')]) {
script{
moleculeExecuteActionWithScenario(moleculeDir, "test", "aws")
}
}
}
post {
always {
junit testResults: "**/report.xml", keepLongStdio: true, allowEmptyResults: true, skipPublishingChecks: true
}
}
}
}
post {
always {
script {
moleculeExecuteActionWithScenario(moleculeDir, "destroy", "aws")
}
}
}
}
14 changes: 14 additions & 0 deletions psmdb/psmdb-initsync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- job:
name: psmdb-initsync
project-type: pipeline
description: |
Do not edit this job through the web!
pipeline-scm:
scm:
- git:
url: https://github.com/Percona-Lab/jenkins-pipelines.git
branches:
- 'master'
wipe-workspace: false
lightweight-checkout: true
script-path: psmdb/psmdb-initsync.groovy