Skip to content

Commit

Permalink
chore(chart)!: dusk-8 chart version updates (#1223)
Browse files Browse the repository at this point in the history
## Summary
Updates all charts to use latest releases for dusk-8, and updates to the
latest CometBFT release.

## Background
New releases for services were cut.

## Changes
- Update all chart versions for astria releases, migrate dev mode to
standard behaivior.
- Update to CometBFT 0.38.8
- Update default sequencer chart to not have any dev dependent fields
filled out.

## Testing
running smoke test locally, plus CI runs
  • Loading branch information
joroshiba authored Jun 27, 2024
1 parent 8c04721 commit e73db63
Show file tree
Hide file tree
Showing 18 changed files with 102 additions and 217 deletions.
6 changes: 4 additions & 2 deletions charts/deploy.just
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ wait-for-ingress-controller:
validatorName := "single"
deploy-sequencer name=validatorName:
helm dependency update charts/sequencer > /dev/null
helm install --debug \
{{ replace('-f dev/values/validators/#.yml' , '#', name) }} \
helm install \
-f dev/values/validators/all.yml \
-f dev/values/validators/{{name}}.yml \
-n astria-validator-{{name}} --create-namespace \
{{name}}-sequencer-chart ./charts/sequencer
deploy-sequencers: (deploy-sequencer "node0") (deploy-sequencer "node1") (deploy-sequencer "node2")
Expand Down Expand Up @@ -147,6 +148,7 @@ deploy-smoke-test tag=defaultTag:
@helm dependency update charts/evm-rollup > /dev/null
@echo "Setting up single astria sequencer..." && helm install \
-n astria-validator-single single-sequencer-chart ./charts/sequencer \
-f dev/values/validators/all.yml \
-f dev/values/validators/single.yml \
{{ if tag != '' { replace('--set images.sequencer.devTag=# --set sequencer-relayer.images.sequencerRelayer.devTag=#', '#', tag) } else { '' } }} \
--create-namespace > /dev/null
Expand Down
4 changes: 2 additions & 2 deletions charts/evm-rollup/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.20.3
version: 0.21.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.11.0"
appVersion: "0.12.0"

dependencies:
- name: celestia-node
Expand Down
6 changes: 3 additions & 3 deletions charts/evm-rollup/files/genesis/geth-genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
"astriaCelestiaHeightVariance": {{ toString .Values.config.celestia.heightVariance | replace "\"" "" }},
"astriaBridgeAddresses": {{ toPrettyJson .Values.config.rollup.genesis.bridgeAddresses | indent 8 | trim }},
"astriaFeeCollectors": {{ toPrettyJson .Values.config.rollup.genesis.feeCollectors | indent 8 | trim }},
"astriaEIP1559Params": {{ toPrettyJson .Values.config.rollup.genesis.eip1559Params | indent 8 | trim }}
{{- if not .Values.global.dev }}
{{- else }},
"astriaEIP1559Params": {{ toPrettyJson .Values.config.rollup.genesis.eip1559Params | indent 8 | trim }},
"astriaBridgeSenderAddress": "{{ .Values.config.rollup.genesis.bridgeSenderAddress }}",
"astriaSequencerHrpPrefix": "{{ .Values.config.sequencer.addressPrefixes.base }}"
{{- if not .Values.global.dev }}
{{- else }}
{{- end }}
},
"difficulty": "0",
Expand Down
4 changes: 2 additions & 2 deletions charts/evm-rollup/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ data:
ASTRIA_COMPOSER_MAX_BYTES_PER_BUNDLE: "{{ .Values.config.rollup.maxBytesPerBundle }}"
ASTRIA_COMPOSER_BUNDLE_QUEUE_CAPACITY: "{{ .Values.config.rollup.bundleQueueCapacity }}"
ASTRIA_COMPOSER_MAX_SUBMIT_INTERVAL_MS: "{{ .Values.config.rollup.maxSubmitInterval }}"
ASTRIA_COMPOSER_SEQUENCER_ADDRESS_PREFIX: "{{ .Values.config.sequencer.addressPrefixes.base }}"
ASTRIA_COMPOSER_FEE_ASSET: "{{ .Values.config.sequencer.nativeAssetBaseDenomination }}"
ASTRIA_COMPOSER_NO_METRICS: "{{ not .Values.config.rollup.metrics.enabled }}"
ASTRIA_COMPOSER_METRICS_HTTP_LISTENER_ADDR: "0.0.0.0:{{ .Values.ports.composerMetrics }}"
ASTRIA_COMPOSER_FORCE_STDOUT: "{{ .Values.global.useTTY }}"
Expand All @@ -67,8 +69,6 @@ data:
OTEL_SERVICE_NAME: "{{ tpl .Values.config.rollup.otel.serviceNamePrefix . }}-composer"
{{- if not .Values.global.dev }}
{{- else }}
ASTRIA_COMPOSER_SEQUENCER_ADDRESS_PREFIX: "{{ .Values.config.sequencer.addressPrefixes.base }}"
ASTRIA_COMPOSER_FEE_ASSET: "{{ .Values.config.sequencer.nativeAssetBaseDenomination }}"
{{- end }}
---
{{- if .Values.config.faucet.enabled }}
Expand Down
6 changes: 3 additions & 3 deletions charts/evm-rollup/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ global:
images:
geth:
repo: ghcr.io/astriaorg/astria-geth
tag: 0.11.0
tag: 0.12.0
devTag: latest
conductor:
repo: ghcr.io/astriaorg/conductor
tag: "0.17.0"
tag: "0.18.0"
devTag: latest
composer:
repo: ghcr.io/astriaorg/composer
tag: "0.7.0"
tag: "0.8.0"
devTag: latest

# Rollup faucet
Expand Down
4 changes: 2 additions & 2 deletions charts/sequencer-relayer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.8.5
version: 0.9.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.13.0"
appVersion: "0.15.0"

maintainers:
- name: wafflesvonmaple
Expand Down
6 changes: 2 additions & 4 deletions charts/sequencer-relayer/templates/configmaps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ data:
OTEL_EXPORTER_OTLP_TRACE_HEADERS: "{{ .Values.config.relayer.otel.traceHeaders }}"
OTEL_SERVICE_NAME: "{{ tpl .Values.config.relayer.otel.serviceName . }}"
ASTRIA_SEQUENCER_RELAYER_ONLY_INCLUDE_ROLLUPS: "{{ .Values.config.relayer.onlyIncludeRollups }}"
{{- if not .Values.global.dev }}
ASTRIA_SEQUENCER_RELAYER_VALIDATOR_KEY_FILE: /cometbft/config/priv_validator_key.json
ASTRIA_SEQUENCER_RELAYER_RELAY_ONLY_VALIDATOR_KEY_BLOCKS: "false"
{{- else }}
ASTRIA_SEQUENCER_RELAYER_SEQUENCER_CHAIN_ID: "{{ .Values.config.relayer.sequencerChainId }}"
ASTRIA_SEQUENCER_RELAYER_CELESTIA_CHAIN_ID: "{{ .Values.config.relayer.celestiaChainId }}"
{{- if not .Values.global.dev }}
{{- else }}
{{- end }}
---
apiVersion: v1
Expand Down
2 changes: 1 addition & 1 deletion charts/sequencer-relayer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ global:
images:
sequencerRelayer:
repo: ghcr.io/astriaorg/sequencer-relayer
tag: "0.14.0"
tag: "0.15.0"
devTag: latest

config:
Expand Down
6 changes: 3 additions & 3 deletions charts/sequencer/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: sequencer-relayer
repository: file://../sequencer-relayer
version: 0.8.5
digest: sha256:66ce8c4cd8500a63282f7ab112682f8cd50c2253a0b046ec41e0c637c9b66bd9
generated: "2024-06-12T20:19:19.560729+03:00"
version: 0.9.0
digest: sha256:46eea5a5a35a87d2d27c57766c82ae253ee0fa6b171157ddfb6daa57f6ab0171
generated: "2024-06-27T14:02:36.489567-07:00"
6 changes: 3 additions & 3 deletions charts/sequencer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.16.2
version: 0.17.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.13.0"
appVersion: "0.14.0"

dependencies:
- name: sequencer-relayer
version: "0.8.5"
version: "0.9.0"
repository: "file://../sequencer-relayer"
condition: sequencer-relayer.enabled

Expand Down
24 changes: 20 additions & 4 deletions charts/sequencer/files/cometbft/config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# The version of the CometBFT binary that created or
# last modified the config file. Do not modify this.
version = "0.38.6"
version = "0.38.8"
# edit
#######################################################################
### Main Base Config Options ###
Expand Down Expand Up @@ -168,6 +168,11 @@ experimental_close_on_slow_client = false
# See https://github.com/tendermint/tendermint/issues/3435
timeout_broadcast_tx_commit = "10s"

# Maximum number of requests that can be sent in a batch
# If the value is set to '0' (zero-value), then no maximum batch size will be
# enforced for a JSON-RPC batch request.
max_request_batch_size = 10

# Maximum size of request body, in bytes
max_body_bytes = 1_000_000

Expand Down Expand Up @@ -283,6 +288,17 @@ type = "flood"
# you can disable rechecking.
recheck = true

# recheck_timeout is the time the application has during the rechecking process
# to return CheckTx responses, once all requests have been sent. Responses that
# arrive after the timeout expires are discarded. It only applies to
# non-local ABCI clients and when recheck is enabled.
#
# The ideal value will strongly depend on the application. It could roughly be estimated as the
# average size of the mempool multiplied by the average time it takes the application to validate one
# transaction. We consider that the ABCI application runs in the same location as the CometBFT binary
# so that the recheck duration is not affected by network delays when making requests and receiving responses.
recheck_timeout = "1s"

# Broadcast (default: true) defines whether the mempool should relay
# transactions to other peers. Setting this to false will stop the mempool
# from relaying transactions to other peers until they are included in a
Expand All @@ -299,14 +315,14 @@ wal_dir = ""
# Maximum number of transactions in the mempool
size = {{ .Values.cometbft.config.mempool.size }}

# Size of the cache (used to filter transactions we saw earlier) in transactions
cache_size = {{ .Values.cometbft.config.mempool.cacheSize}}

# Limit the total size of all txs in the mempool.
# This only accounts for raw transactions (e.g. given 1MB transactions and
# max_txs_bytes=5MB, mempool will only accept 5 transactions).
max_txs_bytes = {{ .Values.cometbft.config.mempool.maxTxsBytes}}

# Size of the cache (used to filter transactions we saw earlier) in transactions
cache_size = {{ .Values.cometbft.config.mempool.cacheSize}}

# Do not remove invalid transactions from the cache (default: false)
# Set to true if it's not possible for any invalid transaction to become valid
# again in the future.
Expand Down
21 changes: 2 additions & 19 deletions charts/sequencer/files/cometbft/config/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,6 @@
"inbound_ics20_transfers_enabled": {{ .Values.genesis.ibc.inboundEnabled }},
"outbound_ics20_transfers_enabled": {{ .Values.genesis.ibc.outboundEnabled }}
},
{{- if not .Values.global.dev }}
"accounts": [
{{- range $index, $value := .Values.genesis.genesisAccounts }}
{{- if $index }},{{- end }}
{
"address": "{{ $value.address }}",
"balance": {{ toString $value.balance | replace "\"" "" }}
}
{{- end }}
],
"authority_sudo_address": "{{ .Values.genesis.authoritySudoAddress }}",
"ibc_sudo_address": "{{ .Values.genesis.ibc.sudoAddress }}",
"ibc_relayer_addresses": [
{{- range $index, $value := .Values.genesis.ibc.relayerAddresses }}
{{- if $index }},{{- end }}
"{{ $value }}"
{{- end }}
]
{{- else }}
"address_prefixes": {
"base": "{{ .Values.genesis.addressPrefixes.base }}"
},
Expand All @@ -61,6 +42,8 @@
{{ include "sequencer.address" $value }}
{{- end }}
]
{{- if not .Values.global.dev }}
{{- else }}
{{- end}}
},
"chain_id": "{{ .Values.genesis.chainId }}",
Expand Down
37 changes: 14 additions & 23 deletions charts/sequencer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,33 @@ global:
images:
cometBFT:
repo: docker.io/cometbft/cometbft
tag: v0.38.6
devTag: v0.38.6
tag: v0.38.8
devTag: v0.38.8
sequencer:
repo: ghcr.io/astriaorg/sequencer
tag: "0.13.0"
tag: "0.14.0"
devTag: latest

moniker: "node"
moniker: ""
genesis:
chainId: 'sequencer-test-chain-0'
genesisTime: '2023-09-22T17:22:35.092832Z'
chainId: ""
genesisTime: "" # '2023-09-22T17:22:35.092832Z'
addressPrefixes:
base: "astria"
authoritySudoAddress: 1c0c490f1b5528d8173c5de46d131160e4b2c0c3
authoritySudoAddress: ""
nativeAssetBaseDenomination: nria
allowedFeeAssets:
- nria
allowedFeeAssets: []
# - nria
ibc:
enabled: true
inboundEnabled: true
outboundEnabled: true
sudoAddress: 1c0c490f1b5528d8173c5de46d131160e4b2c0c3
relayerAddresses:
- 1c0c490f1b5528d8173c5de46d131160e4b2c0c3
- 34fec43c7fcab9aef3b3cf8aba855e41ee69ca3a
sudoAddress: ""
relayerAddresses: []
# Note large balances must be strings support templating with the u128 size account balances
genesisAccounts:
- address: 1c0c490f1b5528d8173c5de46d131160e4b2c0c3
balance: "333333333333333333"
- address: 34fec43c7fcab9aef3b3cf8aba855e41ee69ca3a
balance: "333333333333333333"
- address: 60709e2d391864b732b4f0f51e387abb76743871
balance: "333333333333333333"
# NOTE - the following address matches the privKey that funds the sequencer-faucet
- address: 00d75b270542084a54fcf0d0f6eab0402982d156
balance: "333333333333333333"
genesisAccounts: []
# - address: 1c0c490f1b5528d8173c5de46d131160e4b2c0c3
# balance: "333333333333333333"

consensusParams:
blockMaxBytes: "1048576"
Expand Down
33 changes: 33 additions & 0 deletions dev/values/validators/all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
global:
dev: true

genesis:
chainId: 'sequencer-test-chain-0'
genesisTime: '2023-09-22T17:22:35.092832Z'
addressPrefixes:
base: "astria"
authoritySudoAddress: astria1rsxyjrcm255ds9euthjx6yc3vrjt9sxrm9cfgm
nativeAssetBaseDenomination: nria
allowedFeeAssets:
- nria
ibc:
enabled: true
inboundEnabled: true
outboundEnabled: true
sudoAddress: astria1rsxyjrcm255ds9euthjx6yc3vrjt9sxrm9cfgm
relayerAddresses:
- astria1rsxyjrcm255ds9euthjx6yc3vrjt9sxrm9cfgm
- astria1xnlvg0rle2u6auane79t4p27g8hxnj36ja960z
# Note large balances must be strings support templating with the u128 size
# account balances
genesisAccounts:
- address: astria1rsxyjrcm255ds9euthjx6yc3vrjt9sxrm9cfgm
balance: "333333333333333333"
- address: astria1xnlvg0rle2u6auane79t4p27g8hxnj36ja960z
balance: "333333333333333333"
- address: astria1vpcfutferpjtwv457r63uwr6hdm8gwr3pxt5ny
balance: "333333333333333333"
# NOTE - the following address matches the privKey that funds the
# sequencer-faucet
- address: astria1qrt4kfc9ggyy548u7rg0d64sgq5c952kzk9tg9
balance: "333333333333333333"
Loading

0 comments on commit e73db63

Please sign in to comment.