Skip to content
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

Merge from Stable to Master #424

Open
wants to merge 63 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
f149cb9
Fully qualified DID support
Artemkaaas Sep 12, 2019
ae42252
Merge branch 'master' into feature/fully-qulified-did
Sep 26, 2019
aed2469
Fixed strange warning
Artemkaaas Sep 26, 2019
76b96ed
Merge remote-tracking branch 'origin/master' into feature/fully-qulif…
Artemkaaas Sep 27, 2019
425d647
Debug android
Artemkaaas Sep 27, 2019
edb9254
Merge branch 'master' into feature/fully-qulified-did
Artemkaaas Sep 27, 2019
3ef2328
Merge branch 'master' into feature/fully-qulified-did
jovfer Oct 8, 2019
207a799
Bump Libindy version on stable
Artemkaaas Oct 8, 2019
86cffe9
Merge pull request #414 from Artemkaaas/sovotoken-1.0.3
Artemkaaas Oct 8, 2019
2e5842e
Fixed doc test
Artemkaaas Oct 8, 2019
b78bcf7
Merge branch 'stable' into feature/fully-qulified-did
Artemkaaas Oct 9, 2019
7958344
Merge pull request #408 from Artemkaaas/feature/fully-qulified-did
Artemkaaas Oct 9, 2019
9d8e8e7
Updated toml file
Artemkaaas Oct 9, 2019
1c7ff32
Merge pull request #415 from Artemkaaas/bump-version
jovfer Oct 9, 2019
af8445c
Merge branch 'master' of github.com:sovrin-foundation/libsovtoken int…
Dec 6, 2019
1bb98d7
Release 1.0.5
Dec 6, 2019
7b39fca
Update libsodium path
Dec 6, 2019
4e464c6
Merge pull request #421 from anikitinDSR/stable-1.0.5
Dec 6, 2019
eefe933
Libsovtoken 1.0.5
Artemkaaas Dec 28, 2019
e39929e
Merge pull request #422 from Artemkaaas/stable-1.0.5
Dec 28, 2019
01767c3
correct build/test errors.
devinleighsmith Apr 23, 2021
884ae68
Merge pull request #425 from devinleighsmith/stable
WadeBarnes Apr 24, 2021
8836b60
attempt to resolve aws jenkins build issues.
devinleighsmith Apr 24, 2021
d411c02
Merge pull request #426 from devinleighsmith/stable
WadeBarnes Apr 26, 2021
0be0c75
bump versions of dockerfile to trigger ci/cd build properly.
devinleighsmith Apr 26, 2021
aed78ba
Merge pull request #427 from devinleighsmith/stable
WadeBarnes Apr 28, 2021
445721a
Bump dockerfiles to ensure images are run in AWS.
devinleighsmith Apr 28, 2021
2fb2bf0
Merge pull request #428 from devinleighsmith/stable
WadeBarnes Apr 29, 2021
1388302
update work_dir to resolve ios build errors.
devinleighsmith Apr 30, 2021
8a31d84
Merge branch 'stable' into stable
devinleighsmith Apr 30, 2021
59d065e
Merge pull request #429 from devinleighsmith/stable
WadeBarnes Apr 30, 2021
7899cd7
add logs to help debug setup script.
devinleighsmith Apr 30, 2021
7a3ed4b
do not install python3 via brew.
devinleighsmith Apr 30, 2021
779e666
Merge pull request #430 from devinleighsmith/stable
WadeBarnes Apr 30, 2021
6f8cd26
remove unused targets before running rustup update.
devinleighsmith May 3, 2021
b0cb9f3
Merge pull request #431 from devinleighsmith/stable
WadeBarnes May 3, 2021
3882282
Prevent rustup update from being run before the target remove logic.
devinleighsmith May 3, 2021
d88ba4e
Merge pull request #432 from devinleighsmith/stable
WadeBarnes May 3, 2021
8dd5010
Try specifying toolchain of removed components.
devinleighsmith May 3, 2021
a551174
Merge pull request #433 from devinleighsmith/stable
WadeBarnes May 6, 2021
bbab088
Point to newer version of openssl within mac build scripts.
devinleighsmith May 10, 2021
fa30cae
Merge pull request #434 from devinleighsmith/stable
WadeBarnes May 10, 2021
7957f27
update libindy version to 1.16.0
devinleighsmith May 10, 2021
c4f3e34
rollback version changes to support same versions as libindy.
devinleighsmith May 10, 2021
a73e03f
rollback libindy version bumps.
devinleighsmith May 10, 2021
986b85f
Merge pull request #435 from devinleighsmith/stable
WadeBarnes May 11, 2021
ec48aaa
Upgrade to indy-sdk 1.16 - fix compile errors and warnings
ianco May 11, 2021
de27956
Updat indy version in jenkins script
ianco May 12, 2021
7aac753
Merge pull request #438 from devinleighsmith/16.0
WadeBarnes May 19, 2021
db9db93
Update ci/cd to use indy sdk 1.16.0
ianco May 25, 2021
6f50977
update xenial build to use 1.16.0 version that is available by apt.
devinleighsmith May 26, 2021
e1eae1c
bump transitive dependencies
devinleighsmith May 27, 2021
2e67437
update dependencies as required by 1.16 libindy.
devinleighsmith May 27, 2021
50061a4
Merge pull request #440 from devinleighsmith/1.16_xenial
WadeBarnes May 31, 2021
cae484b
Fix iOS build
mirgee Jun 11, 2021
53a7c00
Replace the original file
mirgee Jun 11, 2021
86686ff
Merge pull request #441 from mirgee/hotfix/ios-build
WadeBarnes Jun 14, 2021
f7fedd3
Dump logs on error
mirgee Jun 14, 2021
f340476
Merge pull request #442 from mirgee/hotfix/see-logs
WadeBarnes Jun 14, 2021
76821b4
Restrict openssl targets
mirgee Jun 14, 2021
60dcff1
Merge pull request #443 from mirgee/hotfix/see-logs
WadeBarnes Jun 14, 2021
cfe6002
Build libindy for each arch separately
mirgee Jun 15, 2021
86323a7
Merge pull request #444 from mirgee/hotfix/see-logs
WadeBarnes Jun 15, 2021
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.0.5
* bugfixes

## 1.0.4
* bugfixes

## 1.0.3
* bugfixes

Expand Down
2 changes: 1 addition & 1 deletion devops/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ FPM_P_VENDOR := Sovrin
FPM_P_DESCRIPTION := libsovtoken written in Rust
FPM_P_NAME = $(PACKAGE_NAME)
FPM_P_VERSION ?= $(SRC_VERSION)
FPM_P_DEPENDS = libindy(>=1.12.0~96)
FPM_P_DEPENDS = libindy(>=1.16.0)
FPM_P_OUTPUT_DIR = $(LIB_TARGET_DIR)
FPM_ARGS = $(LIB_DYNAMIC)=/usr/lib/

Expand Down
80 changes: 38 additions & 42 deletions devops/aws-codebuild/Jenkinsfile.cd
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ String srcVersion
gitHubUserCredId = env.GITHUB_BOT_USER ?: 'sovbot-github'
sovrinPackagingRepo = env.SOVRIN_PACKAGING_REPO ?: 'https://github.com/sovrin-foundation/sovrin-packaging'
sovrinPackagingBranch = env.SOVRIN_PACKAGING_BRANCH ?: 'master'
LIBINDY_STREAM = "rc"
LIBINDY_VERSION = "1.12.0-96"
LIBINDY_STREAM = 'stable'
LIBINDY_VERSION = '1.16.0'

def downloadPackagingUtils() {
git branch: sovrinPackagingBranch, credentialsId: gitHubUserCredId, url: sovrinPackagingRepo
sh "pip3 install -U plumbum==1.6.7 deb-pkg-tools six==1.12.0"
sh 'pip3 install -U plumbum==1.6.7 deb-pkg-tools six==1.12.0'
}

// TODO set proper labels
Expand Down Expand Up @@ -106,7 +106,7 @@ def codeBuildPipelines = {

onArtifacts = {
this.stage("$prTag: Archive logs") {
this.utils.archiveArtifacts("logs/*.log*") {
this.utils.archiveArtifacts('logs/*.log*') {
truncate = true
allowEmptyArchive = true
truncateFileSuffix = 'trunc.log'
Expand Down Expand Up @@ -161,18 +161,18 @@ def codeBuildPipelines = {
// }

stage('Set release parameters') {
logger.info("Finding Release version")
// def releaseVersion = env.BRANCH_NAME == 'stable' ? '' : "${lastRevision ? lastRevision[0] + 1: 1}.$BUILD_NUMBER"
logger.info('Finding Release version')
// def releaseVersion = env.BRANCH_NAME == 'stable' ? '' : "${lastRevision ? lastRevision[0] + 1: 1}.$BUILD_NUMBER"
def releaseVersion = env.BRANCH_NAME == 'stable' ? '' : "$BUILD_NUMBER"
logger.info("Release version for sovrin repo: $releaseVersion")

// debPVersion = utils.packageVersion('deb', srcVersion, releaseVersion, env.BRANCH_NAME == 'master')
// debPVersion = utils.packageVersion('deb', srcVersion, releaseVersion, env.BRANCH_NAME == 'master')
debPVersion = env.BRANCH_NAME == 'stable' ? "$srcVersion" : "$srcVersion~$releaseVersion"
logger.info("Package version for sovrin repo: $debPVersion")

// TODO crate and rpm
//cratePVersion = utils.packageVersion('crate', srcVersion, releaseVersion)
//logger.info("Package version for rust registry: $cratePVersion")
// TODO crate and rpm
//cratePVersion = utils.packageVersion('crate', srcVersion, releaseVersion)
//logger.info("Package version for rust registry: $cratePVersion")
}

stage("$prTag: Resolve image tag") {
Expand Down Expand Up @@ -205,12 +205,12 @@ def codeBuildPipelines = {
[name: 'ARTIFACTS', value: "libsovtoken/target/release/${packageName}*.*"],
[name: 'PACKAGE_NAME', value: packageName],
[name: 'FPM_P_VERSION', value: debPVersion],
// [name: 'CRATE_P_VERSION', value: cratePVersion],
// [name: 'CRATE_P_VERSION', value: cratePVersion],
]

onArtifacts = {
this.stage("$prTag: Archive logs") {
this.utils.archiveArtifacts("logs/*.log*") {
this.utils.archiveArtifacts('logs/*.log*') {
truncate = true
allowEmptyArchive = true
truncateFileSuffix = 'trunc.log'
Expand All @@ -223,7 +223,7 @@ def codeBuildPipelines = {
String debName

dir("${awsCBHelper.buildCtx.projects[prTag].artifactsDir}") {
dir("sovrin-packaging") {
dir('sovrin-packaging') {
downloadPackagingUtils()
}
debName = utils.shStdout("ls $packageName*$debPVersion*.deb")
Expand Down Expand Up @@ -264,20 +264,20 @@ def codeBuildPipelines = {
]
builds.failFast = false

stage("CodeBuild Build") {
stage('CodeBuild Build') {
utils.parallel builds
}
}

def macOSPipeline = {
stage("MacOS Build") {
stage('MacOS Build') {
def packageName = 'libsovtoken'
def xcodeMinVersion = '9.0'
def RUST_PATH = '~/.cargo/bin'

WORK_DIR = '/Users/jenkins'

stage('Checks') {
echo "===================== Checks for XCode and Rust environment ========================"
echo '===================== Checks for XCode and Rust environment ========================'
INSTALLED_XCODE_VERSION = sh(script: '''xcodebuild -version | head -1 | cut -d' ' -f2''', returnStdout: true)
echo "INSTALLED_XCODE_VERSION = ${INSTALLED_XCODE_VERSION} and xcodeMinVersion = ${xcodeMinVersion}"
if (INSTALLED_XCODE_VERSION <= xcodeMinVersion) {
Expand Down Expand Up @@ -317,33 +317,31 @@ def macOSPipeline = {

withEnv([
"PATH+RUST=${RUST_PATH}",
"PATH+BREW=/usr/local/bin",
"PATH+CURL=/usr/local/opt/curl/bin"
'PATH+BREW=/usr/local/bin',
'PATH+CURL=/usr/local/opt/curl/bin'
]) {

dir('libsovtoken/build_scripts/ios/mac/') {

stage('mac.01.libindy.setup') {
sh './mac.01.env.setup.sh'
}

stage('mac.14.libsovtoken.build.sh') {
sh "./mac.14.libsovtoken.build.sh"
sh './mac.14.libsovtoken.build.sh'
}
}

dir('libsovtoken') {
pkgName = utils.shStdout("ls ${packageName}*.zip")
stash includes: pkgName, name: "iosArtifact"
stash includes: pkgName, name: 'iosArtifact'
}
}
}
}

def macosUpload = {
String packageName = "libsovtoken"
String packageName = 'libsovtoken'
stage('Upload libsovtoken universal package to Sovrin repo') {
unstash name: "iosArtifact"
unstash name: 'iosArtifact'
String pkgName = utils.shStdout("ls ${packageName}*.zip")
logger.info("Uploading libsovtoken package '$pkgName' to sovrin repo")

Expand All @@ -358,7 +356,7 @@ def macosUpload = {
}

def windowsOSPipeline = {
stage("Windows Testing") {
stage('Windows Testing') {
def ws_path = "workspace/${env.JOB_NAME}".replace(' ', '_')
ws(ws_path) {
try {
Expand All @@ -384,24 +382,24 @@ def windowsOSPipeline = {

stage('Testing') {
dir('libsovtoken') {
echo "Libsovtoken Testing: Build"
echo 'Libsovtoken Testing: Build'
withEnv([
"OPENSSL_DIR=$WORKSPACE\\prebuilt",
"SODIUM_LIB_DIR=$WORKSPACE\\prebuilt\\lib",
"LIBINDY_DIR=$WORKSPACE\\indy\\lib",
"PATH=$WORKSPACE\\prebuilt\\lib;$WORKSPACE\\indy\\lib;$PATH",
"RUST_BACKTRACE=1"
'RUST_BACKTRACE=1'
]) {
bat "cargo build --release"
bat "cargo test --release --no-run"
bat 'cargo build --release'
bat 'cargo test --release --no-run'

echo "Libsovtoken Testing: Run tests"
echo 'Libsovtoken Testing: Run tests'
withEnv([
"RUST_TEST_THREADS=1",
"RUST_LOG=debug",
'RUST_TEST_THREADS=1',
'RUST_LOG=debug',
"TEST_POOL_IP=$INDY_SDK_SERVER_IP"
]) {
bat "cargo test --release"
bat 'cargo test --release'
}
}

Expand All @@ -426,7 +424,6 @@ def windowsOSPipeline = {

def windowsUpload = {
stage('Upload libsovtoken package to Sovrin repo') {

if (!srcVersion) {
stage('Resolve current source version') {
srcVersion = utils.srcVersion(projectType: 'rust')
Expand All @@ -436,7 +433,7 @@ def windowsUpload = {

sh 'chmod -R 777 devops/windows'

unstash name: "windowsArtifact"
unstash name: 'windowsArtifact'

withCredentials([file(credentialsId: 'SovrinRepoSSHKey', variable: 'repo_key')]) {
withEnv([
Expand All @@ -453,13 +450,12 @@ def getSuffix() {
if (env.BRANCH_NAME == 'master') {
return "-$env.BUILD_NUMBER"
} else if (env.BRANCH_NAME == 'stable') {
return ""
return ''
} else {
error "Invalid branch ${env.BRANCH_NAME}"
}
}


pipelineWrapper({
//put code build containers inside a vpc under our dev account
env.USE_VPC_CONFIG = true
Expand All @@ -480,7 +476,7 @@ pipelineWrapper({
]
builds.failFast = false

stage("Build") {
stage('Build') {
utils.parallel builds
}

Expand All @@ -499,17 +495,17 @@ pipelineWrapper({
utils.parallel publish
}
}, { err ->
stage("Pipeline finalizing") {
stage('Pipeline finalizing') {
if (err) {
logger.error("Pipeline failed with the error $err")
}

stage("Build result notification") {
stage('Build result notification') {
notifier.email()
}
}
})

def setupRust() {
shell("rustup default 1.32.0")
shell('rustup default 1.51.0')
}
Loading