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

CORE-17387: Merging forward updates from release/os/5.1 to release/interop/syntax - 2023-10-03 #4769

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
7805347
CORE-17074: Include JetBrains attribution for kotlin-reflection libra…
chrisr3 Sep 14, 2023
28444ed
CORE-17114 Pre-install check improvements (#4645)
davidcurrie Sep 15, 2023
ffe1ee7
CORE-15073: Fix vNodeCreate ClusterBuilder method (#4641)
BenYip123 Sep 15, 2023
ce9be4c
Add minVersion for network endpoints introduced in 5.1 (#4644)
dimosr Sep 15, 2023
0aef422
CORE-15797 - Member list cache is not ready on pod restart (#4659)
nikinagy Sep 18, 2023
e9fc272
CORE-17115: Send error messages back to the counterparty when data is…
JamesHR3 Sep 19, 2023
d35f473
CORE-16319 - Fix time sensitive windows nightly build failure (#4662)
conalsmith-r3 Sep 19, 2023
5cd3f87
CORE-13119 Stable paging of ledger custom queries (#4548)
relyafi Sep 19, 2023
cccd405
CORE-10087 - Introduce utils needed to migrate network tests to the e…
dimosr Sep 19, 2023
ea69815
CORE-17123: Fix dependency substitution for jars wrapped as OSGi bund…
chrisr3 Sep 19, 2023
a5cca59
CORE-16721: Allow gateway to work with a few servers at the same host…
yift-r3 Sep 19, 2023
bcbb188
CORE-17171: Resolve Gradle warnings about deprecated functionality. (…
chrisr3 Sep 19, 2023
4ce5a24
CORE-16195 - uniqueness-rpc-processor (#4631)
driessamyn Sep 20, 2023
2d0b40f
CORE-17173: Improve documentation for SandbxGroupContextServiceImpl. …
chrisr3 Sep 20, 2023
3fd7020
CORE-16233 Removed unneeded dependency components:persistence:entity-…
mbrkic-r3 Sep 20, 2023
a4c8969
CORE-16822 - Token Selection - When a token service event fails it sh…
filipesoliveira Sep 20, 2023
31ff82b
CORE-17258 - Disable unstable test temporarily (#4679)
dimosr Sep 20, 2023
125b1ef
CORE-13624 Service side idempotency id for persistence requests (#4491)
kyriathar Sep 21, 2023
a97fe5e
CORE-17166 Add cpiSummary.filecheckSum to DigitalSignatureMetadata in…
vlajos Sep 21, 2023
3ab1ba4
CORE-10087 - Migrate remaining network e2e tests to smoke test suite …
dimosr Sep 21, 2023
2953dc7
CORE-17154 - boot the flow and combined workers with the state manage…
conalsmith-r3 Sep 21, 2023
39ca605
CORE-17261 - Clarify logs for stale serial number (#4684)
dimosr Sep 21, 2023
33420b5
CORE-16860: Send counterparty explicit requests for flow version info…
LWogan Sep 21, 2023
1fbe888
CORE-17202 - change default smoketest target to Combined Worker (#4672)
driessamyn Sep 22, 2023
c181fa7
Revert ledger custom queries to offset-based paging (#4682)
relyafi Sep 22, 2023
b113073
CORE-13620 Idempotency id table housekeeping (#4653)
kyriathar Sep 22, 2023
fe0e11d
CORE-16823 - Token Selection - Notary x500 name should be stored in t…
filipesoliveira Sep 22, 2023
0470a7e
CORE-16177 Creating generic MessagingClient for Kafka/DB/RPC (#4601)
ben-millar Sep 22, 2023
1a854fe
CORE-17173: Improve coverage of NonInjectableSingletonTest. (#4683)
chrisr3 Sep 22, 2023
00f7303
CORE-6803 Add support for expiring token claims that have exceeded th…
owenstanford Sep 22, 2023
34ce849
CORE-16980 Validate session key scheme for MGM onboarding (#4686)
charlieR3 Sep 22, 2023
e41b5e1
CORE-17300 Multi-SourceEventMediator - MessageBusConsumer (#4690)
mbrkic-r3 Sep 22, 2023
75d367d
CORE-15820 - Token Selection - Add new version of the token state obs…
filipesoliveira Sep 25, 2023
d53b1a2
CORE-13623 Client side idempotency id for persistence requests (#4688)
kyriathar Sep 25, 2023
1e0f122
Re-instate stable query paging for ledger custom queries (#4695)
relyafi Sep 25, 2023
41f3927
CORE-17276 Refactor DB bootstrap into two containers (#4693)
davidcurrie Sep 25, 2023
0d41c9c
Do not propagate config salt and passphrase when using Vault. (#4640)
malachyb Sep 25, 2023
be2d897
CORE-17256 - Token Selection - Cache should be expanded when all cach…
filipesoliveira Sep 26, 2023
d2facd3
CORE-16615: introduce unconsumed visible state by type query (#4655)
jennyang-r3 Sep 26, 2023
26f5f3c
CORE-17331 Add initial-rbac all-cluster-roles sub-command (#4702)
davidcurrie Sep 26, 2023
0654e5b
CORE-17327 - workermonitor-refactor (#4699)
driessamyn Sep 26, 2023
bbf80a9
CORE-17185: Change external event retry to be time based rather than …
JamesHR3 Sep 26, 2023
f41bab1
CORE-15064: Set `mixinStandardHelpOptions = true` (#4711)
vkolomeyko Sep 27, 2023
bacee09
CORE-12411 - Add declination reason (#4696)
dimosr Sep 27, 2023
fc60a07
CORE-16200 Multi-Source Event Mediator configurations and factories (…
mbrkic-r3 Sep 27, 2023
ab77a59
CORE-17112: Avoid delete user or schema for BYODB scenario (#4687)
BenYip123 Sep 27, 2023
2bb6ff4
CORE-16202 Multi-Source Event Mediator message router and related cla…
mbrkic-r3 Sep 27, 2023
92056c1
CORE-17354 Force initial reconciliation to support updating configura…
kyriathar Sep 27, 2023
2adcee5
CORE-11942, CORE-11860 - Block blank strings as regex for approval ru…
dimosr Sep 27, 2023
e73e1f0
CORE-17274 remove 5.0 compatibility flows (#4703)
vlajos Sep 27, 2023
90fdfe3
CORE-16200 Multi-Source Event Mediator configuration and factory. (#4…
mbrkic-r3 Sep 27, 2023
d57c7f5
CORE-17055 Add CI job for plugin smoke tests (#4707)
YashNabar Sep 27, 2023
54d131b
CORE-17367 On `Scheduler` error going `DOWN` prevents k8s replacing t…
kyriathar Sep 27, 2023
31fa364
CORE-15064: Add standard help option to all the CLI commands (#4717)
vkolomeyko Sep 28, 2023
31490c6
CORE-17147: Bump Jetty version (#4724)
vkolomeyko Sep 28, 2023
31bcefb
CORE-16796 Preview Kafka topic configuration (#4675)
bpaunescu Sep 28, 2023
eacc9ce
CORE-17360: Update execute cleanup event to match new avro object (#4…
JamesHR3 Sep 28, 2023
9e924e4
CORE-11214 - Prevent null or blank notary protocol (#4727)
dimosr Sep 29, 2023
944efd7
CORE-15064: Rename `-v` option in `Verify` CLI plugin (#4732)
vkolomeyko Sep 29, 2023
faaad10
CORE-17009 Manage Multi-Source Event Mediator Consumers and Clients (…
mbrkic-r3 Sep 29, 2023
a1e0ddb
CORE-16202 Multi-Source Event Mediator - Routing messages to messagin…
mbrkic-r3 Sep 29, 2023
c1bb55e
CORE-17382 Allow e2e test config manager to merge with existing confi…
charlieR3 Sep 29, 2023
18b430f
CORE-17326: Search by Metadata & Last Update Time (#4712)
jujoramos Sep 29, 2023
4995a57
CORE-17377: Fix create-topics timeout to not depend on kafka.cleanup …
anton-subbotin Sep 29, 2023
ce23edf
CORE-16786: Upgrade CLI PF4J to 3.10 and SLF4J to 2.0.6 (#4722)
josephzunigadaly Sep 29, 2023
3c567ed
CORE-17010 Added polling consumers and committing offsets to Multi-So…
mbrkic-r3 Sep 29, 2023
e517058
CORE-17397: Turn off tracing logs in kubernetes (#4733)
josephzunigadaly Sep 29, 2023
ac5a90a
CORE-17386 - Add flow session timeout scheduled task (#4740)
driessamyn Sep 29, 2023
2caab9f
CORE-17391 Set registration state command metadata (#4730)
charlieR3 Sep 29, 2023
0e4879a
CORE-16797 Apply Kafka topic configurations (#4710)
bpaunescu Sep 29, 2023
a78513c
CORE-16237 Verification rpc processor (#4698)
emilybowe Oct 2, 2023
a88c689
CORE-16234 Persistence rpc processor (#4728)
emilybowe Oct 2, 2023
5316b66
CORE-17357: Create a ScheduledTaskHandler for processing scheduled ta…
JamesHR3 Oct 2, 2023
f323003
Add unit and integration test verifying we can use keys and a composi…
blsemo Oct 2, 2023
1711728
CORE-15064: Rename `-pfv` option in `Verify` CLI plugin (#4749)
vkolomeyko Oct 2, 2023
25a56a4
CORE-17364: Update version of Snappy to address CVE-2023-43642 (#4753)
vkolomeyko Oct 2, 2023
c1c4746
CORE-17358: Add a class for cleaning up mapper states (#4743)
JamesHR3 Oct 2, 2023
43ea657
CORE-16320 - add all state manager config parameters into worker depl…
conalsmith-r3 Oct 2, 2023
56e1602
CORE-16201 Multi-Source Event Mediator - Message Processor Task (#4747)
mbrkic-r3 Oct 2, 2023
e4aeea0
ES-1414 Update PreviewTest.kt to use toURI() call (#4752)
ronanbrowne Oct 2, 2023
2a2006a
CORE-15073: vNodeCreate connection strings into data class (#4748)
BenYip123 Oct 3, 2023
4cc0632
CORE-17398 Remove polling in locally hosted identity lookup (#4736)
williamvigorr3 Oct 3, 2023
4f492b0
CORE-17448 Configure schedule for plugins smoke tests CI job (#4764)
YashNabar Oct 3, 2023
6a29a06
CORE-17387 - flow checkpoint maintenance events (#4746)
driessamyn Oct 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
152 changes: 152 additions & 0 deletions .ci/JenkinsfileCombinedWorkerPluginsSmokeTests
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
@Library('[email protected]') _

import groovy.transform.Field
import com.r3.build.utils.PipelineUtils
import com.r3.build.utils.GitUtils

@Field
String postgresHost = 'localhost'
@Field
String postgresPort = '5432'
@Field
String postgresCredentialsId = 'e2e-postgresql-credentials'
@Field
String postgresDb = "test_${UUID.randomUUID().toString().replace("-", "")}"

@Field
PipelineUtils pipelineUtils = new PipelineUtils(this)

@Field
GitUtils gitUtils = new GitUtils(this)

pipeline {
agent {
docker {
image 'build-zulu-openjdk:17'
label 'docker'
registryUrl 'https://engineering-docker.software.r3.com/'
registryCredentialsId 'artifactory-credentials'
args '-v /tmp:/host_tmp '
alwaysPull true
}
}

triggers {
cron(gitUtils.isReleaseBranch() ? 'H 00 * * *' : '')
}

environment {
ARTIFACTORY_CREDENTIALS = credentials('artifactory-credentials')
BUILD_CACHE_CREDENTIALS = credentials('gradle-ent-cache-credentials')
POSTGRES_CREDENTIALS = credentials('e2e-postgresql-credentials')
BUILD_CACHE_USERNAME = "${env.BUILD_CACHE_CREDENTIALS_USR}"
BUILD_CACHE_PASSWORD = "${env.BUILD_CACHE_CREDENTIALS_PSW}"
CORDA_ARTIFACTORY_USERNAME = "${env.ARTIFACTORY_CREDENTIALS_USR}"
CORDA_ARTIFACTORY_PASSWORD = "${env.ARTIFACTORY_CREDENTIALS_PSW}"
CORDA_DEV_POSTGRES_USER="${env.POSTGRES_CREDENTIALS_USR}"
CORDA_DEV_POSTGRES_PASSWORD="${env.POSTGRES_CREDENTIALS_PSW}"
CORDA_DEV_CLUSTER_DB_NAME="${postgresDb}"
CORDA_USE_CACHE = "corda-remotes"
KUBECONFIG = credentials("e2e-tests-credentials")
CORDA_CLI_USER_HOME = "/tmp/corda-cli-home"
CORDA_GRADLE_SCAN_KEY = credentials('gradle-build-scans-key')
GRADLE_USER_HOME = "/host_tmp/gradle"
CORDA_REVISION = "${env.GIT_COMMIT}"
GRADLE_PERFORMANCE_TUNING = "--max-workers=4 --parallel -Dscan.tag.combined-worker --build-cache -Si"
}

parameters {
string(name: 'COMMIT_TO_CHECKOUT', defaultValue: '', description: 'Commit ID to check out of SCM - leave blank to take head of current branch')
}

options {
buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14'))
timestamps()
}

stages {
stage('check out') {
steps {
script {
gitUtils.checkoutGitRevisionOfTriggeringJob(params.COMMIT_TO_CHECKOUT)
}
}
}
stage('create DBs') {
environment {
KUBECONFIG = credentials('e2e-tests-credentials')
}
steps {
script {
pipelineUtils.createPostgresDatabase(postgresPort, postgresHost, postgresDb, postgresCredentialsId)
}
}
}
stage('build') {
steps {
gradlew (':applications:workers:release:combined-worker:assemble')
}
}
stage('start combined worker') {
environment {
JAR_PATH = "${env.WORKSPACE}/applications/workers/release/combined-worker/build/bin/corda-combined-worker-*.jar"
JDBC_PATH = "${env.WORKSPACE}/applications/workers/release/combined-worker/drivers"
REST_TLS_PATH = "${env.WORKSPACE}/applications/workers/release/combined-worker/tls/rest/rest_worker.pfx"
VM_PARAMETERS = "-Dco.paralleluniverse.fibers.verifyInstrumentation=true"
LOG4J_PARAMETERS = "-Dlog4j.configurationFile=log4j2-console.xml"
PROGRAM_PARAMETERS = "--instance-id=0 -mbus.busType=DATABASE -spassphrase=password -ssalt=salt -ddatabase.user=u${postgresDb} -ddatabase.pass=password -ddatabase.jdbc.url=jdbc:postgresql://${postgresHost}:${postgresPort}/${postgresDb} -ddatabase.jdbc.directory=${JDBC_PATH} -rtls.keystore.path=${REST_TLS_PATH} -rtls.keystore.password=mySecretPassword"
WORKING_DIRECTORY = "${env.WORKSPACE}"
}
steps {
sh '''
nohup java ${LOG4J_PARAMETERS} -jar ${VM_PARAMETERS} ${JAR_PATH} ${PROGRAM_PARAMETERS} 2<&1 > workerLogs.txt &
export PROCNO=$!
'''
}
}
stage('connect to combined worker') {
steps {
script {
pipelineUtils.waitForServiceToBeUp('http://localhost:7004/status', 20, 3)
}
}
}
stage('plugin smoke tests') {
options {
timeout(time: 30, unit: 'MINUTES')
}
steps {
gradlew('pluginSmoketest -PisCombinedWorker=true')
}
post {
always {
junit allowEmptyResults: true, testResults: '**/test-results/**/TEST-*.xml'
}
}
}
}
post {
always {
script {
findBuildScans()
pipelineUtils.getPodLogs("postgres")
pipelineUtils.dropPostgresDB(postgresCredentialsId, env.CORDA_DEV_CLUSTER_DB_NAME)
}
archiveArtifacts artifacts: 'forward.txt, workerLogs.txt, podLogs.txt', allowEmptyArchive: true
sh 'rm -f forward.txt workerLogs.txt podLogs.txt'
}
failure {
sendSlackNotifications("danger", "BUILD FAILURE - Combined Worker CLI Plugins Smoke Tests", true, "#corda-corda5-build-notifications")
}
}
}


def gradleCmd() {
return isUnix() ? './gradlew' : './gradlew.bat'
}

def gradlew(String... args) {
def allArgs = args.join(' ')
sh "${gradleCmd()} ${allArgs} ${GRADLE_PERFORMANCE_TUNING}"
}
2 changes: 1 addition & 1 deletion .ci/e2eTests/JenkinsfileCombinedWorker
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pipeline {
junit allowEmptyResults: true, testResults: '**/test-results/**/TEST-*.xml'
}
}
}
}
}
post {
always {
Expand Down
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ CODEOWNERS @corda/blt @corda/corda5-team-leads
/libs/rest/ @corda/rest
/libs/permissions/ @corda/rest
/processors/rest-processor/ @corda/rest
/tools/plugins/initial-rbac/ @corda/rest
/tools/plugins/plugins-rest/ @corda/rest
/tools/plugins/virtual-node/ @corda/rest

# Corda Helm chart for cluster management team
/charts/corda/ @corda/cluster-management
Expand Down
1 change: 1 addition & 0 deletions applications/examples/sandbox-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ dependencies {
runtimeOnly project(':libs:messaging:db-message-bus-impl')
runtimeOnly project(':libs:serialization:serialization-checkpoint-api')
runtimeOnly project(':libs:serialization:serialization-kryo')
runtimeOnly project(':libs:state-manager:state-manager-db-impl')
runtimeOnly project(':testing:group-policy-test-common')
runtimeOnly project(':libs:web:web-impl')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ deploy() {
--render-subchart-notes \
--timeout 10m \
--wait"
corda_args="--install corda -n $namespace oci://corda-os-docker.software.r3.com/helm-charts/release/os/5.0/corda \
corda_args="--install corda -n $namespace oci://corda-os-docker.software.r3.com/helm-charts/release/os/5.1/corda \
--set imagePullSecrets={docker-registry-cred} --set image.tag=$DOCKER_IMAGE_VERSION \
--set image.registry=corda-os-docker.software.r3.com --values $REPO_TOP_LEVEL_DIR/values.yaml \
--set bootstrap.kafka.partitions=$KAFKA_PARTITION_COUNT \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
NAMESPACE_PREFIX="${USER//./}"

# Chart and Docker Image versions to deploy
CORDA_CHART_VERSION="^5.0.0-beta"
CORDA_CHART_VERSION="^5.1.0-beta"
REPO_TOP_LEVEL_DIR=$(cd "$SCRIPT_DIR"; git rev-parse --show-toplevel)
CORDA_VERSION="$(cat $REPO_TOP_LEVEL_DIR/gradle.properties | grep cordaProductVersion | awk -F= '{print $2}' | xargs).0"
if [ -z $DOCKER_IMAGE_VERSION ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ dependencies {
implementation project(':libs:crypto:crypto-config-impl')
implementation project(':libs:crypto:crypto-core')
implementation project(':libs:crypto:crypto-impl')
implementation project(":libs:lifecycle:registry")
implementation project(':libs:platform-info')
implementation project(':libs:tracing')
implementation project(':libs:web:web')
Expand Down
Loading