Skip to content

PLAT-228: added sharedbuffers ci #112

New issue

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

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

Already on GitHub? # to your account

Merged
merged 26 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
119e075
PLAT-228: added sharedbuffers ci
mpucciariello Apr 25, 2024
defdcf5
PLAT-228: added release job
mpucciariello Apr 25, 2024
304f42e
PLAT-228: fixed python version
mpucciariello Apr 25, 2024
db3c708
PLAT-228: fixed python version
mpucciariello Apr 25, 2024
9c61f4d
PLAT-228: fixed python version
mpucciariello Apr 25, 2024
2af7a8a
PLAT-228: fixed python version
mpucciariello Apr 25, 2024
0d55446
PLAT-228: fixed python version
mpucciariello Apr 25, 2024
86a929b
PLAT-228: fixed python version
mpucciariello Apr 25, 2024
f474e67
PLAT-228: added dockerfile
mpucciariello Apr 25, 2024
b629ef8
PLAT-228: fixed python version
mpucciariello Apr 25, 2024
7fa741f
PLAT-228: fixed python version
mpucciariello Apr 25, 2024
63f1d2c
PLAT-228: fixed python version
mpucciariello Apr 25, 2024
c79f80d
PLAT-228: installed cython
mpucciariello Apr 25, 2024
eceb8e9
PLAT-228: fixed cython version
mpucciariello Apr 25, 2024
ea45274
PLAT-228: added libjampp version
mpucciariello Apr 25, 2024
84f87f6
PLAT-228: removed libjampp
mpucciariello Apr 25, 2024
176778d
PLAT-228: added required build
mpucciariello Apr 25, 2024
1786591
PLAT-228: test
mpucciariello Apr 25, 2024
4482efa
PLAT-228: test
mpucciariello Apr 25, 2024
38ad313
PLAT-228: test
mpucciariello Apr 25, 2024
70643a3
PLAT-228: test
mpucciariello Apr 25, 2024
c99ab01
PLAT-228: test
mpucciariello Apr 25, 2024
f705e47
PLAT-228: modified release job
mpucciariello Apr 26, 2024
59c4818
PLAT-228: test release
mpucciariello Apr 26, 2024
e82a506
PLAT-228: updated changelog
mpucciariello Apr 26, 2024
d927925
PLAT-228: added test param to release
mpucciariello Apr 26, 2024
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 VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.2.2
8 changes: 8 additions & 0 deletions doc/source/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented here.

The format is largely inspired by keepachangelog_.

v1.2.2 - 2024-04-26
===================

Added
~~~~~~~~

- Implemented Jenkins CI.

v1.2.1 - 2023-10-10
===================

Expand Down
54 changes: 54 additions & 0 deletions jobs/sharedbuffers-ci.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
@Library("jampp-shared-libraries@v2.14.3") _

pipeline {
agent {
node {
label "spot-large"
}
}

environment {
PYTHONTEST_IMAGE_VERSION = "3.6.0-python3.11"
REQUIRES_SDIST = "true"
}

stages {
stage("Run CI") {
steps {
script {
docker.image("docker.jampp.com/pythontest-image-builder:${PYTHONTEST_IMAGE_VERSION}").inside(
"""\
-v ${WORKSPACE}:/src \
-e PYTHON_PRE_DEPENDENCIES=Cython \
-e REQUIRES_SDIST=true \
-e REQUIRES_BUILD=true \
-e FORCE_SESSION_ROLLBACK_UNITTEST \
"""
) {
sh 'pip install Cython==0.29.36'
sh """
""".stripIndent()
sh script: '/docker-entrypoint.sh pytest_coverage', returnStatus: true
}
}

junit "output.xml"
cobertura autoUpdateHealth: false,
autoUpdateStability: false,
coberturaReportFile: "coverage.xml",
failNoReports: true,
failUnhealthy: false,
failUnstable: false,
maxNumberOfBuilds: 0,
onlyStable: false,
sourceEncoding: "ASCII",
zoomCoverageChart: false,
lineCoverageTargets: '80, 0, 0',
methodCoverageTargets: '80, 0, 0',
conditionalCoverageTargets: '80, 0, 0'

archiveArtifacts "dist/sharedbuffers-*.tar.gz"
}
}
}
}
63 changes: 63 additions & 0 deletions jobs/sharedbuffers-release.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
@Library('jampp-shared-libraries@v2.14.3') _

def slackResponse = ''
script {
slackResponse = slackSendNotification.notifyBuildStart()
}

pipeline {
agent { node { label 'on-demand-large' } }
stages {
stage('Check tags & package version') {
steps{
script {
PKG_VERSION = readFile("sharedbuffers/VERSION").trim()

if (params.TEST_VERSION) {
PKG_VERSION += "-test"
}

GIT_REF= sh(returnStdout: true, script: "git show-ref --tags ${PKG_VERSION} || echo ''").trim()

if (GIT_REF != "") {
error "Tag ${PKG_VERSION} exists: ${GIT_REF}"
}
}
}
}
stage('Publish') {
steps {
script {
docker.image("python:3.11-alpine3.18").inside('-u root:root'){
sh '''
cat << EOF > ~/.pypirc
[distutils]
index-servers = jampp
[jampp]
repository: http://pypi.jampp.com/pypi
username: ''
password: ''
EOF
'''.stripIndent()
sh '''
apk --no-cache add musl-dev linux-headers g++
pip install numpy
python setup.py build sdist bdist_egg upload -r jampp
'''
}
withCredentialedGit.run(credential: 'github', setGlobally: false, {
sh "git tag ${PKG_VERSION} && git push --tags"
})
}
}
}
}

post {
always {
script {
slackSendNotification.notifyResult(slackResponse)
}
}
}
}