Skip to content

Commit 87f59aa

Browse files
feat: run local-environment dolos smoke tests in CI
1 parent ccf95d0 commit 87f59aa

File tree

7 files changed

+165
-7
lines changed

7 files changed

+165
-7
lines changed

.github/actions/tests/local-environment-tests/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ inputs:
1111
description: "PC Artifact Tag"
1212
required: true
1313
markers:
14-
description: 'Run tests by markers (-m). Available markers: ci, smoke, rpc, reserve, governed_map, delegator_rewards, ariadne, wizards or full'
14+
description: 'Run tests by markers (-m). Available markers: ci, smoke, rpc, reserve, governed_map, delegator_rewards, ariadne, wizards, dolos or full'
1515
required: true
1616

1717
outputs: {}
@@ -42,6 +42,8 @@ runs:
4242
cd dev/local-environment
4343
if [ "${{ inputs.markers }}" = "wizards" ]; then
4444
bash setup.sh --non-interactive --postgres-password azMpOp4mTqhlKDmgCVQr --node-image ${{ inputs.image }} --tests -d 5
45+
elif [ "${{ inputs.markers }}" = "dolos" ]; then
46+
bash setup.sh --non-interactive --postgres-password azMpOp4mTqhlKDmgCVQr --node-image ${{ inputs.image }} --tests -d 6
4547
else
4648
bash setup.sh --non-interactive --postgres-password azMpOp4mTqhlKDmgCVQr --node-image ${{ inputs.image }} --tests
4749
fi

.github/actions/tests/run-e2e-tests/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ runs:
5656
markers_switch=""
5757
if [ "${{ inputs.markers }}" = "wizards" ]; then
5858
markers_switch="-m smoke"
59+
elif [ "${{ inputs.markers }}" = "dolos" ]; then
60+
markers_switch="-m smoke"
5961
elif [ -n "${{ inputs.markers }}" ]; then
6062
markers_switch="-m '${{ inputs.markers }}'"
6163
fi

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ jobs:
426426
runs-on: ubuntu-latest
427427
strategy:
428428
matrix:
429-
markers: [ci, smoke, rpc, reserve, governed_map, delegator_rewards, ariadne, wizards]
429+
markers: [ci, smoke, rpc, reserve, governed_map, delegator_rewards, ariadne, wizards, dolos]
430430
steps:
431431
- name: Checkout
432432
uses: actions/checkout@v4
Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
partner-chains-node-1:
2+
container_name: partner-chains-node-1
3+
image: ${PARTNER_CHAINS_NODE_IMAGE}
4+
platform: linux/amd64
5+
volumes:
6+
- shared-volume:/shared
7+
- partner-chains-node-1-data:/data
8+
- ./configurations/partner-chains-nodes/partner-chains-node-1/entrypoint.sh:/entrypoint.sh
9+
- ./configurations/partner-chains-nodes/partner-chains-node-1/keystore:/keystore
10+
environment:
11+
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
12+
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
13+
CARDANO_DATA_SOURCE: "dolos"
14+
CARDANO_SECURITY_PARAMETER: "5"
15+
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
16+
MC__FIRST_EPOCH_NUMBER: "0"
17+
MC__FIRST_SLOT_NUMBER: "0"
18+
MC__EPOCH_DURATION_MILLIS: "120000"
19+
BLOCK_STABILITY_MARGIN: "0"
20+
entrypoint: ["/bin/bash", "/entrypoint.sh"]
21+
ports:
22+
- "30333:30333"
23+
- "9933:9933"
24+
- "9615:9615"
25+
restart: always
26+
deploy:
27+
resources:
28+
limits:
29+
cpus: ${CPU_PARTNER_CHAINS_NODE:-}
30+
memory: ${MEM_PARTNER_CHAINS_NODE:-}
31+
32+
partner-chains-node-2:
33+
container_name: partner-chains-node-2
34+
image: ${PARTNER_CHAINS_NODE_IMAGE}
35+
platform: linux/amd64
36+
volumes:
37+
- partner-chains-node-2-data:/data
38+
- shared-volume:/shared
39+
- ./configurations/partner-chains-nodes/partner-chains-node-2/entrypoint.sh:/entrypoint.sh
40+
- ./configurations/partner-chains-nodes/partner-chains-node-2/keystore:/keystore
41+
environment:
42+
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
43+
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
44+
CARDANO_DATA_SOURCE: "dolos"
45+
CARDANO_SECURITY_PARAMETER: "5"
46+
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
47+
MC__FIRST_EPOCH_NUMBER: "0"
48+
MC__FIRST_SLOT_NUMBER: "0"
49+
MC__EPOCH_DURATION_MILLIS: "120000"
50+
BLOCK_STABILITY_MARGIN: "0"
51+
entrypoint: ["/bin/bash", "/entrypoint.sh"]
52+
ports:
53+
- "30334:30334"
54+
- "9934:9934"
55+
- "9616:9616"
56+
restart: always
57+
deploy:
58+
resources:
59+
limits:
60+
cpus: ${CPU_PARTNER_CHAINS_NODE:-}
61+
memory: ${MEM_PARTNER_CHAINS_NODE:-}
62+
63+
partner-chains-node-3:
64+
container_name: partner-chains-node-3
65+
image: ${PARTNER_CHAINS_NODE_IMAGE}
66+
platform: linux/amd64
67+
volumes:
68+
- partner-chains-node-3-data:/data
69+
- shared-volume:/shared
70+
- ./configurations/partner-chains-nodes/partner-chains-node-3/entrypoint.sh:/entrypoint.sh
71+
- ./configurations/partner-chains-nodes/partner-chains-node-3/keystore:/keystore
72+
environment:
73+
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
74+
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
75+
CARDANO_DATA_SOURCE: "dolos"
76+
CARDANO_SECURITY_PARAMETER: "5"
77+
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
78+
MC__FIRST_EPOCH_NUMBER: "0"
79+
MC__FIRST_SLOT_NUMBER: "0"
80+
MC__EPOCH_DURATION_MILLIS: "120000"
81+
BLOCK_STABILITY_MARGIN: "0"
82+
entrypoint: ["/bin/bash", "/entrypoint.sh"]
83+
ports:
84+
- "30335:30335"
85+
- "9935:9935"
86+
- "9617:9617"
87+
restart: always
88+
deploy:
89+
resources:
90+
limits:
91+
cpus: ${CPU_PARTNER_CHAINS_NODE:-}
92+
memory: ${MEM_PARTNER_CHAINS_NODE:-}
93+
94+
partner-chains-node-4:
95+
container_name: partner-chains-node-4
96+
image: ${PARTNER_CHAINS_NODE_IMAGE}
97+
platform: linux/amd64
98+
volumes:
99+
- partner-chains-node-4-data:/data
100+
- shared-volume:/shared
101+
- ./configurations/partner-chains-nodes/partner-chains-node-4/entrypoint.sh:/entrypoint.sh
102+
- ./configurations/partner-chains-nodes/partner-chains-node-4/keystore:/keystore
103+
- ./configurations/partner-chains-nodes/partner-chains-node-4/network:/network
104+
environment:
105+
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
106+
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
107+
CARDANO_DATA_SOURCE: "dolos"
108+
CARDANO_SECURITY_PARAMETER: "5"
109+
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
110+
MC__FIRST_EPOCH_NUMBER: "0"
111+
MC__FIRST_SLOT_NUMBER: "0"
112+
MC__EPOCH_DURATION_MILLIS: "120000"
113+
BLOCK_STABILITY_MARGIN: "0"
114+
entrypoint: ["/bin/bash", "/entrypoint.sh"]
115+
ports:
116+
- "30336:30336"
117+
- "9936:9936"
118+
- "9618:9618"
119+
restart: always
120+
deploy:
121+
resources:
122+
limits:
123+
cpus: ${CPU_PARTNER_CHAINS_NODE:-}
124+
memory: ${MEM_PARTNER_CHAINS_NODE:-}
125+
126+
partner-chains-node-5:
127+
container_name: partner-chains-node-5
128+
image: ${PARTNER_CHAINS_NODE_IMAGE}
129+
platform: linux/amd64
130+
volumes:
131+
- partner-chains-node-5-data:/data
132+
- shared-volume:/shared
133+
- ./configurations/partner-chains-nodes/partner-chains-node-5/entrypoint.sh:/entrypoint.sh
134+
- ./configurations/partner-chains-nodes/partner-chains-node-5/keystore:/keystore
135+
- ./configurations/partner-chains-nodes/partner-chains-node-5/network:/network
136+
environment:
137+
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
138+
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
139+
CARDANO_DATA_SOURCE: "dolos"
140+
CARDANO_SECURITY_PARAMETER: "5"
141+
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
142+
MC__FIRST_EPOCH_NUMBER: "0"
143+
MC__FIRST_SLOT_NUMBER: "0"
144+
MC__EPOCH_DURATION_MILLIS: "120000"
145+
BLOCK_STABILITY_MARGIN: "0"
146+
entrypoint: ["/bin/bash", "/entrypoint.sh"]
147+
ports:
148+
- "30337:30337"
149+
- "9937:9937"
150+
- "9619:9619"
151+
restart: always
152+
deploy:
153+
resources:
154+
limits:
155+
cpus: ${CPU_PARTNER_CHAINS_NODE:-}
156+
memory: ${MEM_PARTNER_CHAINS_NODE:-}

dev/local-environment/modules/partner-chains-nodes.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
- ./configurations/partner-chains-nodes/partner-chains-node-1/keystore:/keystore
1111
environment:
1212
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
13-
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
1413
CARDANO_DATA_SOURCE: "db-sync"
1514
CARDANO_SECURITY_PARAMETER: "5"
1615
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
@@ -41,7 +40,6 @@
4140
- ./configurations/partner-chains-nodes/partner-chains-node-2/keystore:/keystore
4241
environment:
4342
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
44-
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
4543
CARDANO_DATA_SOURCE: "db-sync"
4644
CARDANO_SECURITY_PARAMETER: "5"
4745
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
@@ -72,7 +70,6 @@
7270
- ./configurations/partner-chains-nodes/partner-chains-node-3/keystore:/keystore
7371
environment:
7472
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
75-
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
7673
CARDANO_DATA_SOURCE: "db-sync"
7774
CARDANO_SECURITY_PARAMETER: "5"
7875
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
@@ -104,7 +101,6 @@
104101
- ./configurations/partner-chains-nodes/partner-chains-node-4/network:/network
105102
environment:
106103
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
107-
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
108104
CARDANO_DATA_SOURCE: "db-sync"
109105
CARDANO_SECURITY_PARAMETER: "5"
110106
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
@@ -136,7 +132,6 @@
136132
- ./configurations/partner-chains-nodes/partner-chains-node-5/network:/network
137133
environment:
138134
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
139-
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
140135
CARDANO_DATA_SOURCE: "db-sync"
141136
CARDANO_SECURITY_PARAMETER: "5"
142137
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"

dev/local-environment/setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@ create_docker_compose() {
386386
cat ./modules/cardano.txt >> docker-compose.yml
387387
cat ./modules/ogmios.txt >> docker-compose.yml
388388
cat ./modules/dolos.txt >> docker-compose.yml
389+
cat ./modules/partner-chains-nodes-dolos.txt >> docker-compose.yml
390+
cat ./modules/partner-chains-setup.txt >> docker-compose.yml
389391
;;
390392
0)
391393
echo -e "Including all services.\n"

e2e-tests/pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ markers =
1010
reserve: reserve management system
1111
governed_map: arbitrary data stored on the main chain
1212
delegator_rewards: ADA delegator rewards
13+
dolos: tests that require dolos data source
1314

1415
# helper tags
1516
skip_on_new_chain: skip test on new chain (less than 2 MC epochs have passed)

0 commit comments

Comments
 (0)