Unverified Commit 465828cd authored by Rhett Ying's avatar Rhett Ying Committed by GitHub
Browse files

[CI] pre-install required py packages in image for unit/tutorial test (#5276)

parent af79e540
...@@ -262,7 +262,7 @@ pipeline { ...@@ -262,7 +262,7 @@ pipeline {
agent { agent {
docker { docker {
label "linux-cpu-node" label "linux-cpu-node"
image "dgllib/dgl-ci-cpu:v221216" image "dgllib/dgl-ci-cpu:v230210"
args "-u root" args "-u root"
alwaysPull true alwaysPull true
} }
...@@ -280,7 +280,7 @@ pipeline { ...@@ -280,7 +280,7 @@ pipeline {
agent { agent {
docker { docker {
label "linux-cpu-node" label "linux-cpu-node"
image "dgllib/dgl-ci-gpu:cu102_v221216" image "dgllib/dgl-ci-gpu:cu102_v230210"
args "-u root" args "-u root"
alwaysPull true alwaysPull true
} }
...@@ -335,7 +335,7 @@ pipeline { ...@@ -335,7 +335,7 @@ pipeline {
agent { agent {
docker { docker {
label "linux-cpu-node" label "linux-cpu-node"
image "dgllib/dgl-ci-cpu:v221216" image "dgllib/dgl-ci-cpu:v230210"
alwaysPull true alwaysPull true
} }
} }
...@@ -352,7 +352,7 @@ pipeline { ...@@ -352,7 +352,7 @@ pipeline {
agent { agent {
docker { docker {
label "linux-gpu-node" label "linux-gpu-node"
image "dgllib/dgl-ci-gpu:cu102_v221216" image "dgllib/dgl-ci-gpu:cu102_v230210"
args "--runtime nvidia" args "--runtime nvidia"
alwaysPull true alwaysPull true
} }
...@@ -381,7 +381,7 @@ pipeline { ...@@ -381,7 +381,7 @@ pipeline {
agent { agent {
docker { docker {
label "linux-cpu-node" label "linux-cpu-node"
image "dgllib/dgl-ci-cpu:v220816" image "dgllib/dgl-ci-cpu:v230210"
alwaysPull true alwaysPull true
} }
} }
...@@ -402,7 +402,7 @@ pipeline { ...@@ -402,7 +402,7 @@ pipeline {
agent { agent {
docker { docker {
label "linux-gpu-node" label "linux-gpu-node"
image "dgllib/dgl-ci-gpu:cu101_v220816" image "dgllib/dgl-ci-gpu:cu101_v230210"
args "--runtime nvidia" args "--runtime nvidia"
alwaysPull true alwaysPull true
} }
...@@ -424,7 +424,7 @@ pipeline { ...@@ -424,7 +424,7 @@ pipeline {
agent { agent {
docker { docker {
label "linux-cpu-node" label "linux-cpu-node"
image "dgllib/dgl-ci-cpu:v221216" image "dgllib/dgl-ci-cpu:v230210"
args "--shm-size=4gb" args "--shm-size=4gb"
alwaysPull true alwaysPull true
} }
...@@ -476,7 +476,7 @@ pipeline { ...@@ -476,7 +476,7 @@ pipeline {
agent { agent {
docker { docker {
label "linux-gpu-node" label "linux-gpu-node"
image "dgllib/dgl-ci-gpu:cu102_v221216" image "dgllib/dgl-ci-gpu:cu102_v230210"
args "--runtime nvidia --shm-size=8gb" args "--runtime nvidia --shm-size=8gb"
alwaysPull true alwaysPull true
} }
...@@ -504,7 +504,7 @@ pipeline { ...@@ -504,7 +504,7 @@ pipeline {
agent { agent {
docker { docker {
label "linux-cpu-node" label "linux-cpu-node"
image "dgllib/dgl-ci-cpu:v221216" image "dgllib/dgl-ci-cpu:v230210"
args "--shm-size=4gb" args "--shm-size=4gb"
alwaysPull true alwaysPull true
} }
...@@ -549,7 +549,7 @@ pipeline { ...@@ -549,7 +549,7 @@ pipeline {
agent { agent {
docker { docker {
label "linux-cpu-node" label "linux-cpu-node"
image "dgllib/dgl-ci-cpu:v221216" image "dgllib/dgl-ci-cpu:v230210"
alwaysPull true alwaysPull true
} }
} }
......
...@@ -14,3 +14,9 @@ dependencies: ...@@ -14,3 +14,9 @@ dependencies:
- nltk - nltk
- requests[security] - requests[security]
- tqdm - tqdm
- psutil
- pyyaml
- pydantic
- pandas
- rdflib
- ogb
...@@ -14,3 +14,9 @@ dependencies: ...@@ -14,3 +14,9 @@ dependencies:
- nltk - nltk
- requests[security] - requests[security]
- tqdm - tqdm
- psutil
- pyyaml
- pydantic
- pandas
- rdflib
- ogb
...@@ -14,3 +14,9 @@ dependencies: ...@@ -14,3 +14,9 @@ dependencies:
- nltk - nltk
- requests[security] - requests[security]
- tqdm - tqdm
- psutil
- pyyaml
- pydantic
- pandas
- rdflib
- ogb
...@@ -14,3 +14,9 @@ dependencies: ...@@ -14,3 +14,9 @@ dependencies:
- nltk - nltk
- requests[security] - requests[security]
- tqdm - tqdm
- psutil
- pyyaml
- pydantic
- pandas
- rdflib
- ogb
--find-links https://download.pytorch.org/whl/torch_stable.html --find-links https://download.pytorch.org/whl/torch_stable.html
torch==1.12.0+cpu torch==1.12.0+cpu
torchmetrics
pytest pytest
nose nose
numpy numpy
...@@ -13,3 +14,9 @@ tqdm ...@@ -13,3 +14,9 @@ tqdm
pandas pandas
scikit-learn scikit-learn
ogb ogb
psutil
pyyaml
pydantic
rdflib
filelock
pyarrow
--find-links https://download.pytorch.org/whl/torch_stable.html --find-links https://download.pytorch.org/whl/torch_stable.html
torch==1.12.0+cu102 torch==1.12.0+cu102
torchmetrics
pytest pytest
nose nose
numpy numpy
...@@ -13,3 +14,7 @@ tqdm ...@@ -13,3 +14,7 @@ tqdm
pandas pandas
scikit-learn scikit-learn
ogb ogb
psutil
pyyaml
pydantic
rdflib
...@@ -10,7 +10,7 @@ apt-get update --fix-missing && \ ...@@ -10,7 +10,7 @@ apt-get update --fix-missing && \
wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \ /bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \ rm ~/miniconda.sh && \
/opt/conda/bin/conda clean -tipsy && \ /opt/conda/bin/conda clean -tipy && \
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \ echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc echo "conda activate base" >> ~/.bashrc
......
...@@ -30,8 +30,6 @@ export CUDA_VISIBLE_DEVICES=-1 ...@@ -30,8 +30,6 @@ export CUDA_VISIBLE_DEVICES=-1
conda activate ${DGLBACKEND}-ci conda activate ${DGLBACKEND}-ci
python3 -m pip install pytest psutil pyyaml pydantic pandas rdflib ogb filelock pyarrow || fail "pip install"
export PYTHONUNBUFFERED=1 export PYTHONUNBUFFERED=1
export OMP_NUM_THREADS=1 export OMP_NUM_THREADS=1
export DMLC_LOG_DEBUG=1 export DMLC_LOG_DEBUG=1
......
...@@ -23,5 +23,4 @@ popd ...@@ -23,5 +23,4 @@ popd
export LC_ALL=C.UTF-8 export LC_ALL=C.UTF-8
export LANG=C.UTF-8 export LANG=C.UTF-8
python -m pip install psutil || fail "pip install"
python3 -m pytest -v --junitxml=pytest_go.xml --durations=100 tests/go/test_model.py || fail "go" python3 -m pytest -v --junitxml=pytest_go.xml --durations=100 tests/go/test_model.py || fail "go"
#!/bin/bash
# The working directory for this script will be "tests/scripts"
. /opt/conda/etc/profile.d/conda.sh
conda activate mxnet-ci
TUTORIAL_ROOT="./tutorials"
function fail {
echo FAIL: $@
exit -1
}
export MPLBACKEND=Agg
export DGLBACKEND=mxnet
export DGL_LIBRARY_PATH=${PWD}/build
export PYTHONPATH=${PWD}/python:$PYTHONPATH
export DGL_DOWNLOAD_DIR=${PWD}
pushd ${TUTORIAL_ROOT} > /dev/null
# Install requirements
pip3 install -r requirements.txt || fail "installing requirements"
# Test
for f in $(find . -name "*_mx.py")
do
echo "Running tutorial ${f} ..."
python3 $f || fail "run ${f}"
done
popd > /dev/null
\ No newline at end of file
...@@ -33,7 +33,6 @@ fi ...@@ -33,7 +33,6 @@ fi
conda activate ${DGLBACKEND}-ci conda activate ${DGLBACKEND}-ci
python3 -m pip install pytest psutil pyyaml pydantic pandas rdflib ogb torchmetrics || fail "pip install"
if [ $DGLBACKEND == "mxnet" ] if [ $DGLBACKEND == "mxnet" ]
then then
python3 -m pytest -v --junitxml=pytest_compute.xml --durations=100 --ignore=tests/compute/test_ffi.py tests/compute || fail "compute" python3 -m pytest -v --junitxml=pytest_compute.xml --durations=100 --ignore=tests/compute/test_ffi.py tests/compute || fail "compute"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment