Skip to content

Commit c39f6fa

Browse files
wylimadil90
andauthored
sunset premerge self-hosted pipelines (#2803)
Signed-off-by: Wenqi Li <[email protected]> Co-authored-by: Mohammad Adil <[email protected]>
1 parent 2c7ec57 commit c39f6fa

File tree

2 files changed

+1
-114
lines changed

2 files changed

+1
-114
lines changed

.github/workflows/pythonapp.yml

Lines changed: 0 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -200,120 +200,6 @@ jobs:
200200
env:
201201
QUICKTEST: True
202202

203-
GPU-quick-py3: # GPU with full dependencies
204-
if: github.repository == 'Project-MONAI/MONAI'
205-
strategy:
206-
matrix:
207-
environment:
208-
- "PT16+CUDA110"
209-
- "PT17+CUDA102"
210-
- "PT17+CUDA110"
211-
- "PT18+CUDA102"
212-
- "PT19+CUDA113"
213-
- "PT19+CUDA102"
214-
include:
215-
- environment: PT16+CUDA110
216-
# we explicitly set pytorch to -h to avoid pip install error
217-
pytorch: "-h"
218-
base: "nvcr.io/nvidia/pytorch:20.07-py3"
219-
- environment: PT17+CUDA102
220-
pytorch: "torch==1.7.1 torchvision==0.8.2"
221-
base: "nvcr.io/nvidia/cuda:10.2-devel-ubuntu18.04"
222-
- environment: PT17+CUDA110
223-
# we explicitly set pytorch to -h to avoid pip install error
224-
pytorch: "-h"
225-
base: "nvcr.io/nvidia/pytorch:20.09-py3"
226-
- environment: PT18+CUDA102
227-
pytorch: "torch==1.8.1 torchvision==0.9.1"
228-
base: "nvcr.io/nvidia/cuda:10.2-devel-ubuntu18.04"
229-
- environment: PT19+CUDA113
230-
# we explicitly set pytorch to -h to avoid pip install error
231-
pytorch: "-h"
232-
base: "nvcr.io/nvidia/pytorch:21.06-py3"
233-
- environment: PT19+CUDA102
234-
pytorch: "torch==1.9.0 torchvision==0.10.0"
235-
base: "nvcr.io/nvidia/cuda:10.2-devel-ubuntu18.04"
236-
container:
237-
image: ${{ matrix.base }}
238-
options: --gpus all
239-
runs-on: [self-hosted, linux, x64, common]
240-
steps:
241-
- uses: actions/checkout@v2
242-
- name: apt install
243-
run: |
244-
if [ ${{ matrix.environment }} = "PT17+CUDA102" ] || \
245-
[ ${{ matrix.environment }} = "PT18+CUDA102" ] || \
246-
[ ${{ matrix.environment }} = "PT19+CUDA102" ]
247-
then
248-
PYVER=3.6 PYSFX=3 DISTUTILS=python3-distutils && \
249-
apt-get update && apt-get install -y --no-install-recommends \
250-
curl \
251-
pkg-config \
252-
python$PYVER \
253-
python$PYVER-dev \
254-
python$PYSFX-pip \
255-
$DISTUTILS \
256-
rsync \
257-
swig \
258-
unzip \
259-
zip \
260-
zlib1g-dev \
261-
libboost-locale-dev \
262-
libboost-program-options-dev \
263-
libboost-system-dev \
264-
libboost-thread-dev \
265-
libboost-test-dev \
266-
libgoogle-glog-dev \
267-
libjsoncpp-dev \
268-
cmake \
269-
git && \
270-
rm -rf /var/lib/apt/lists/* && \
271-
export PYTHONIOENCODING=utf-8 LC_ALL=C.UTF-8 && \
272-
rm -f /usr/bin/python && \
273-
rm -f /usr/bin/python`echo $PYVER | cut -c1-1` && \
274-
ln -s /usr/bin/python$PYVER /usr/bin/python && \
275-
ln -s /usr/bin/python$PYVER /usr/bin/python`echo $PYVER | cut -c1-1` &&
276-
curl -O https://bootstrap.pypa.io/get-pip.py && \
277-
python get-pip.py && \
278-
rm get-pip.py;
279-
fi
280-
- name: Install dependencies
281-
run: |
282-
which python
283-
python -m pip install --upgrade pip wheel
284-
python -m pip install ${{ matrix.pytorch }}
285-
python -m pip install -r requirements-dev.txt
286-
python -m pip list
287-
- name: Run quick tests (GPU)
288-
run: |
289-
git clone --depth 1 \
290-
https://github.com/Project-MONAI/MONAI-extra-test-data.git /MONAI-extra-test-data
291-
export MONAI_EXTRA_TEST_DATA="/MONAI-extra-test-data"
292-
nvidia-smi
293-
export LAUNCH_DELAY=$(python -c "import numpy; print(numpy.random.randint(30) * 10)")
294-
echo "Sleep $LAUNCH_DELAY"
295-
sleep $LAUNCH_DELAY
296-
export CUDA_VISIBLE_DEVICES=$(coverage run -m tests.utils)
297-
echo $CUDA_VISIBLE_DEVICES
298-
trap 'if pgrep python; then pkill python; fi;' ERR
299-
python -c $'import torch\na,b=torch.zeros(1,device="cuda:0"),torch.zeros(1,device="cuda:1");\nwhile True:print(a,b)' > /dev/null &
300-
python -c "import torch; print(torch.__version__); print('{} of GPUs available'.format(torch.cuda.device_count()))"
301-
python -c 'import torch; print(torch.rand(5, 3, device=torch.device("cuda:0")))'
302-
python -c "import monai; monai.config.print_config()"
303-
# build for the current self-hosted CI Tesla V100
304-
BUILD_MONAI=1 TORCH_CUDA_ARCH_LIST="7.0" ./runtests.sh --quick --unittests
305-
if [ ${{ matrix.environment }} = "PT19+CUDA102" ]; then
306-
# test the clang-format tool downloading once
307-
coverage run -m tests.clang_format_utils
308-
fi
309-
coverage xml
310-
if pgrep python; then pkill python; fi
311-
shell: bash
312-
- name: Upload coverage
313-
uses: codecov/codecov-action@v1
314-
with:
315-
file: ./coverage.xml
316-
317203
packaging:
318204
runs-on: ubuntu-latest
319205
steps:

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ All code review comments should be specific, constructive, and actionable.
257257
1. Make in-line comments to specific code segments, [request for changes](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-request-reviews) if needed.
258258
1. Review any further code changes until all comments addressed by the contributors.
259259
1. Comment to trigger `/black` and/or `/integration-test` for optional auto code formatting and [integration tests](.github/workflows/integration.yml).
260+
1. [Maintainers] Review the changes and comment `/build` to trigger internal full tests.
260261
1. Merge the pull request to the dev branch.
261262
1. Close the corresponding task ticket on [the issue list][monai issue list].
262263

0 commit comments

Comments
 (0)