Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Remove cli examples #407

Closed
wants to merge 4 commits into from
Closed

Remove cli examples #407

wants to merge 4 commits into from

Conversation

aguschin
Copy link
Contributor

close #387

$ mlem clone --help

 Usage: mlem clone [options] uri target

 Copy a MLEM Object from `uri` and saves a copy of it to `target` path.
 Documentation: <https://mlem.ai/doc/command-reference/clone>

╭─ Arguments ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ *    uri         TEXT  URI to object you want to clone [default: None] [required]                                                                    │
│ *    target      TEXT  Path to store the downloaded object. [default: None] [required]                                                               │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --project              -p                TEXT  Path to MLEM project [default: (none)]                                                                │
│ --rev                                    TEXT  Repo revision to use [default: (none)]                                                                │
│ --target-project,--tp                    TEXT  Project to save target to [default: (none)]                                                           │
│ --external             -e                      Save result not in .mlem, but directly in project                                                     │
│ --index                    --no-index          Whether to index output in .mlem directory [default: no-index]                                        │
│ --help                 -h                      Show this message and exit.                                                                           │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Look like it works (maybe need to fix tests), except for groups the link to documentation is incorrect (for mlem deploy apply it's https://mlem.ai/doc/command-reference/apply

Looking into how to fix this.

mike0sv and others added 4 commits September 9, 2022 01:39
* Add -c help to declare WIP

* extrapolate for other commands

* some field docs and little improvements

* cli utils

* add simple_parsing

* fix tests

* fix tests

* lazy help

* ooopsie

* class and fields docstrings

* reparsing cli params for nested complex objects
rewrite get_field_docstring for 9000x speed
fix build_model bug

* fix for py37

* support lists in build_model

* support lists in cli

* nested options WIP

* very nested options WIP

* all but flat nested WIP

* lil refactoring

* flat nested stuff DONE

* Update mlem/contrib/heroku/build.py

Co-authored-by: Alexander Guschin <[email protected]>

* Update mlem/cli/declare.py

Co-authored-by: Alexander Guschin <[email protected]>

* get rid of --conf, add mlem abc to declare

* fix tests

* fix lazyness

* fix serialization

* fix tests

* fix tests

* Update bitbucketfs.py

* Apply suggestions from code review

* fix comments and disable failfast for gh actions

* backport docs from mlem.ai

* sort import choices

* make run_cmd optional instead of bool

* docs for torch import

* allow --load for groups
add server config into docker build

* fix windows bugs

* suddenly fix dockerhub requests

* suddenly fix dockerhub requests

Co-authored-by: Alexander Guschin <[email protected]>
* new state POC

* update docker and mock deployments

* add locks

* simplify deployment meta (by complexifying code)

* fix tests

* fix tests

* fix tests

* fix win tests

* default env and server

* fsspec manager as default

* Sagemaker deployments (#366)

* WIP

* its alive (kinda)

* it works but it's ugly

* little less ugly

* lil fix

* fix lint

* fix lint

* fix tests

* fix tests

* fix windows bugs

* fix tests

* fix tests

* fix for dirs deployment state

* create MlemSource to choose how mlem is added to docker

* test that all configs in entrypoints

* better cli val error

* better docker package install

* finish merge

* fix short tests

* fix short tests

* Update mlem/contrib/sagemaker/runtime.py

Co-authored-by: Alexander Guschin <[email protected]>

* Update mlem/core/objects.py

Co-authored-by: Alexander Guschin <[email protected]>

* Update mlem/core/objects.py

Co-authored-by: Alexander Guschin <[email protected]>

* Update mlem/contrib/docker/base.py

Co-authored-by: Alexander Guschin <[email protected]>

* Update mlem/contrib/docker/base.py

Co-authored-by: Alexander Guschin <[email protected]>

* Update mlem/contrib/docker/base.py

Co-authored-by: Alexander Guschin <[email protected]>

* Update mlem/contrib/heroku/meta.py

Co-authored-by: Alexander Guschin <[email protected]>

* Apply suggestions from code review

Co-authored-by: Alexander Guschin <[email protected]>

* Update mlem/contrib/sagemaker/build.py

Co-authored-by: Alexander Guschin <[email protected]>

Co-authored-by: Alexander Guschin <[email protected]>
* fix tests

* Sagemaker deployments (#366)

* WIP

* its alive (kinda)

* it works but it's ugly

* little less ugly

* lil fix

* fix lint

* fix lint

* fix tests

* fix tests

* fix windows bugs

* fix tests

* fix tests

* test that all configs in entrypoints

* fix short tests

* wip kubernetes support

* use APIs to deploy and get status, deletion still pending

* remove get client from state

* fix param

* fix jinja template

* working remove and status

* fix client

* small fixes

* attempt to add tests

* setup github actions for k8s tests

* fix linter

* use predict method of client

* allow registry to be configurable by cli

* change calculation of host and port according to service type

* re-enable k8s test as new workflow

* fix daemon access in tests

* make linter happy

* fix fixtures

* suggested fixes and refactor

* make namespace as a separate field and use enums

* use watcher to figure out when resources are deleted

* check minikube status before loading kubeconfig in fixture

* minor suggestions

* use enums for comparisons as well

* create abstract class for services for host and port info

* raise error when service of type clusterIP

* fix build and use tag as model hash

* fix echo message

* hot swapping of docker image deployed

* remove unnecessary f-string

* skip swapping when same hash is tried to be deployed again

* suggested improvements

* fix lint

* fix pylint

* suggested improvements

* fix pylint

* update entrypoints

* add docstrings for K8sYamlBuildArgs

* add docstrings for k8s service type classes

* capitalize docstrings for fields

* remove service type enum

* Remove new workflow for K8s

* remove duplicate methods

* remove version from iterative-telemetry

Co-authored-by: mike0sv <[email protected]>
@aguschin aguschin self-assigned this Sep 15, 2022
@aguschin aguschin requested a review from a team September 15, 2022 11:23
@aguschin aguschin temporarily deployed to internal September 15, 2022 11:23 Inactive
@codecov
Copy link

codecov bot commented Sep 15, 2022

Codecov Report

Base: 87.44% // Head: 86.94% // Decreases project coverage by -0.50% ⚠️

Coverage data is based on head (a18fa68) compared to base (5cef637).
Patch coverage: 73.87% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #407      +/-   ##
==========================================
- Coverage   87.44%   86.94%   -0.51%     
==========================================
  Files          81       92      +11     
  Lines        6365     7796    +1431     
==========================================
+ Hits         5566     6778    +1212     
- Misses        799     1018     +219     
Impacted Files Coverage Δ
mlem/cli/checkenv.py 100.00% <ø> (ø)
mlem/cli/clone.py 100.00% <ø> (ø)
mlem/cli/dev.py 50.00% <ø> (ø)
mlem/cli/import_object.py 100.00% <ø> (ø)
mlem/cli/init.py 100.00% <ø> (ø)
mlem/cli/link.py 100.00% <ø> (ø)
mlem/contrib/bitbucketfs.py 96.52% <ø> (ø)
mlem/contrib/callable.py 98.26% <ø> (ø)
mlem/contrib/catboost.py 96.87% <ø> (ø)
mlem/contrib/dvc.py 60.29% <ø> (ø)
... and 69 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@aguschin aguschin temporarily deployed to internal September 15, 2022 12:30 Inactive
@aguschin
Copy link
Contributor Author

aguschin commented Sep 15, 2022

closing this since it looks I can't change the target branch
reopen in #408

@aguschin aguschin closed this Sep 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem with example in docs
3 participants