Skip to content

Commit

Permalink
chore: publish and use artifact for load-aggregator in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dlachaume committed May 16, 2024
1 parent 29fbe30 commit dd886ad
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/aggregator-stress-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,26 @@ jobs:
workflow: ci.yml
workflow_conclusion: success

- name: Download test runners
uses: dawidd6/action-download-artifact@v3
with:
name: mithril-tooling-Linux-X64
path: ./bin
commit: ${{ inputs.commit_sha }}
workflow: ci.yml
workflow_conclusion: success

- name: Set permissions
shell: bash
working-directory: ./bin
run: chmod +x ./mithril-aggregator

- name: Build the aggregator stress test
working-directory: mithril-test-lab/mithril-end-to-end
run: make build
run: |
chmod +x ./mithril-aggregator
chmod +x ./load-aggregator
- name: Run the aggregator stress test
working-directory: mithril-test-lab/mithril-end-to-end
run: |
./load-aggregator ${{ steps.prepare.outputs.debug_level }} \
--cardano-cli-path script/mock-cardano-cli \
--aggregator-dir ../../bin \
./bin/load-aggregator ${{ steps.prepare.outputs.debug_level }} \
--cardano-cli-path ./mithril-test-lab/mithril-end-to-end/script/mock-cardano-cli \
--aggregator-dir ./bin \
--num-signers=${{ inputs.num_signers }} \
--num-clients=${{ inputs.num_clients }}
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
# We separate the build in 2 steps as we want to avoid side effects with Rust feature unification.
- name: Cargo build - Tooling
shell: bash
run: cargo build --release -p mithril-end-to-end
run: cargo build --release --bin mithril-end-to-end --bin load-aggregator

- name: Build Mithril workspace & publish artifacts
uses: ./.github/workflows/actions/build-upload-mithril-artifact
Expand All @@ -58,8 +58,10 @@ jobs:
- name: Publish End-to-end runner (${{ runner.os }}-${{ runner.arch }})
uses: actions/upload-artifact@v4
with:
name: mithril-end-to-end-${{ runner.os }}-${{ runner.arch }}
path: target/release/mithril-end-to-end
name: mithril-tooling-${{ runner.os }}-${{ runner.arch }}
path: |
target/release/mithril-end-to-end
target/release/load-aggregator
if-no-files-found: error

- name: Prepare test lab eras
Expand Down Expand Up @@ -302,7 +304,7 @@ jobs:
- name: Download rust test runner
uses: actions/download-artifact@v4
with:
name: mithril-end-to-end-${{ runner.os }}-${{ runner.arch }}
name: mithril-tooling-${{ runner.os }}-${{ runner.arch }}
path: ./

- run: |
Expand Down

0 comments on commit dd886ad

Please sign in to comment.