Merge pull request #965 from StanfordVL/fix-ci #149
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: Profiling | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- og-develop | |
permissions: | |
# deployments permission to deploy GitHub pages website | |
deployments: write | |
# contents permission to update profiling contents in gh-pages branch | |
contents: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
profiling: | |
name: Speed Profiling | |
runs-on: [self-hosted, linux, gpu, dataset-enabled] | |
defaults: | |
run: | |
shell: micromamba run -n omnigibson /bin/bash -leo pipefail {0} | |
steps: | |
- name: Fix home | |
run: echo "HOME=/root" >> $GITHUB_ENV | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
# These are temporarily disabled due to some errors they cause where some | |
# unknown important dependency has its version changed and Isaac Sim will | |
# no longer launch properly. The result is that if dependencies change, | |
# the tests will stop working. This is a temporary fix until we can figure | |
# out how to fix this issue. | |
# - name: Install dev requirements | |
# working-directory: omnigibson-src | |
# run: pip install -r requirements-dev.txt | |
# - name: Install | |
# working-directory: omnigibson-src | |
# run: pip install -e . | |
- name: Run performance benchmark | |
run: bash scripts/profiling.sh | |
- name: Store benchmark result | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
tool: 'customSmallerIsBetter' | |
output-file-path: output.json | |
benchmark-data-dir-path: profiling | |
fail-on-alert: false | |
alert-threshold: '200%' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
comment-on-alert: false | |
auto-push: true |