Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
465828cd
Unverified
Commit
465828cd
authored
Feb 10, 2023
by
Rhett Ying
Committed by
GitHub
Feb 10, 2023
Browse files
[CI] pre-install required py packages in image for unit/tutorial test (#5276)
parent
af79e540
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
49 additions
and
47 deletions
+49
-47
Jenkinsfile
Jenkinsfile
+10
-10
docker/Dockerfile.ci_gpu_cu101
docker/Dockerfile.ci_gpu_cu101
+0
-0
docker/install/conda_env/mxnet_cpu.yml
docker/install/conda_env/mxnet_cpu.yml
+6
-0
docker/install/conda_env/mxnet_gpu.yml
docker/install/conda_env/mxnet_gpu.yml
+6
-0
docker/install/conda_env/tensorflow_cpu.yml
docker/install/conda_env/tensorflow_cpu.yml
+6
-0
docker/install/conda_env/tensorflow_gpu.yml
docker/install/conda_env/tensorflow_gpu.yml
+6
-0
docker/install/conda_env/torch_cpu_pip.txt
docker/install/conda_env/torch_cpu_pip.txt
+8
-1
docker/install/conda_env/torch_gpu_pip.txt
docker/install/conda_env/torch_gpu_pip.txt
+6
-1
docker/install/ubuntu_install_conda.sh
docker/install/ubuntu_install_conda.sh
+1
-1
tests/scripts/task_distributed_test.sh
tests/scripts/task_distributed_test.sh
+0
-2
tests/scripts/task_go_test.sh
tests/scripts/task_go_test.sh
+0
-1
tests/scripts/task_mxnet_tutorial_test.sh
tests/scripts/task_mxnet_tutorial_test.sh
+0
-30
tests/scripts/task_unit_test.sh
tests/scripts/task_unit_test.sh
+0
-1
No files found.
Jenkinsfile
View file @
465828cd
...
@@ -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:v2
21
21
6
"
image
"dgllib/dgl-ci-cpu:v2
30
21
0
"
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_v2
21
21
6
"
image
"dgllib/dgl-ci-gpu:cu102_v2
30
21
0
"
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:v2
21
21
6
"
image
"dgllib/dgl-ci-cpu:v2
30
21
0
"
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_v2
21
21
6
"
image
"dgllib/dgl-ci-gpu:cu102_v2
30
21
0
"
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:v2
20816
"
image
"dgllib/dgl-ci-cpu:v2
30210
"
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_v2
20816
"
image
"dgllib/dgl-ci-gpu:cu101_v2
30210
"
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:v2
21
21
6
"
image
"dgllib/dgl-ci-cpu:v2
30
21
0
"
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_v2
21
21
6
"
image
"dgllib/dgl-ci-gpu:cu102_v2
30
21
0
"
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:v2
21
21
6
"
image
"dgllib/dgl-ci-cpu:v2
30
21
0
"
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:v2
21
21
6
"
image
"dgllib/dgl-ci-cpu:v2
30
21
0
"
alwaysPull
true
alwaysPull
true
}
}
}
}
...
...
docker/Dockerfile.ci_gpu_
220816
→
docker/Dockerfile.ci_gpu_
cu101
View file @
465828cd
File moved
docker/install/conda_env/mxnet_cpu.yml
View file @
465828cd
...
@@ -14,3 +14,9 @@ dependencies:
...
@@ -14,3 +14,9 @@ dependencies:
-
nltk
-
nltk
-
requests[security]
-
requests[security]
-
tqdm
-
tqdm
-
psutil
-
pyyaml
-
pydantic
-
pandas
-
rdflib
-
ogb
docker/install/conda_env/mxnet_gpu.yml
View file @
465828cd
...
@@ -14,3 +14,9 @@ dependencies:
...
@@ -14,3 +14,9 @@ dependencies:
-
nltk
-
nltk
-
requests[security]
-
requests[security]
-
tqdm
-
tqdm
-
psutil
-
pyyaml
-
pydantic
-
pandas
-
rdflib
-
ogb
docker/install/conda_env/tensorflow_cpu.yml
View file @
465828cd
...
@@ -14,3 +14,9 @@ dependencies:
...
@@ -14,3 +14,9 @@ dependencies:
-
nltk
-
nltk
-
requests[security]
-
requests[security]
-
tqdm
-
tqdm
-
psutil
-
pyyaml
-
pydantic
-
pandas
-
rdflib
-
ogb
docker/install/conda_env/tensorflow_gpu.yml
View file @
465828cd
...
@@ -14,3 +14,9 @@ dependencies:
...
@@ -14,3 +14,9 @@ dependencies:
-
nltk
-
nltk
-
requests[security]
-
requests[security]
-
tqdm
-
tqdm
-
psutil
-
pyyaml
-
pydantic
-
pandas
-
rdflib
-
ogb
docker/install/conda_env/torch_cpu_pip.txt
View file @
465828cd
--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
...
@@ -9,7 +10,13 @@ networkx
...
@@ -9,7 +10,13 @@ networkx
matplotlib
matplotlib
nltk
nltk
requests[security]
requests[security]
tqdm
tqdm
pandas
pandas
scikit-learn
scikit-learn
ogb
ogb
psutil
pyyaml
pydantic
rdflib
filelock
pyarrow
docker/install/conda_env/torch_gpu_pip.txt
View file @
465828cd
--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
...
@@ -9,7 +10,11 @@ networkx
...
@@ -9,7 +10,11 @@ networkx
matplotlib
matplotlib
nltk
nltk
requests[security]
requests[security]
tqdm
tqdm
pandas
pandas
scikit-learn
scikit-learn
ogb
ogb
psutil
pyyaml
pydantic
rdflib
docker/install/ubuntu_install_conda.sh
View file @
465828cd
...
@@ -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
-tip
s
y
&&
\
/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
...
...
tests/scripts/task_distributed_test.sh
View file @
465828cd
...
@@ -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
...
...
tests/scripts/task_go_test.sh
View file @
465828cd
...
@@ -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"
tests/scripts/task_mxnet_tutorial_test.sh
deleted
100755 → 0
View file @
af79e540
#!/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
tests/scripts/task_unit_test.sh
View file @
465828cd
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment