New notice file (#275) #211
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ESS Benchmark | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'intent_brokering/common/**' | |
- 'intent_brokering/ess/**' | |
- '.github/workflows/ess-bench.yml' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
permissions: | |
contents: write | |
deployments: write | |
env: | |
# Push the results to gh-pages only on merge to main. | |
AUTO_PUSH: ${{ github.event_name == 'push' }} | |
# Comment the performance numbers of the load tests only on PRs and if the PR | |
# comes from within the Eclipse organization. | |
COMMENT_ALWAYS: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'eclipse-chariott/chariott' }} | |
jobs: | |
benchmark: | |
name: Execute load tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install stable toolchain | |
run: rustup show | |
- name: Install protobuf-compiler | |
run: sudo apt-get install -y protobuf-compiler | |
- name: Run benchmark | |
run: cargo bench --manifest-path intent_brokering/ess/Cargo.toml --bench load_bench -- --output-format bencher | tee output.txt | |
- name: Store benchmark result | |
env: | |
GIT_LFS_SKIP_SMUDGE: 1 | |
uses: benchmark-action/github-action-benchmark@v1 | |
if: ${{ github.event_name != 'workflow_dispatch' }} | |
with: | |
name: ESS Benchmark | |
tool: 'cargo' | |
output-file-path: output.txt | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: ${{ env.AUTO_PUSH }} | |
comment-always: ${{ env.COMMENT_ALWAYS }} | |
benchmark-data-dir-path: "ess/bench" |