Skip to content

Commit 6c5bc8e

Browse files
committed
update comparision tests, fix cometmock for cases, fix name for appname
1 parent beb346d commit 6c5bc8e

File tree

583 files changed

+23609
-68601
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

583 files changed

+23609
-68601
lines changed

packages/packages/generator/__tests__/__output__/builder-tests/build-chain/configmaps/setup-scripts.yaml

Lines changed: 50 additions & 667 deletions
Large diffs are not rendered by default.

packages/packages/generator/__tests__/__output__/builder-tests/build-chain/persistencecore/genesis-service.yaml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,41 +15,37 @@ metadata:
1515
spec:
1616
clusterIP: None
1717
ports:
18-
- name: p2p
19-
port: 26656
20-
protocol: TCP
21-
targetPort: '26656'
2218
- name: address
2319
port: 26658
2420
protocol: TCP
25-
targetPort: '26658'
21+
targetPort: 26658
2622
- name: grpc
2723
port: 9090
2824
protocol: TCP
29-
targetPort: '9090'
25+
targetPort: 9090
3026
- name: grpc-web
3127
port: 9091
3228
protocol: TCP
33-
targetPort: '9091'
29+
targetPort: 9091
30+
- name: p2p
31+
port: 26656
32+
protocol: TCP
33+
targetPort: 26656
3434
- name: rest
3535
port: 1317
3636
protocol: TCP
37-
targetPort: '1317'
37+
targetPort: 1317
3838
- name: rpc
3939
port: 26657
4040
protocol: TCP
41-
targetPort: '26657'
42-
- name: metrics
43-
port: 26660
44-
protocol: TCP
45-
targetPort: '26660'
41+
targetPort: 26657
4642
- name: exposer
4743
port: 8081
4844
protocol: TCP
49-
targetPort: '8081'
45+
targetPort: 8081
5046
- name: faucet
5147
port: 8000
5248
protocol: TCP
53-
targetPort: '8000'
49+
targetPort: 8000
5450
selector:
5551
app.kubernetes.io/name: core-1-genesis

packages/packages/generator/__tests__/__output__/builder-tests/build-chain/persistencecore/genesis-statefulset.yaml

Lines changed: 47 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,12 @@ spec:
4343
command:
4444
- bash
4545
- '-c'
46-
- >-
46+
- |-
4747
# Install cosmovisor
48-
49-
go install
50-
github.com/cosmos/cosmos-sdk/cosmovisor/cmd/[email protected]
51-
48+
go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/[email protected]
5249
5350
# Build genesis
54-
55-
UPGRADE_NAME=genesis CODE_TAG=v7.0.0 bash -e
56-
/scripts/build-chain.sh
51+
UPGRADE_NAME=genesis CODE_TAG=v7.0.0 bash -e /scripts/build-chain.sh
5752
env:
5853
- name: CODE_REF
5954
value: https://github.com/persistenceOne/persistenceCore
@@ -111,6 +106,22 @@ spec:
111106
value: persistenceCore
112107
- name: CHAIN_ID
113108
value: core-1
109+
- name: TIME_IOTA_MS
110+
value: '10'
111+
- name: TIMEOUT_PROPOSE
112+
value: 400ms
113+
- name: TIMEOUT_PROPOSE_DELTA
114+
value: 400ms
115+
- name: TIMEOUT_PREVOTE
116+
value: 400ms
117+
- name: TIMEOUT_PREVOTE_DELTA
118+
value: 400ms
119+
- name: TIMEOUT_PRECOMMIT
120+
value: 400ms
121+
- name: TIMEOUT_PRECOMMIT_DELTA
122+
value: 400ms
123+
- name: TIMEOUT_COMMIT
124+
value: 800ms
114125
- name: KEYS_CONFIG
115126
value: /configs/keys.json
116127
- name: FAUCET_ENABLED
@@ -122,47 +133,31 @@ spec:
122133
command:
123134
- bash
124135
- '-c'
125-
- >-
136+
- |-
126137
VAL_INDEX=${HOSTNAME##*-}
127-
128138
echo "Validator Index: $VAL_INDEX"
129139
130-
131140
cp $CHAIN_DIR/cosmovisor/genesis/bin/$CHAIN_BIN /usr/bin
132141
133-
134142
if [ -f $CHAIN_DIR/config/genesis.json ]; then
135143
echo "Genesis file exists, exiting init container"
136144
exit 0
137145
fi
138146
139-
140147
echo "Running setup genesis script..."
141-
142148
bash -e /scripts/create-genesis.sh
143-
144149
bash -e /scripts/update-genesis.sh
145150
146-
147151
echo "Create node id json file"
148-
149152
NODE_ID=$($CHAIN_BIN tendermint show-node-id)
150-
151153
echo '{"node_id":"'$NODE_ID'"}' > $CHAIN_DIR/config/node_id.json
152154
153-
154155
echo "Create consensus key json file"
155-
156-
$CHAIN_BIN tendermint show-validator >
157-
$CHAIN_DIR/config/consensus_key.json
158-
156+
$CHAIN_BIN tendermint show-validator > $CHAIN_DIR/config/consensus_key.json
159157
cat $CHAIN_DIR/config/consensus_key.json
160158
161-
162159
echo "Add custom accounts and balances"
163-
164-
CHAIN_GENESIS_CMD=$($CHAIN_BIN 2>&1 | grep -q "genesis-related
165-
subcommands" && echo "genesis" || echo "")
160+
CHAIN_GENESIS_CMD=$($CHAIN_BIN 2>&1 | grep -q "genesis-related subcommands" && echo "genesis" || echo "")
166161
resources:
167162
limits:
168163
cpu: '2'
@@ -197,6 +192,22 @@ spec:
197192
value: persistenceCore
198193
- name: CHAIN_ID
199194
value: core-1
195+
- name: TIME_IOTA_MS
196+
value: '10'
197+
- name: TIMEOUT_PROPOSE
198+
value: 400ms
199+
- name: TIMEOUT_PROPOSE_DELTA
200+
value: 400ms
201+
- name: TIMEOUT_PREVOTE
202+
value: 400ms
203+
- name: TIMEOUT_PREVOTE_DELTA
204+
value: 400ms
205+
- name: TIMEOUT_PRECOMMIT
206+
value: 400ms
207+
- name: TIMEOUT_PRECOMMIT_DELTA
208+
value: 400ms
209+
- name: TIMEOUT_COMMIT
210+
value: 800ms
200211
- name: KEYS_CONFIG
201212
value: /configs/keys.json
202213
- name: METRICS
@@ -309,7 +320,7 @@ spec:
309320
periodSeconds: 10
310321
timeoutSeconds: 15
311322
- name: exposer
312-
image: ghcr.io/cosmology-tech/starship/exposer:latest
323+
image: ghcr.io/hyperweb-io/starship/exposer:20250205-544757d
313324
imagePullPolicy: IfNotPresent
314325
env:
315326
- name: GENESIS_HOST
@@ -340,11 +351,11 @@ spec:
340351
- exposer
341352
resources:
342353
limits:
343-
cpu: '0.1'
344-
memory: 128M
354+
cpu: '0.2'
355+
memory: 200M
345356
requests:
346-
cpu: '0.1'
347-
memory: 128M
357+
cpu: '0.2'
358+
memory: 200M
348359
volumeMounts:
349360
- mountPath: /root/.persistenceCore
350361
name: node
@@ -367,13 +378,10 @@ spec:
367378
command:
368379
- bash
369380
- '-c'
370-
- >-
381+
- |-
371382
CREDIT_COINS=""
372-
373383
FEES=""
374-
375384
for coin in ${COINS//,/ }
376-
377385
do
378386
amt="${coin//[!0-9]/}"
379387
denom="${coin//[0-9]/}"
@@ -396,20 +404,14 @@ spec:
396404
fi
397405
done
398406
399-
400-
export FAUCET_MNEMONIC=$(jq -r ".faucet[0].mnemonic"
401-
/configs/keys.json)
402-
407+
export FAUCET_MNEMONIC=$(jq -r ".faucet[0].mnemonic" /configs/keys.json)
403408
404409
export | grep "FAUCET"
405410
406-
407-
until bash -e /scripts/chain-rpc-ready.sh http://localhost:26657;
408-
do
411+
until bash -e /scripts/chain-rpc-ready.sh http://localhost:26657; do
409412
sleep 10
410413
done
411414
412-
413415
/faucet/faucet --credit-coins="$CREDIT_COINS" --chain-fees="$FEES"
414416
resources:
415417
limits:
@@ -428,7 +430,7 @@ spec:
428430
readinessProbe:
429431
httpGet:
430432
path: /status
431-
port: '8000'
433+
port: 8000
432434
initialDelaySeconds: 30
433435
periodSeconds: 10
434436
volumes:

0 commit comments

Comments
 (0)