Skip to content

Commit

Permalink
fix: new targets from CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
l-monninger committed Jun 4, 2024
1 parent a12f47b commit 3b3e59c
Show file tree
Hide file tree
Showing 23 changed files with 349 additions and 116 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/cargo-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Cargo Check

on:
push:

jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-22.04
arch: x86_64
runs-on: movement-runner
- os: macos-13-latest
arch: arm64
runs-on: macos-13-xlarge

runs-on: ${{ matrix.runs-on }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Run Cargo Check in nix environment
run: nix develop --command bash -c "cargo check"
45 changes: 0 additions & 45 deletions .github/workflows/checks.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/m1-da-light-node-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: M1 DA Light Node Tests

on:
push:

jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-22.04
arch: x86_64
runs-on: movement-runner
- os: macos-13-latest
arch: arm64
runs-on: macos-13-xlarge

runs-on: ${{ matrix.runs-on }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Run M1 DA Light Node tests in nix environment
# adjust the log level while debugging
run: CELESTIA_LOG_LEVEL=FATAL nix develop --command bash -c "just m1-da-light-node build.setup.test.local -t=false"
29 changes: 29 additions & 0 deletions .github/workflows/mcr-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Monza Full Node Tests

on:
push:

jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-22.04
arch: x86_64
runs-on: movement-runner
- os: macos-13-latest
arch: arm64
runs-on: macos-13-xlarge

runs-on: ${{ matrix.runs-on }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Run M1 DA Light Node tests in nix environment
# adjust the log level while debugging
run: CELESTIA_LOG_LEVEL=FATAL nix develop --command bash -c "just mcr test.local -t=false"
29 changes: 29 additions & 0 deletions .github/workflows/monza-full-node-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Monza Full Node Tests

on:
push:

jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-22.04
arch: x86_64
runs-on: movement-runner
- os: macos-13-latest
arch: arm64
runs-on: macos-13-xlarge

runs-on: ${{ matrix.runs-on }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Run M1 DA Light Node tests in nix environment
# adjust the log level while debugging
run: CELESTIA_LOG_LEVEL=FATAL nix develop --command bash -c "just monza-full-node build.setup.test.local -t=false"
29 changes: 29 additions & 0 deletions .github/workflows/suzuka-full-node-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Monza Full Node Tests

on:
push:

jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-22.04
arch: x86_64
runs-on: movement-runner
- os: macos-13-latest
arch: arm64
runs-on: macos-13-xlarge

runs-on: ${{ matrix.runs-on }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Run M1 DA Light Node tests in nix environment
# adjust the log level while debugging
run: CELESTIA_LOG_LEVEL=FATAL nix develop --command bash -c "just suzuka-full-node build.setup.test.local -t=false"
29 changes: 0 additions & 29 deletions process-compose/m1-da-light-node/process-compose.sequencer.yml

This file was deleted.

21 changes: 20 additions & 1 deletion process-compose/m1-da-light-node/process-compose.setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,25 @@ environment:

processes:

m1-da-light-node-setup:
command: |
./scripts/services/m1-da-light-node/setup
depends_on:
build:
condition: process_completed_successfully

celestia-setup:
command: |
./scripts/services/celestia/setup
depends_on:
build:
condition: process_completed_successfully

setup:
command: |
./scripts/services/celestia/setup
exit 0
depends_on:
m1-da-light-node-setup:
condition: process_completed_successfully
celestia-setup:
condition: process_completed_successfully
34 changes: 34 additions & 0 deletions process-compose/suzuka-full-node/process-compose.build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: "3"

environment:

processes:

build-m1-da-light-node:
command: |
./scripts/services/m1-da-light-node/build
build-wait-for-celestia-light-node:
command: |
./scripts/services/wait-for-celestia-light-node/build
build-suzuka-full-node:
command: |
./scripts/services/suzuka-full-node/build
build-suzuka-faucet:
command: |
./scripts/services/suzuka-faucet/build
build:
command: |
exit 0
depends_on:
build-m1-da-light-node:
condition: process_completed_successfully
build-wait-for-celestia-light-node:
condition: process_completed_successfully
build-suzuka-full-node:
condition: process_completed_successfully
build-suzuka-faucet:
condition: process_completed_successfully
24 changes: 6 additions & 18 deletions process-compose/suzuka-full-node/process-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,18 @@ processes:

celestia-node-appd:
command: |
./scripts/celestia/celestia-local-appd
./scripts/services/celestia/celestia-local-appd
readiness_probe:
initial_delay_seconds: 10
exec:
command: echo "true"
liveness_probe:
initial_delay_seconds: 10
exec:
command: echo "true"
depends_on:
setup:
condition: process_completed_successfully

celestia-bridge:
command: |
./scripts/celestia/celestia-local-bridge
./scripts/services/celestia/celestia-local-bridge
readiness_probe:
initial_delay_seconds: 10
exec:
command: echo "true"
liveness_probe:
initial_delay_seconds: 10
exec:
command: echo "true"
depends_on:
Expand All @@ -36,12 +29,7 @@ processes:
sleep 999999999d
echo "started"
readiness_probe:
initial_delay_seconds: 10
exec:
command: |
echo "true"
liveness_probe:
initial_delay_seconds: 10
initial_delay_seconds: 30
exec:
command: |
echo "true"
Expand Down
39 changes: 39 additions & 0 deletions process-compose/suzuka-full-node/process-compose.setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: "3"

environment:

processes:

m1-da-light-node-setup:
command: |
./scripts/services/m1-da-light-node/setup
depends_on:
build:
condition: process_completed_successfully

suzuka-setup:
command: |
./scripts/services/suzuka-full-node/setup
depends_on:
build:
condition: process_completed_successfully
m1-da-light-node-setup:
condition: process_completed_successfully

celestia-setup:
command: |
./scripts/services/celestia/setup
depends_on:
build:
condition: process_completed_successfully

setup:
command: |
exit 0
depends_on:
suzuka-setup:
condition: process_completed_successfully
celestia-setup:
condition: process_completed_successfully


2 changes: 1 addition & 1 deletion process-compose/suzuka-full-node/process-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ processes:

suzuka-client-tests:
command: |
cargo test -p suzuka-client -- --test-threads=1
./scripts/services/suzuka-full-node/client-tests
depends_on:
suzuka-full-node:
condition: process_healthy
Expand Down
Loading

0 comments on commit 3b3e59c

Please sign in to comment.