Skip to content

Commit 9d97397

Browse files
authored
Merge pull request #443 from CrayLabs/develop
This PR brings master up to date with develop before releasing v0.6.0.
2 parents 1f78e4c + e3aa517 commit 9d97397

File tree

298 files changed

+11329
-3021
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

298 files changed

+11329
-3021
lines changed

.github/workflows/run_tests.yml

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,17 @@ env:
4444

4545
jobs:
4646
run_tests:
47-
name: Run tests with ${{ matrix.os }}, Python ${{ matrix.py_v}}, RedisAI ${{ matrix.rai }}
47+
name: Run tests ${{ matrix.subset }} with ${{ matrix.os }}, Python ${{ matrix.py_v}}, RedisAI ${{ matrix.rai }}
4848
runs-on: ${{ matrix.os }}
4949
strategy:
5050
fail-fast: false
5151
matrix:
52+
subset: [backends, slow_tests, group_a, group_b]
5253
os: [macos-12, ubuntu-20.04] # Operating systems
5354
compiler: [8] # GNU compiler version
54-
rai: [1.2.5, 1.2.7] # Redis AI versions
55+
rai: [1.2.7] # Redis AI versions
5556
py_v: [3.8, 3.9, '3.10'] # Python versions
56-
exclude:
57-
# Do not build with Redis AI 1.2.5 on MacOS
58-
- os: macos-12
59-
rai: 1.2.5
60-
# Do not build Redis AI 1.2.5 with py3.10
61-
# as wheels for dependecies are not availble
62-
- py_v: '3.10'
63-
rai: 1.2.5
57+
6458

6559
env:
6660
SMARTSIM_REDISAI: ${{ matrix.rai }}
@@ -86,7 +80,7 @@ jobs:
8680
echo "$(brew --prefix)/opt/make/libexec/gnubin" >> $GITHUB_PATH
8781
8882
- name: Build Singularity from source
89-
if: contains( matrix.os, 'ubuntu' ) && matrix.py_v == 3.9 && matrix.rai == '1.2.5'
83+
if: contains( matrix.os, 'ubuntu' ) && matrix.py_v == 3.9
9084
run: |
9185
sudo apt-get install -y libseccomp-dev pkg-config squashfs-tools cryptsetup curl git # wget build-essential
9286
echo 'export PATH=/usr/local/go/bin:$PATH' >> ~/.bashrc
@@ -100,16 +94,18 @@ jobs:
10094
sudo make -C builddir install
10195
10296
- name: singularity pull test container # This lets us time how long the pull takes
103-
if: contains( matrix.os, 'ubuntu' ) && matrix.py_v == 3.9 && matrix.rai == '1.2.5'
97+
if: contains( matrix.os, 'ubuntu' ) && matrix.py_v == 3.9
10498
run: singularity pull docker://alrigazzi/smartsim-testing
10599

106100
# Note: The develop branch of smartredis is installed first to ensure that any tests that depend
107101
# on developments of the client are brought in.
108102
- name: Install SmartSim (with ML backends)
109103
run: |
104+
110105
python -m pip install git+https://github.com/CrayLabs/SmartRedis.git@develop#egg=smartredis
111106
python -m pip install .[dev,ml]
112107
108+
113109
- name: Install ML Runtimes with Smart (with pt, tf, and onnx support)
114110
if: (matrix.py_v != '3.10')
115111
run: smart build --device cpu --onnx -v
@@ -119,22 +115,43 @@ jobs:
119115
run: smart build --device cpu -v
120116

121117
- name: Run mypy
122-
# TF 2.6.2 has a dep conflict with new mypy versions
123-
if: (matrix.rai != '1.2.5')
124118
run: |
125119
python -m pip install .[mypy]
126120
make check-mypy
127121
128122
- name: Run Pylint
129123
run: make check-lint
130124

125+
# Run pytest (backends subdirectory)
131126
- name: Run Pytest
127+
if: (matrix.subset == 'backends')
132128
run: |
133129
echo "SMARTSIM_LOG_LEVEL=debug" >> $GITHUB_ENV
134-
py.test -s --import-mode=importlib -o log_cli=true --cov=$(smart site) --cov-report=xml --cov-config=./tests/test_configs/cov/local_cov.cfg --ignore=tests/full_wlm/ ./tests/
130+
py.test -s --import-mode=importlib -o log_cli=true --cov=$(smart site) --cov-report=xml --cov-config=./tests/test_configs/cov/local_cov.cfg --ignore=tests/full_wlm/ ./tests/backends
131+
132+
# Run pytest (test subsets)
133+
- name: Run Pytest
134+
if: "!contains(matrix.subset, 'backends')" # if not running backend tests
135+
run: |
136+
echo "SMARTSIM_LOG_LEVEL=debug" >> $GITHUB_ENV
137+
py.test -s --import-mode=importlib -o log_cli=true --cov=$(smart site) --cov-report=xml --cov-config=./tests/test_configs/cov/local_cov.cfg --ignore=tests/full_wlm/ -m ${{ matrix.subset }} ./tests
138+
139+
# Upload artifacts on failure, ignoring binary files
140+
- name: Upload Artifact
141+
if: failure()
142+
uses: actions/upload-artifact@v3
143+
with:
144+
name: test_artifact
145+
path: |
146+
tests/test_output
147+
!**/*.so
148+
!**/*.pb
149+
!**/*.pt
150+
!**/core
151+
retention-days: 5
135152

136153
- name: Upload Pytest coverage to Codecov
137154
uses: codecov/codecov-action@v2
138155
with:
139-
fail_ci_if_error: true
156+
fail_ci_if_error: false
140157
files: ./coverage.xml

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ __pycache__
77
htmlcov
88
smartsim.egg-info
99
tests/test_output
10-
docs/*
10+
.DS_Store
1111

1212
# Dependencies
1313
smartsim/_core/.third-party
@@ -31,3 +31,8 @@ smartsim/_core/bin/*-cli
3131

3232
# created upon install
3333
smartsim/_core/lib
34+
35+
**/manifest/
36+
**/*.err
37+
**/*.out
38+
**/.smartsim/*

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ valid-metaclass-classmethod-first-arg=mcs
325325
max-args=9
326326

327327
# Maximum number of locals for function / method body
328-
max-locals=19
328+
max-locals=20
329329

330330
# Maximum number of return / yield for function / method body
331331
max-returns=11

.wci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
language: Python
2323

2424
release:
25-
version: 0.5.1
26-
date: 2023-09-13
25+
version: 0.6.0
26+
date: 2023-12-18
2727

2828
documentation:
2929
general: https://www.craylabs.org/docs/overview.html

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
include Makefile
22
graft smartsim/
3-
3+
global-exclude __pycache__
4+
global-exclude *.py[co]

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ tutorials-dev:
146146
@docker compose build tutorials-dev
147147
@docker run -p 8888:8888 smartsim-tutorials:dev-latest
148148

149-
# help: tutorials-prod - Build and start a docker container to run the tutorials (v0.4.2)
149+
# help: tutorials-prod - Build and start a docker container to run the tutorials (v0.6.0)
150150
.PHONY: tutorials-prod
151151
tutorials-prod:
152152
@docker compose build tutorials-prod
153-
@docker run -p 8888:8888 smartsim-tutorials:v0.4.2
153+
@docker run -p 8888:8888 smartsim-tutorials:v0.6.0
154154

155155

156156
# help:

README.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
<br />
77
<div display="inline-block">
88
<a href="https://github.com/CrayLabs/SmartSim"><b>Home</b></a>&nbsp;&nbsp;&nbsp;
9-
<a href="https://www.craylabs.org/docs/installation.html"><b>Install</b></a>&nbsp;&nbsp;&nbsp;
9+
<a href="https://www.craylabs.org/docs/installation_instructions/basic.html"><b>Install</b></a>&nbsp;&nbsp;&nbsp;
1010
<a href="https://www.craylabs.org/docs/overview.html"><b>Documentation</b></a>&nbsp;&nbsp;&nbsp;
11-
<a href="https://join.slack.com/t/craylabs/shared_invite/zt-nw3ag5z5-5PS4tIXBfufu1bIvvr71UA"><b>Slack Invite</b></a>&nbsp;&nbsp;&nbsp;
1211
<a href="https://github.com/CrayLabs"><b>Cray Labs</b></a>&nbsp;&nbsp;&nbsp;
12+
<a href="mailto:craylabs@hpe.com"><b>Contact</b></a>&nbsp;&nbsp;&nbsp;
13+
<a href="https://join.slack.com/t/craylabs/shared_invite/zt-nw3ag5z5-5PS4tIXBfufu1bIvvr71UA"><b>Join us on Slack!</b></a>&nbsp;&nbsp;&nbsp;
1314
</div>
1415
<br />
1516
<br />
@@ -649,18 +650,6 @@ from C, C++, Fortran and Python with the SmartRedis Clients:
649650
<td>ONNX</td>
650651
<td>1.11.x</td>
651652
</tr>
652-
<td rowspan="3">1.2.5</td>
653-
<td>PyTorch</td>
654-
<td>1.9.x</td>
655-
</tr>
656-
<tr>
657-
<td>TensorFlow\Keras</td>
658-
<td>2.6.x</td>
659-
</tr>
660-
<tr>
661-
<td>ONNX</td>
662-
<td>1.9.x</td>
663-
</tr>
664653
</tbody>
665654
</table>
666655

0 commit comments

Comments
 (0)