Skip to content

Commit ab312ae

Browse files
committed
Run enclave devnet tests in CI
1 parent 61766cc commit ab312ae

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

espresso/scripts/run-tests-github-actions.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ git submodule update --init --recursive
1515
# Poblate cachix cahe
1616
nix flake archive --json | jq -r '.path,(.inputs|to_entries[].value.path)' | cachix push espresso-systems-private
1717

18+
echo "[*] Downloading Docker Compose..."
19+
DOCKER_PLUGINS=/usr/local/lib/docker/cli-plugins/
20+
sudo mkdir -p $DOCKER_PLUGINS
21+
sudo curl -SL https://github.com/docker/compose/releases/download/v2.40.0/docker-compose-linux-x86_64 \
22+
-o $DOCKER_PLUGINS/docker-compose
23+
sudo chmod +x $DOCKER_PLUGINS/docker-compose
24+
1825
echo "[*] Starting Docker..."
1926
sudo systemctl enable --now docker
2027
sudo usermod -a -G docker ec2-user
@@ -28,4 +35,4 @@ sudo systemctl start nitro-enclaves-allocator.service
2835

2936
echo "[*] Running tests in nix develop shell..."
3037

31-
nix develop --command bash -c "just compile-contracts-fast && just build-batcher-enclave-image && just espresso-enclave-tests"
38+
nix develop --command bash -c "just build-devnet && just build-batcher-enclave-image && just espresso-enclave-tests && just devnet-enclave-tests"

justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ espresso-tests timeout=espresso_tests_timeout: compile-contracts
4343
espresso-enclave-tests:
4444
ESPRESSO_RUN_ENCLAVE_TESTS=true go test -timeout={{espresso_tests_timeout}} -p=1 -count=1 ./espresso/enclave-tests/...
4545

46+
devnet-enclave-tests:
47+
ESPRESSO_RUN_ENCLAVE_TESTS=true U_ID={{uid}} GID={{gid}} go test -timeout 30m -p 1 -count 1 -v -run 'TestEnclaveRestart' ./espresso/devnet-tests/...
48+
4649

4750
IMAGE_NAME := "ghcr.io/espressosystems/espresso-sequencer/espresso-dev-node:release-fix-cors"
4851
remove-espresso-containers:

0 commit comments

Comments
 (0)