Skip to content

Commit

Permalink
fixup! [profiling] dump profile info option
Browse files Browse the repository at this point in the history
  • Loading branch information
runtian-zhou committed Nov 2, 2023
1 parent 421dec5 commit f1613b8
Showing 1 changed file with 76 additions and 76 deletions.
152 changes: 76 additions & 76 deletions .github/workflows/workflow-run-execution-performance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
description: Run complete version of the tests
PROFILE:
required: false
default: false
default: true
type: boolean
description: Generate profile reports
# This allows the workflow to be triggered manually from the Github UI or CLI
Expand Down Expand Up @@ -56,81 +56,81 @@ jobs:
uses: ./.github/actions/file-change-determinator

# Run sequential execution performance tests
sequential-execution-performance:
needs: file_change_determinator
timeout-minutes: 30
runs-on: ${{ inputs.RUNNER_NAME }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.GIT_SHA }}
if: ${{ needs.file_change_determinator.outputs.only_docs_changed != 'true' && inputs.IS_FULL_RUN }}

- uses: aptos-labs/aptos-core/.github/actions/rust-setup@main
with:
GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }}
if: ${{ needs.file_change_determinator.outputs.only_docs_changed != 'true' && inputs.IS_FULL_RUN }}

- name: Run sequential execution benchmark in performance build mode
shell: bash
run: testsuite/sequential_execution_performance.py
if: ${{ needs.file_change_determinator.outputs.only_docs_changed != 'true' && inputs.IS_FULL_RUN }}

- run: echo "Skipping sequential execution performance!"
if: ${{ needs.file_change_determinator.outputs.only_docs_changed == 'true' || !inputs.IS_FULL_RUN }}

# Run parallel execution performance tests
parallel-execution-performance:
needs: file_change_determinator
timeout-minutes: 60
runs-on: ${{ inputs.RUNNER_NAME }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.GIT_SHA }}
if: ${{ needs.file_change_determinator.outputs.only_docs_changed != 'true' && inputs.IS_FULL_RUN }}

- uses: aptos-labs/aptos-core/.github/actions/rust-setup@main
with:
GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }}
if: ${{ needs.file_change_determinator.outputs.only_docs_changed != 'true' && inputs.IS_FULL_RUN }}

- name: Run parallel execution benchmark in performance build mode
shell: bash
run: testsuite/parallel_execution_performance.py
if: ${{ needs.file_change_determinator.outputs.only_docs_changed != 'true' && inputs.IS_FULL_RUN }}

- run: echo "Skipping parallel execution performance!"
if: ${{ needs.file_change_determinator.outputs.only_docs_changed == 'true' || !inputs.IS_FULL_RUN }}

# Run single node execution performance tests
single-node-performance:
needs: file_change_determinator
timeout-minutes: 60
runs-on: ${{ inputs.RUNNER_NAME }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.GIT_SHA }}
if: needs.file_change_determinator.outputs.only_docs_changed != 'true'

- uses: aptos-labs/aptos-core/.github/actions/rust-setup@main
with:
GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }}
if: needs.file_change_determinator.outputs.only_docs_changed != 'true'

- name: Run single node execution benchmark in performance build mode
shell: bash
run: TABULATE_INSTALL=lib-only pip install tabulate && testsuite/single_node_performance.py
if: ${{ needs.file_change_determinator.outputs.only_docs_changed != 'true' && !inputs.IS_FULL_RUN }}

- name: Run full version of the single node execution benchmark in performance build mode
shell: bash
run: TABULATE_INSTALL=lib-only pip install tabulate && FLOW=CONTINUOUS testsuite/single_node_performance.py
if: ${{ needs.file_change_determinator.outputs.only_docs_changed != 'true' && inputs.IS_FULL_RUN }}

- run: echo "Skipping single node execution performance! Unrelated changes detected."
if: needs.file_change_determinator.outputs.only_docs_changed == 'true'
# sequential-execution-performance:
# needs: file_change_determinator
# timeout-minutes: 30
# runs-on: ${{ inputs.RUNNER_NAME }}
# steps:
# - uses: actions/checkout@v3
# with:
# ref: ${{ inputs.GIT_SHA }}
# if: ${{ needs.file_change_determinator.outputs.only_docs_changed != 'true' && inputs.IS_FULL_RUN }}

# - uses: aptos-labs/aptos-core/.github/actions/rust-setup@main
# with:
# GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }}
# if: ${{ needs.file_change_determinator.outputs.only_docs_changed != 'true' && inputs.IS_FULL_RUN }}

# - name: Run sequential execution benchmark in performance build mode
# shell: bash
# run: testsuite/sequential_execution_performance.py
# if: ${{ needs.file_change_determinator.outputs.only_docs_changed != 'true' && inputs.IS_FULL_RUN }}

# - run: echo "Skipping sequential execution performance!"
# if: ${{ needs.file_change_determinator.outputs.only_docs_changed == 'true' || !inputs.IS_FULL_RUN }}

# # Run parallel execution performance tests
# parallel-execution-performance:
# needs: file_change_determinator
# timeout-minutes: 60
# runs-on: ${{ inputs.RUNNER_NAME }}
# steps:
# - uses: actions/checkout@v3
# with:
# ref: ${{ inputs.GIT_SHA }}
# if: ${{ needs.file_change_determinator.outputs.only_docs_changed != 'true' && inputs.IS_FULL_RUN }}

# - uses: aptos-labs/aptos-core/.github/actions/rust-setup@main
# with:
# GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }}
# if: ${{ needs.file_change_determinator.outputs.only_docs_changed != 'true' && inputs.IS_FULL_RUN }}

# - name: Run parallel execution benchmark in performance build mode
# shell: bash
# run: testsuite/parallel_execution_performance.py
# if: ${{ needs.file_change_determinator.outputs.only_docs_changed != 'true' && inputs.IS_FULL_RUN }}

# - run: echo "Skipping parallel execution performance!"
# if: ${{ needs.file_change_determinator.outputs.only_docs_changed == 'true' || !inputs.IS_FULL_RUN }}

# # Run single node execution performance tests
# single-node-performance:
# needs: file_change_determinator
# timeout-minutes: 60
# runs-on: ${{ inputs.RUNNER_NAME }}
# steps:
# - uses: actions/checkout@v3
# with:
# ref: ${{ inputs.GIT_SHA }}
# if: needs.file_change_determinator.outputs.only_docs_changed != 'true'

# - uses: aptos-labs/aptos-core/.github/actions/rust-setup@main
# with:
# GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }}
# if: needs.file_change_determinator.outputs.only_docs_changed != 'true'

# - name: Run single node execution benchmark in performance build mode
# shell: bash
# run: TABULATE_INSTALL=lib-only pip install tabulate && testsuite/single_node_performance.py
# if: ${{ needs.file_change_determinator.outputs.only_docs_changed != 'true' && !inputs.IS_FULL_RUN }}

# - name: Run full version of the single node execution benchmark in performance build mode
# shell: bash
# run: TABULATE_INSTALL=lib-only pip install tabulate && FLOW=CONTINUOUS testsuite/single_node_performance.py
# if: ${{ needs.file_change_determinator.outputs.only_docs_changed != 'true' && inputs.IS_FULL_RUN }}

# - run: echo "Skipping single node execution performance! Unrelated changes detected."
# if: needs.file_change_determinator.outputs.only_docs_changed == 'true'

single-node-performance-profile:
needs: file_change_determinator
Expand Down

0 comments on commit f1613b8

Please sign in to comment.