Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: disable tt test #10999

Merged
merged 3 commits into from
Jan 2, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: change rough rhino path
Maddiaa0 committed Jan 2, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit d921c5ddfa9d7d346885ae48d1ce7cef88849f60
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -543,21 +543,21 @@ jobs:
export CI=1 USE_CACHE=1
scripts/earthly-ci +prover-client-with-cache

rough-rhino-installer:
testnet-installer:
needs: [bootstrap, configure]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: { ref: "${{ github.event.pull_request.head.sha }}" }
- uses: ./.github/ci-setup-action
- name: Rough Rhino Installer Helper Script
- name: Testnet Installer Helper Script
uses: ./.github/ensure-builder
timeout-minutes: 40
with:
username: ${{ needs.configure.outputs.username }}
runner_type: builder-x86
run: |
scripts/earthly-ci ./spartan/releases/rough-rhino/+test-all
scripts/earthly-ci ./spartan/releases/testnet/+test-all

protocol-circuits-gates-report:
needs: [ci-rest, configure]
Original file line number Diff line number Diff line change
@@ -23,12 +23,14 @@ test-setup:

test-help:
FROM +test-setup
LOCALLY
RUN ./aztec-spartan.sh | grep -q "Commands:" && \
echo "✅ Help command test passed" || \
(echo "❌ Help command test failed" && exit 1)

test-no-config:
FROM +test-setup
LOCALLY
RUN if ./aztec-spartan.sh start 2>&1 | grep -q "Configuration not found"; then \
echo "✅ No config test passed"; \
else \
@@ -38,13 +40,15 @@ test-no-config:
test-install:
FROM +test-setup
# Test installation with CLI arguments
LOCALLY
RUN echo -e "\n\n" | ./aztec-spartan.sh config \
-p 8080 \
-p2p 40400 \
-ip 1.2.3.4 \
-k 0x00 \
-n "troll-turtle"
# Verify docker-compose.yml was created and contains correct values
LOCALLY
RUN test -f .env && \
test -f docker-compose.yml && \
grep -q "P2P_UDP_ANNOUNCE_ADDR=1.2.3.4:40400" .env && \
@@ -56,10 +60,13 @@ test-install:
test-docker-check:
FROM +deps
COPY aztec-spartan.sh .
LOCALLY
RUN chmod +x aztec-spartan.sh
# Remove docker to test docker installation check
LOCALLY
RUN rm -f /usr/local/bin/docker /usr/local/bin/docker-compose
# Test docker check (should fail since docker is not installed)
LOCALLY
RUN if ./aztec-spartan.sh config 2>&1 | grep -q "Docker or Docker Compose not found"; then \
echo "✅ Docker check test passed"; \
else \
@@ -69,30 +76,35 @@ test-docker-check:
test-start-stop:
FROM +test-setup
# First install with test configuration
LOCALLY
RUN echo -e "\n" | ./aztec-spartan.sh config \
-p 8080 \
-p2p 40400 \
-ip 1.2.3.4 \
-k 0x00 \
-n "troll-turtle"
# Test start command
LOCALLY
RUN ./aztec-spartan.sh start 2>&1 | grep -q "Starting containers" && \
echo "✅ Start command test passed" || \
(echo "❌ Start command test failed" && exit 1)
# Test stop command
LOCALLY
RUN ./aztec-spartan.sh stop 2>&1 | grep -q "Stopping containers" && \
echo "✅ Stop command test passed" || \
(echo "❌ Stop command test failed" && exit 1)

test-update:
FROM +test-setup
LOCALLY
RUN ./aztec-spartan.sh update 2>&1 | grep -q "Pulling latest images" && \
echo "✅ Update command test passed" || \
(echo "❌ Update command test failed" && exit 1)

test-data-dir:
FROM +test-setup
# Test installation with data directory argument
LOCALLY
RUN echo -e "\n\n" | ./aztec-spartan.sh config \
-p 8080 \
-p2p 40400 \
@@ -101,6 +113,7 @@ test-data-dir:
-d ./aztec-data \
-n "troll-turtle"
# Verify docker-compose.yml uses bind mount instead of named volume
LOCALLY
RUN grep -q "volumes:" docker-compose.yml && \
grep -q "./aztec-data:/var/lib/aztec" docker-compose.yml && \
! grep -q "volumes:\n aztec_data:" docker-compose.yml && \
@@ -110,6 +123,7 @@ test-data-dir:
test-p2p-key:
FROM +test-setup
# Test installation with P2P private key argument
LOCALLY
RUN echo -e "\n\n" | ./aztec-spartan.sh config \
-p 8080 \
-p2p 40400 \
@@ -118,13 +132,16 @@ test-p2p-key:
-pk 00000 \
-n "troll-turtle"
# Verify the P2P private key was set in the .env file
LOCALLY
RUN test -f .env && \
grep -q "PEER_ID_PRIVATE_KEY=00000" .env && \
echo "✅ P2P private key test passed" || \
(echo "❌ P2P private key test failed" && exit 1)

test-ethereum-host:
LOCALLY
FROM +test-setup
LOCALLY
RUN echo -e "\n\n" | ./aztec-spartan.sh config \
-n "troll-turtle" \
-e http://foobar:8545 \
@@ -133,29 +150,33 @@ test-ethereum-host:
-ip 1.2.3.4 \
-k 0x00 \
-pk 00000
LOCALLY
RUN test -f .env && \
grep -q "ETHEREUM_HOST=http://foobar:8545" .env && \
echo "✅ Ethereum host cli test passed" || \
(echo "❌ Ethereum host cli test failed" && exit 1)

# We don't respect the env var here
LOCALLY
RUN echo -e "\n\n" | ETHEREUM_HOST=http://foobar:8545 ./aztec-spartan.sh config \
-n "troll-turtle" \
-p 8080 \
-p2p 40400 \
-ip 1.2.3.4 \
-k 0x00 \
-pk 00000
LOCALLY
RUN test -f .env && \
grep -q "ETHEREUM_HOST=http://34.19.127.9:8545" .env && \
echo "✅ Ethereum host override test passed" || \
(echo "❌ Ethereum host override test failed" && exit 1)


test-all:
BUILD +test-help
BUILD +test-install
BUILD +test-docker-check
# BUILD +test-help
# BUILD +test-install

# BUILD +test-docker-check
BUILD +test-start-stop
BUILD +test-update
BUILD +test-data-dir
File renamed without changes.