Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(mdz deploy): Make watch by default (Updated PR) #136

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
07e8467
comment out code for server's --polling-interval flag (#20)
tddschn Jul 31, 2023
36092a3
chore: Update readme (#72)
gaocegege Jul 31, 2023
300cfd5
chore: Bump helm chart version (#74)
gaocegege Jul 31, 2023
eff8536
chore: Find the IP from the load balancer (#75)
gaocegege Jul 31, 2023
bcb5ba2
feat: skip gpu if nvidia-toolkit is not installed (#76)
kemingy Jul 31, 2023
be91488
chore: Bump version (#77)
gaocegege Jul 31, 2023
73f1007
feat: add force-gpu flag, detect gpu from lspci (#78)
kemingy Aug 1, 2023
bae49eb
fix: server list show gpu info (#81)
kemingy Aug 1, 2023
c2144b7
chore: Rename env var to MDZ_URL (#82)
gaocegege Aug 1, 2023
12b3ded
chore: Bump version (#83)
gaocegege Aug 1, 2023
dbdeae6
chore: Update readme (#84)
gaocegege Aug 1, 2023
60d2086
chore: Update license (#86)
gaocegege Aug 1, 2023
4c0bc39
feat: add pypi release (#87)
kemingy Aug 1, 2023
ed138df
fix: upload go releaser artifacts (#88)
kemingy Aug 1, 2023
4d7451e
fix: use release event, fix artifact path (#89)
kemingy Aug 1, 2023
6b34059
fix: sdist build requirements (#90)
kemingy Aug 1, 2023
2a0d9f7
chore: add meta data to setup (#91)
kemingy Aug 1, 2023
943761c
feat: Add installation (#92)
gaocegege Aug 1, 2023
0aeb6c0
feat(cli): Support command flag in deploy (#95)
gaocegege Aug 2, 2023
f52fbb8
feat: support registry mirror (#96)
kemingy Aug 2, 2023
4b0ef3c
fix: list server label verbose panic (#97)
kemingy Aug 2, 2023
23b18f2
feat: support `mdz server destroy` cmd (#99)
kemingy Aug 2, 2023
700fb86
feat: add telemetry (#103)
kemingy Aug 3, 2023
5b8145b
docs: mirror config (#106)
kemingy Aug 3, 2023
2fc7853
chore: Remove unnecessary version info (#107)
gaocegege Aug 3, 2023
61d182c
chore: Bump version (#108)
gaocegege Aug 3, 2023
1b0d1e0
chore: Update README (#114)
gaocegege Aug 3, 2023
04d9068
feat: Add a simple landing page (#115)
gaocegege Aug 3, 2023
408994f
chore: Bump version (#116)
gaocegege Aug 4, 2023
9e9e114
feat: use pretty quantity for memory resource (#118)
kemingy Aug 5, 2023
5ed6ef6
feat: Add readme (#120)
gaocegege Aug 5, 2023
766ee3e
chore: Add sudo doc (#121)
gaocegege Aug 5, 2023
dd993ec
feat: support HTTP probe configuration (#129)
kemingy Aug 7, 2023
49557f2
chore: fix typos (#128)
kemingy Aug 7, 2023
5cadbb7
docs: add @Zheaoli as a contributor (#130)
gaocegege Aug 7, 2023
c23067f
feat: support follow the k8s log (#131)
kemingy Aug 8, 2023
67bbc48
merge with upstream
tddschn Aug 9, 2023
df7893a
attempt to fix Client type import
tddschn Aug 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,28 @@
"contributions": [
"ideas"
]
},
{
"login": "Xuanwo",
"name": "Xuanwo",
"avatar_url": "https://avatars.githubusercontent.com/u/5351546?v=4",
"profile": "https://xuanwo.io/",
"contributions": [
"content",
"design",
"ideas"
]
},
{
"login": "Zheaoli",
"name": "Nadeshiko Manju",
"avatar_url": "https://avatars.githubusercontent.com/u/7054676?v=4",
"profile": "http://manjusaka.itscoder.com/",
"contributions": [
"bug",
"design",
"ideas"
]
}
],
"contributorsPerLine": 7
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ concurrency:
cancel-in-progress: true

jobs:
typos-check:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v3
- name: Check spelling with custom config file
uses: crate-ci/[email protected]
with:
config: ./typos.toml

test:
name: test
strategy:
Expand Down
51 changes: 48 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: release

on:
push:
tags:
- 'v*'
release:
types: [published]
pull_request:
paths:
- '.github/workflows/release.yml'
Expand Down Expand Up @@ -36,3 +35,49 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: upload gobin
uses: actions/upload-artifact@v3
with:
name: gobin_${{ github.event.release.tag_name }}
retention-days: 1
path: |
dist/mdz_linux_amd64_v1/mdz
if-no-files-found: error
pypi_publish:
needs: goreleaser
# only trigger on main repo when tag starts with v
if: github.repository == 'tensorchord/openmodelz' && startsWith(github.ref, 'refs/tags/v')
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
matrix:
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v3
- name: Get gobin
uses: actions/download-artifact@v3
with:
name: gobin_${{ github.event.release.tag_name }}
path: dist/
- name: Configure linux build environment
if: runner.os == 'Linux'
run: |
mkdir -p mdz/bin
mv dist/mdz mdz/bin/mdz
chmod +x mdz/bin/mdz
- name: Build wheels
uses: pypa/[email protected]
- name: Build source distribution
if: runner.os == 'Linux' # Only release source under linux to avoid conflict
run: |
python -m pip install wheel setuptools_scm
python setup.py sdist
mv dist/*.tar.gz wheelhouse/
- name: Upload to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python -m pip install --upgrade pip
python -m pip install twine
python -m twine upload wheelhouse/*
185 changes: 185 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,186 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
_version.txt
_version.py
wheelhouse/

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
.ruff_cache/
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/

# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work
Loading