Skip to content

Commit

Permalink
Also test marketplace through integration test (#2067)
Browse files Browse the repository at this point in the history
Adds second integration test run with marketplace config

---------

Co-authored-by: tbro <tbro@users.noreply.github.com>
  • Loading branch information
tbro and tbro authored Sep 26, 2024
1 parent f30ef38 commit ca214de
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
34 changes: 27 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ concurrency:
env:
RUSTFLAGS: '--cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std"'
RUST_LOG: info,libp2p=off,node=error
CARGO_TERM_COLOR: always

jobs:
test:
Expand Down Expand Up @@ -54,8 +55,6 @@ jobs:
timeout-minutes: 90

- name: Test
env:
CARGO_TERM_COLOR: always
# Build test binary with `testing` feature, which requires `hotshot_example` config
run: |
export RUSTFLAGS="$RUSTFLAGS --cfg hotshot_example"
Expand All @@ -67,17 +66,38 @@ jobs:
uses: cachix/install-nix-action@V27

- name: Install process-compose
run: nix profile install nixpkgs#process-compose

- name: Pull Docker Images
run: docker compose pull || docker-compose pull

- name: Run Demo-Native
run: |
nix profile install nixpkgs#process-compose
export RUSTFLAGS="$RUSTFLAGS --cfg hotshot_example"
export PATH="$PWD/target/release:$PATH"
bash -x scripts/demo-native -D
- name: Test Integration
env:
CARGO_TERM_COLOR: always
NEXTEST_PROFILE: integration
run: cargo nextest run --locked --release --all-features --verbose --nocapture
timeout-minutes: 40

- name: Process Compose Down
run: process-compose down

- name: Run Demo-Native Marketplace
run: |
export RUSTFLAGS="$RUSTFLAGS --cfg hotshot_example"
export PATH="$PWD/target/release:$PATH"
docker compose pull || docker-compose pull
bash -x scripts/demo-native -D
cargo nextest run --locked --release --all-features --verbose --nocapture
bash -x scripts/demo-native -f process-compose.yaml -f process-compose-mp.yml -D
- name: Test Marketplace Integration
env:
NEXTEST_PROFILE: integration
MARKETPLACE_SMOKE_TEST: true
run: cargo nextest run --locked --release --all-features --verbose --nocapture
timeout-minutes: 40

- name: Process Compose Down
run: process-compose down
2 changes: 1 addition & 1 deletion tests/demo_native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl TestConfig {
async fn readiness(&self) -> Result<Vec<String>> {
join_all(vec![
wait_for_service(&self.load_generator_url, 1000, 600),
wait_for_service(&self.builder_url, 1000, 60),
wait_for_service(&self.builder_url, 1000, 200),
wait_for_service(&self.prover_url, 1000, 300),
])
.await
Expand Down

0 comments on commit ca214de

Please sign in to comment.