Skip to content

Commit

Permalink
Merge branch 'ershi/ci-failfast' into 'main'
Browse files Browse the repository at this point in the history
Use --failfast option on GitLab CI tests

See merge request omniverse/warp!729
  • Loading branch information
shi-eric committed Sep 17, 2024
2 parents 2b3a7c8 + 3370f8a commit f73cecb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
14 changes: 7 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ linux-aarch64 test:
- python -m pip install coverage[toml]
- echo -e "\\e[0Ksection_end:`date +%s`:install_dependencies\\r\\e[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml --coverage --coverage-xml coverage.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml --coverage --coverage-xml coverage.xml -s autodetect --failfast
tags:
- arch/arm

Expand All @@ -208,7 +208,7 @@ linux-aarch64 test jetson:
- python -m pip install coverage[toml]
- echo -e "\\e[0Ksection_end:`date +%s`:install_dependencies\\r\\e[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml --coverage --coverage-xml coverage.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml --coverage --coverage-xml coverage.xml -s autodetect --failfast
tags:
- gpu/orin

Expand All @@ -234,7 +234,7 @@ linux-x86_64 test:
- python -m pip install -e .
- echo -e "\\e[0Ksection_end:`date +%s`:install_dependencies\\r\\e[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml --coverage --coverage-xml coverage.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml --coverage --coverage-xml coverage.xml -s autodetect --failfast

# Note that for throughput reasons this runs on a single-GPU runner
windows-x86_64 test:
Expand All @@ -260,7 +260,7 @@ windows-x86_64 test:
- python -m pip install -e .
- Write-Output "$([char]27)[0Ksection_end:$(GetTime):install_dependencies$([char]13)$([char]27)[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml --coverage --coverage-xml coverage.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml --coverage --coverage-xml coverage.xml -s autodetect --failfast

mac-x86_64 test:
stage: test
Expand All @@ -275,7 +275,7 @@ mac-x86_64 test:
- python -m pip install --upgrade usd-core coverage[toml]
- echo -e "\\e[0Ksection_end:`date +%s`:install_dependencies\\r\\e[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml --coverage --coverage-xml coverage.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml --coverage --coverage-xml coverage.xml -s autodetect --failfast

# Test the Linux release build in an environment with minimal Python dependencies installed
linux-x86_64 test minimal:
Expand Down Expand Up @@ -313,7 +313,7 @@ linux-x86_64 test minimal:
- python -m pip install -e .
- echo -e "\\e[0Ksection_end:`date +%s`:install_dependencies\\r\\e[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect --failfast

# Optional multi-GPU Windows job (likely longer queue time)
windows-x86_64 test mgpu:
Expand Down Expand Up @@ -343,7 +343,7 @@ windows-x86_64 test mgpu:
- python -m pip install -e .
- Write-Output "$([char]27)[0Ksection_end:$(GetTime):install_dependencies$([char]13)$([char]27)[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect --failfast
tags:
- os/windows
- gpu/2x-A5000
Expand Down
8 changes: 4 additions & 4 deletions .gitlab/ci/additional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ linux-x86_64 test:
- python -m pip install -e .
- echo -e "\\e[0Ksection_end:`date +%s`:install_dependencies\\r\\e[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect --failfast

windows-x86_64 test:
stage: test
Expand All @@ -74,7 +74,7 @@ windows-x86_64 test:
- python -m pip install -e .
- Write-Output "$([char]27)[0Ksection_end:$(GetTime):install_dependencies$([char]13)$([char]27)[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect --failfast

linux-aarch64 test:
stage: test
Expand All @@ -89,7 +89,7 @@ linux-aarch64 test:
- !reference [.snippets, install-python+warp-aarch64]
- echo -e "\\e[0Ksection_end:`date +%s`:install_dependencies\\r\\e[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect --failfast
tags:
- arch/arm

Expand All @@ -108,4 +108,4 @@ mac-x86_64 test:
- python -m pip install --upgrade usd-core coverage[toml]
- echo -e "\\e[0Ksection_end:`date +%s`:install_dependencies\\r\\e[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml --coverage --coverage-xml coverage.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml --coverage --coverage-xml coverage.xml -s autodetect --failfast
6 changes: 3 additions & 3 deletions .gitlab/ci/cuda-11-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ linux-aarch64 test:
- !reference [.snippets, install-python+warp-aarch64]
- echo -e "\\e[0Ksection_end:`date +%s`:install_dependencies\\r\\e[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect --failfast
tags:
- arch/arm

Expand All @@ -126,7 +126,7 @@ linux-x86_64 test:
- python -m pip install -e .
- echo -e "\\e[0Ksection_end:`date +%s`:install_dependencies\\r\\e[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect --failfast

windows-x86_64 test:
stage: test
Expand All @@ -151,7 +151,7 @@ windows-x86_64 test:
- python -m pip install -e .
- Write-Output "$([char]27)[0Ksection_end:$(GetTime):install_dependencies$([char]13)$([char]27)[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect --failfast

# ==============================================================================
# Packaging Jobs
Expand Down
8 changes: 4 additions & 4 deletions .gitlab/ci/debug-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ mac-x86_64 build:
- !reference [.snippets, install-python+warp-aarch64]
- echo -e "\\e[0Ksection_end:`date +%s`:install_dependencies\\r\\e[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect --failfast
tags:
- arch/arm

Expand All @@ -118,7 +118,7 @@ linux-x86_64 test:
- python -m pip install -e .
- echo -e "\\e[0Ksection_end:`date +%s`:install_dependencies\\r\\e[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect --failfast

windows-x86_64 test:
stage: test
Expand All @@ -143,7 +143,7 @@ windows-x86_64 test:
- python -m pip install -e .
- Write-Output "$([char]27)[0Ksection_end:$(GetTime):install_dependencies$([char]13)$([char]27)[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect --failfast

mac-x86_64 test:
stage: test
Expand All @@ -158,7 +158,7 @@ mac-x86_64 test:
- python -m pip install --upgrade usd-core
- echo -e "\\e[0Ksection_end:`date +%s`:install_dependencies\\r\\e[0K"
script:
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect
- python -m warp.tests --junit-report-xml rspec.xml -s autodetect --failfast

# ==============================================================================
# Packaging Jobs
Expand Down

0 comments on commit f73cecb

Please sign in to comment.