-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(weaver): upgrade to corda 4.12 and jvm 17
* upgrade gradle to 7.6.1 * upgrade to kotlin 1.9 * upgrade corda dependencies to 4.12 and java to 17 * update java to 17 for corda workflows * generate corda 4.12 testnet artifacts * use bootstrap-states.csv to init corda SimpleStates * added FREE_UP_GITHUB_RUNNER_DISK_SPACE_DISABLED to free space on data-sharing-docker-local job Signed-off-by: Sandeep Nishad <[email protected]>
- Loading branch information
1 parent
9fef336
commit 6d2d8db
Showing
201 changed files
with
2,879 additions
and
1,632 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,10 +47,10 @@ jobs: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up JDK 8 | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
# CORDA NETWORK | ||
|
@@ -144,10 +144,10 @@ jobs: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up JDK 8 | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Build Java Protos | ||
|
@@ -248,10 +248,10 @@ jobs: | |
- './weaver/**' | ||
- '.github/workflows/test_weaver-asset-exchange-corda.yaml' | ||
- name: Set up JDK 8 | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
# CORDA NETWORK | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,10 +50,10 @@ jobs: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up JDK 8 | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Set up Go | ||
|
@@ -85,9 +85,7 @@ jobs: | |
working-directory: weaver/tests/network-setups/corda | ||
|
||
- name: Start Corda Network | ||
run: | | ||
sed -i "/docker logs corda_partya_1 -f/"' s/^/#/' "scripts/start-nodes.sh" | ||
make start &> corda-net.out & | ||
run: make start &> corda-net.out & | ||
working-directory: weaver/tests/network-setups/corda | ||
|
||
# FABRIC NETWORK | ||
|
@@ -695,10 +693,10 @@ jobs: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up JDK 8 | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Set up Go | ||
|
@@ -789,9 +787,7 @@ jobs: | |
|
||
# CORDA NETWORK | ||
- name: Start Corda Network | ||
run: | | ||
sed -i "/docker logs corda_partya_1 -f/"' s/^/#/' "scripts/start-nodes.sh" | ||
make start-local &> corda-net.out & | ||
run: make start-local &> corda-net.out & | ||
working-directory: weaver/tests/network-setups/corda | ||
|
||
# FABRIC NETWORK | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,10 +43,10 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up JDK 8 | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Build Protos (Local) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,10 +50,10 @@ jobs: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up JDK 8 | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Set up Go | ||
|
@@ -85,9 +85,7 @@ jobs: | |
working-directory: weaver/tests/network-setups/corda | ||
|
||
- name: Start Corda Network | ||
run: | | ||
sed -i "/docker logs corda_partya_1 -f/"' s/^/#/' "scripts/start-nodes.sh" | ||
make start &> corda-net.out & | ||
run: make start &> corda-net.out & | ||
working-directory: weaver/tests/network-setups/corda | ||
|
||
# FABRIC NETWORK | ||
|
@@ -244,11 +242,11 @@ jobs: | |
# CORDA2-CORDA | ||
NETWORK_NAME=Corda_Network2 CORDA_PORT=30006 ./clients/build/install/clients/bin/clients request-state localhost:9082 relay-corda:9081/Corda_Network/corda_partya_1:10003#com.cordaSimpleApplication.flow.GetStateByKey:C 1> tmp.out | ||
cat tmp.out | grep "SimpleState(key=C, value=\[SimpleState(key=C, value=20" && COUNT=$(( COUNT + 1 )) && echo "PASS" | ||
cat tmp.out | grep "SimpleState(key=C, value=\[SimpleState(key=C, value=6" && COUNT=$(( COUNT + 1 )) && echo "PASS" | ||
cat tmp.out | ||
NETWORK_NAME=Corda_Network2 CORDA_PORT=30006 ./clients/build/install/clients/bin/clients get-state C 1> tmp.out | ||
cat tmp.out | grep "SimpleState(key=C, value=\[SimpleState(key=C, value=20" && COUNT=$(( COUNT + 1 )) && echo "PASS" | ||
cat tmp.out | grep "SimpleState(key=C, value=\[SimpleState(key=C, value=6" && COUNT=$(( COUNT + 1 )) && echo "PASS" | ||
cat tmp.out | ||
# CORDA - FABRIC1 | ||
|
@@ -409,7 +407,9 @@ jobs: | |
data-sharing-docker-local: | ||
needs: check_code_changed | ||
if: inputs.run_all == 'true' || needs.check_code_changed.outputs.status == 'true' | ||
# if: ${{ false }} | ||
env: | ||
FREE_UP_GITHUB_RUNNER_DISK_SPACE_DISABLED: false | ||
|
||
# The type of runner that the job will run on | ||
runs-on: ubuntu-22.04 | ||
|
||
|
@@ -426,10 +426,10 @@ jobs: | |
- './weaver/**' | ||
- '.github/workflows/test_weaver-data-sharing.yaml' | ||
- name: Set up JDK 8 | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Set up Go | ||
|
@@ -505,9 +505,7 @@ jobs: | |
working-directory: weaver/core/identity-management/iin-agent | ||
|
||
- name: Start Corda Network | ||
run: | | ||
sed -i "/docker logs corda_partya_1 -f/"' s/^/#/' "scripts/start-nodes.sh" | ||
make start-local &> corda-net.out & | ||
run: make start-local &> corda-net.out & | ||
working-directory: weaver/tests/network-setups/corda | ||
|
||
# FABRIC NETWORK | ||
|
@@ -669,11 +667,11 @@ jobs: | |
# CORDA2-CORDA | ||
NETWORK_NAME=Corda_Network2 CORDA_PORT=30006 ./clients/build/install/clients/bin/clients request-state --wkey=C localhost:9082 relay-corda:9081/Corda_Network/corda_partya_1:10003#com.cordaSimpleApplication.flow.GetStateByKey:C 1> tmp.out | ||
cat tmp.out | grep "SimpleState(key=C, value=\[SimpleState(key=C, value=20" && COUNT=$(( COUNT + 1 )) && echo "PASS" | ||
cat tmp.out | grep "SimpleState(key=C, value=\[SimpleState(key=C, value=6" && COUNT=$(( COUNT + 1 )) && echo "PASS" | ||
cat tmp.out | ||
NETWORK_NAME=Corda_Network2 CORDA_PORT=30006 ./clients/build/install/clients/bin/clients get-state C 1> tmp.out | ||
cat tmp.out | grep "SimpleState(key=C, value=\[SimpleState(key=C, value=20" && COUNT=$(( COUNT + 1 )) && echo "PASS" | ||
cat tmp.out | grep "SimpleState(key=C, value=\[SimpleState(key=C, value=6" && COUNT=$(( COUNT + 1 )) && echo "PASS" | ||
cat tmp.out | ||
# CORDA - FABRIC1 | ||
|
@@ -851,10 +849,10 @@ jobs: | |
- './weaver/**' | ||
- '.github/workflows/test_weaver-data-sharing.yaml' | ||
- name: Set up JDK 8 | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Set up Go | ||
|
@@ -945,9 +943,7 @@ jobs: | |
|
||
# CORDA NETWORK | ||
- name: Start Corda Network | ||
run: | | ||
sed -i "/docker logs corda_partya_1 -f/"' s/^/#/' "scripts/start-nodes.sh" | ||
make start-local &> corda-net.out & | ||
run: make start-local &> corda-net.out & | ||
working-directory: weaver/tests/network-setups/corda | ||
|
||
# FABRIC NETWORK | ||
|
@@ -1097,11 +1093,11 @@ jobs: | |
# CORDA2-CORDA | ||
NETWORK_NAME=Corda_Network2 CORDA_PORT=30006 ./clients/build/install/clients/bin/clients request-state --wkey=C localhost:9082 localhost:9081/Corda_Network/localhost:10006#com.cordaSimpleApplication.flow.GetStateByKey:C 1> tmp.out | ||
cat tmp.out | grep "SimpleState(key=C, value=\[SimpleState(key=C, value=20" && COUNT=$(( COUNT + 1 )) && echo "PASS" | ||
cat tmp.out | grep "SimpleState(key=C, value=\[SimpleState(key=C, value=6" && COUNT=$(( COUNT + 1 )) && echo "PASS" | ||
cat tmp.out | ||
NETWORK_NAME=Corda_Network2 CORDA_PORT=30006 ./clients/build/install/clients/bin/clients get-state C 1> tmp.out | ||
cat tmp.out | grep "SimpleState(key=C, value=\[SimpleState(key=C, value=20" && COUNT=$(( COUNT + 1 )) && echo "PASS" | ||
cat tmp.out | grep "SimpleState(key=C, value=\[SimpleState(key=C, value=6" && COUNT=$(( COUNT + 1 )) && echo "PASS" | ||
cat tmp.out | ||
# CORDA - FABRIC1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,10 +133,10 @@ jobs: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up JDK 8 | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Build Protos (Local) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,12 +43,6 @@ jobs: | |
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up JDK 8 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
distribution: 'adopt' | ||
|
||
- name: Set up Go | ||
uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,10 @@ jobs: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up JDK 8 | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Generate github.properties | ||
|
@@ -60,10 +60,10 @@ jobs: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up JDK 8 | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Generate github.properties | ||
|
@@ -100,10 +100,10 @@ jobs: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up JDK 8 | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '8' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Generate github.properties | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+818 Bytes
(100%)
weaver/common/protos-java-kt/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion
3
weaver/common/protos-java-kt/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.