Skip to content

Commit

Permalink
add smoke test to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneh1999 committed Oct 17, 2024
1 parent 4f0018a commit 149cce8
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 5 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'integration/')}}


jobs:
smoke_test:

strategy:
matrix:
test-script: [ ./smoke-test.bash, ./smoke-test-l3.bash, ./smoke-test-nitro-simple.bash, ./smoke-test-full-node.bash ]
test-script:
[
./smoke-test.bash,
./smoke-test-l3.bash,
./smoke-test-nitro-simple.bash,
./smoke-test-full-node.bash,
./smoke-test-finality-node.bash,
]

runs-on: ubuntu-24.04

Expand Down Expand Up @@ -66,6 +71,11 @@ jobs:
build-args: |
TOKEN_BRIDGE_BRANCH=v1.2.2
- name: Install websocat
run: |
sudo apt-get update
sudo apt-get install -y websocat
- name: Smoke Test with Latest Espresso Image
run: |
${{ matrix.test-script }}
Expand Down
18 changes: 18 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,23 @@ services:
depends_on:
- geth

sequencer-espresso-finality:
pid: host # allow debugging
image: nitro-node-dev-testnode
entrypoint: /usr/local/bin/nitro
ports:
- "127.0.0.1:8549:8547"
- "127.0.0.1:8550:8548"
- "127.0.0.1:9645:9642"
volumes:
- "seqdata_espresso_finality:/home/user/.arbitrum/local/nitro"
- "l1keystore:/home/user/l1keystore"
- "config:/config"
- "tokenbridge-data:/tokenbridge-data"
command: --conf.file /config/espresso_finality_sequencer_config.json --node.feed.output.enable --node.feed.output.port 9642 --http.api net,web3,eth,txpool,debug --node.seq-coordinator.my-url ws://sequencer:8550 --graphql.enable --graphql.vhosts * --graphql.corsdomain *
depends_on:
- geth

sequencer_b:
pid: host # allow debugging
image: nitro-node-dev-testnode
Expand Down Expand Up @@ -451,6 +468,7 @@ volumes:
seqdata_b:
seqdata_c:
seqdata_d:
seqdata_espresso_finality
unsafestaker-data:
validator-data:
poster-data:
Expand Down
23 changes: 21 additions & 2 deletions scripts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,27 @@ function writeConfigs(argv: any) {
} else {
sequencerConfig.node["seq-coordinator"].enable = true
}
fs.writeFileSync(path.join(consts.configpath, "sequencer_config.json"), JSON.stringify(sequencerConfig))


if (argv.enableFinalityNode) {
sequencerConfig.execution.sequencer["enable-espresso-finality-node"] =
true;
sequencerConfig.execution.sequencer["enable-espresso-sovereign"] = false;
sequencerConfig.execution.sequencer["espresso-finality-node-config"] = {
"hotshot-url": argv.espressoUrl,
"start-block": 0,
namespace: 412346,
};
fs.writeFileSync(
path.join(consts.configpath, "espresso_finality_sequencer_config.json"),
JSON.stringify(sequencerConfig)
);
} else {
fs.writeFileSync(
path.join(consts.configpath, "sequencer_config.json"),
JSON.stringify(sequencerConfig)
);
}

let posterConfig = JSON.parse(baseConfJSON)
if (argv.espresso) {
posterConfig.node.feed.input.url.push("ws://sequencer:9642")
Expand Down

0 comments on commit 149cce8

Please sign in to comment.