Skip to content

Commit

Permalink
chore(ci): improve the flow of local smoke test (#926)
Browse files Browse the repository at this point in the history
## Summary
Updates justfile to provide more flexibility in images used. When no tag
is specified, you can simply modify values files to run a single local
image, whereas before needed all custom or none.

## Background
I want to make it really easy for people to test the components they are
editing locally e2e.
  • Loading branch information
joroshiba authored Apr 5, 2024
1 parent 548a532 commit 48391cd
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -205,17 +205,24 @@ clean-persisted-data:
deploy-local-metrics:
kubectl apply -f kubernetes/metrics-server-local.yml

defaultTag := 'latest'
defaultTag := ""

deploy-smoke-test tag=defaultTag:
@echo "Deploying ingress controller..." && just deploy-ingress-controller > /dev/null
@just wait-for-ingress-controller > /dev/null
@echo "Deploying local celestia instance..." && just deploy celestia-local > /dev/null
@helm dependency build charts/sequencer > /dev/null
@helm dependency build 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/single.yml --set images.sequencer.devTag={{tag}} --set sequencer-relayer.images.sequencer-relayer.devTag={{tag}} --create-namespace > /dev/null
@echo "Setting up single astria sequencer..." && helm install \
-n astria-validator-single single-sequencer-chart ./charts/sequencer \
-f dev/values/validators/single.yml \
{{ if tag != '' { replace('--set images.sequencer.devTag=# --set sequencer-relayer.images.sequencer-relayer.devTag=#', '#', tag) } else { '' } }} \
--create-namespace > /dev/null
@just wait-for-sequencer > /dev/null
@echo "Starting EVM rollup..." && helm install -n astria-dev-cluster astria-chain-chart ./charts/evm-rollup -f dev/values/rollup/dev.yaml --set images.conductor.devTag={{tag}} --set images.composer.devTag={{tag}} --set config.blockscout.enabled=false --set config.faucet.enabled=false > /dev/null
@echo "Starting EVM rollup..." && helm install -n astria-dev-cluster astria-chain-chart ./charts/evm-rollup -f dev/values/rollup/dev.yaml \
{{ if tag != '' { replace('--set images.conductor.devTag=# --set images.composer.devTag=#', '#', tag) } else { '' } }} \
--set config.blockscout.enabled=false \
--set config.faucet.enabled=false > /dev/null
@sleep 30

run-smoke-test:
Expand Down

0 comments on commit 48391cd

Please sign in to comment.