Skip to content

Commit dc2e16c

Browse files
committed
DEBUG - skip to standalone
1 parent 7435e44 commit dc2e16c

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

.azure/gpu-tests.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -125,21 +125,14 @@ jobs:
125125
python requirements/pytorch/check-avail-extras.py
126126
displayName: 'Env details'
127127
128-
- bash: bash .actions/pull_legacy_checkpoints.sh
129-
displayName: 'Get legacy checkpoints'
130-
131-
- bash: python -m coverage run --source pytorch_lightning -m pytest .
132-
workingDirectory: src/pytorch_lightning
133-
displayName: 'Testing: PyTorch doctests'
134-
135-
- bash: python -m coverage run --source pytorch_lightning -m pytest --ignore benchmarks -v --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50
128+
- bash: pytest tests/tests_pytorch/strategies/test_bagua_strategy.py
136129
env:
130+
PL_USE_MOCKED_MNIST: "1"
137131
PL_RUN_CUDA_TESTS: "1"
138-
workingDirectory: tests/tests_pytorch
139-
displayName: 'Testing: PyTorch standard'
132+
displayName: 'ASD'
140133
timeoutInMinutes: "35"
141134

142-
- bash: bash run_standalone_tests.sh
135+
- bash: bash run_standalone_tests.sh -k bagua
143136
workingDirectory: tests/tests_pytorch
144137
env:
145138
PL_USE_MOCKED_MNIST: "1"

tests/tests_pytorch/run_standalone_tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ set -e
1717

1818
# Batch size for testing: Determines how many standalone test invocations run in parallel
1919
# It can be set through the env variable PL_STANDALONE_TESTS_BATCH_SIZE and defaults to 6 if not set
20-
test_batch_size="${PL_STANDALONE_TESTS_BATCH_SIZE:-6}"
20+
test_batch_size="${PL_STANDALONE_TESTS_BATCH_SIZE:-1}"
2121
source="${PL_STANDALONE_TESTS_SOURCE}"
2222

2323
# this environment variable allows special tests to run
2424
export PL_RUN_STANDALONE_TESTS=1
2525
# python arguments
26-
defaults="-m coverage run --source $source --append -m pytest --no-header"
26+
defaults="-m pytest --no-header"
2727

2828
# find tests marked as `@RunIf(standalone=True)`. done manually instead of with pytest because it is faster
2929
grep_output=$(grep --recursive --word-regexp . --regexp 'standalone=True' --include '*.py')

0 commit comments

Comments
 (0)