Skip to content

Commit 3855c77

Browse files
committed
Populate repository
1 parent aee8ff8 commit 3855c77

Some content is hidden

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

60 files changed

+5852
-45
lines changed

.gitignore

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
docs/build/
14+
docs/docs_html/
15+
develop-eggs/
16+
dist/
17+
downloads/
18+
eggs/
19+
.eggs/
20+
lib/
21+
lib64/
22+
parts/
23+
sdist/
24+
var/
25+
wheels/
26+
*.egg-info/
27+
.installed.cfg
28+
*.egg
29+
ads_latest.zip
30+
31+
# PyInstaller
32+
# Usually these files are written by a python script from a template
33+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
34+
*.manifest
35+
*.spec
36+
37+
# Installer logs
38+
pip-log.txt
39+
pip-delete-this-directory.txt
40+
41+
# Unit test / coverage reports
42+
htmlcov/
43+
.tox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
.hypothesis/
51+
.pytest_cache
52+
53+
# Translations
54+
*.mo
55+
*.pot
56+
57+
# Django stuff:
58+
*.log
59+
local_settings.py
60+
61+
# Flask stuff:
62+
instance/
63+
.webassets-cache
64+
65+
# Scrapy stuff:
66+
.scrapy
67+
68+
# Sphinx documentation
69+
docs/_build/
70+
docs/build/
71+
docs/dask-worker-space/
72+
73+
# PyBuilder
74+
target/
75+
76+
# Jupyter Notebook
77+
.ipynb_checkpoints
78+
79+
# pyenv
80+
.python-version
81+
82+
# celery beat schedule file
83+
celerybeat-schedule
84+
85+
# SageMath parsed files
86+
*.sage.py
87+
88+
# dotenv
89+
.env
90+
91+
# virtualenv
92+
.venv
93+
venv/
94+
ENV/
95+
96+
# Spyder project settings
97+
.spyderproject
98+
.spyproject
99+
100+
# Rope project settings
101+
.ropeproject
102+
103+
# mkdocs documentation
104+
/site
105+
106+
# mypy
107+
.mypy_cache/
108+
109+
### Linux ###
110+
*~
111+
112+
# IntelliJ/Pycharm settings
113+
*.iml
114+
.idea
115+
.vscode/
116+
117+
# Mac OS metadata
118+
.DS_Store
119+
.AppleDouble
120+
.LSOverride
121+
122+
# dask related
123+
dask-worker-space
124+
125+
#sqllite databases
126+
*.db
127+
128+
Untitled*.ipynb
129+
*.lock
130+
*.dirlock
131+
132+
133+
# test results
134+
testresults.xml
135+
136+
137+
138+
# html reports of covered code by pytests and
139+
# execution data collected by coverage.py
140+
*coverage_html_report*
141+
.coverage
142+
.coverage*
143+
**.sqlite
144+
145+
extensions/**/node_modules/
146+
extensions/**/*.tgz
147+
logs/
148+
**/node_modules
149+
150+
# side-effects of running notebooks
151+
**/.mlx_static/**
152+
153+
# vim
154+
*.swp
155+
156+
*.whl
157+
.env
158+
local_workarea
159+
mlruns
160+
tmp
161+
conda
162+
163+
docs/build

.pre-commit-config.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.4.0
4+
hooks:
5+
- id: check-ast
6+
- id: check-docstring-first
7+
exclude: ^tests/
8+
- id: check-json
9+
- id: check-merge-conflict
10+
- id: check-yaml
11+
args: ['--allow-multiple-documents']
12+
- id: detect-private-key
13+
- id: end-of-file-fixer
14+
- id: pretty-format-json
15+
args: ['--autofix']
16+
- id: trailing-whitespace
17+
- repo: https://github.com/psf/black
18+
rev: 22.12.0
19+
hooks:
20+
- id: black
21+
- repo: https://github.com/pre-commit/pygrep-hooks
22+
rev: v1.9.0
23+
hooks:
24+
- id: rst-backticks
25+
- id: rst-inline-touching-normal

CONTRIBUTING.md

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
*Detailed instructions on how to contribute to the project, if applicable. Must include section about Oracle Contributor Agreement with link and instructions*
2-
31
# Contributing to this repository
42

53
We welcome your contributions! There are multiple ways to contribute.
64

75
## Opening issues
86

9-
For bugs or enhancement requests, please file a GitHub issue unless it's
10-
security related. When filing a bug remember that the better written the bug is,
7+
For bugs or enhancement requests, file a GitHub issue unless it's
8+
security related. When filing a bug, remember that the better written the bug is,
119
the more likely it is to be fixed. If you think you've found a security
12-
vulnerability, do not raise a GitHub issue and follow the instructions in our
10+
vulnerability, don't raise a GitHub issue and follow the instructions in our
1311
[security policy](./SECURITY.md).
1412

1513
## Contributing code
1614

17-
We welcome your code contributions. Before submitting code via a pull request,
18-
you will need to have signed the [Oracle Contributor Agreement][OCA] (OCA) and
15+
We welcome your code contributions. Before submitting code using a pull request,
16+
you must sign the [Oracle Contributor Agreement](https://oca.opensource.oracle.com) (OCA) and
1917
your commits need to include the following line using the name and e-mail
2018
address you used to sign the OCA:
2119

@@ -24,34 +22,32 @@ Signed-off-by: Your Name <you@example.org>
2422
```
2523

2624
This can be automatically added to pull requests by committing with `--sign-off`
27-
or `-s`, e.g.
25+
or `-s`, for example:
2826

2927
```text
3028
git commit --signoff
3129
```
3230

3331
Only pull requests from committers that can be verified as having signed the OCA
34-
can be accepted.
32+
are accepted.
3533

3634
## Pull request process
3735

3836
1. Ensure there is an issue created to track and discuss the fix or enhancement
3937
you intend to submit.
40-
1. Fork this repository.
41-
1. Create a branch in your fork to implement the changes. We recommend using
42-
the issue number as part of your branch name, e.g. `1234-fixes`.
43-
1. Ensure that any documentation is updated with the changes that are required
38+
2. Fork this repository.
39+
3. Create a branch in your fork to implement the changes. We recommend using
40+
the issue number as part of your branch name, for example `1234-fixes`.
41+
4. Ensure that any documentation is updated with the changes that are required
4442
by your change.
45-
1. Ensure that any samples are updated if the base image has been changed.
46-
1. Submit the pull request. *Do not leave the pull request blank*. Explain exactly
47-
what your changes are meant to do and provide simple steps on how to validate.
43+
5. Ensure that any samples are updated if the base image has been changed.
44+
6. Submit the pull request. *Don't leave the pull request blank*. Explain exactly
45+
what your changes are meant to do and provide simple steps about how to validate
4846
your changes. Ensure that you reference the issue you created as well.
49-
1. We will assign the pull request to 2-3 people for review before it is merged.
47+
7. We assign the pull request to 2-3 people for review before it is merged.
5048

5149
## Code of conduct
5250

5351
Follow the [Golden Rule](https://en.wikipedia.org/wiki/Golden_Rule). If you'd
54-
like more specific guidelines, see the [Contributor Covenant Code of Conduct][COC].
55-
56-
[OCA]: https://oca.opensource.oracle.com
57-
[COC]: https://www.contributor-covenant.org/version/1/4/code-of-conduct/
52+
like more specific guidelines, see the
53+
[Contributor Covenant Code of Conduct](https://www.contributor-covenant.org/version/1/4/code-of-conduct/).

ISSUE_POLICY.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# Issue Policy
2+
3+
The OCI MLflow Issue Policy outlines the categories of OCI MLflow GitHub issues and discusses the guidelines and processes associated with each type of issue.
4+
5+
Before filing an issue, make sure to [search for related issues](https://github.com/oracle/oci-mlflow/issues) and check if they address the same problem you're encountering.
6+
7+
## Issue Categories
8+
9+
Our policy states that GitHub issues fall into the following categories:
10+
11+
1. Feature Requests
12+
2. Bug Reports
13+
3. Documentation Fixes
14+
4. Installation Issues
15+
16+
Each category has its own GitHub issue template. Please refrain from deleting the issue template unless you are certain that your issue does not fit within its scope.
17+
18+
### Feature Requests
19+
20+
#### Guidelines
21+
22+
To increase the likelihood of having a feature request accepted, please ensure that:
23+
24+
- The request has a minimal scope (note that it's easier to add additional functionality later than to remove functionality).
25+
- The request has a significant impact on users and provides value that justifies the maintenance efforts required to support the feature in the future.
26+
27+
#### Lifecycle
28+
29+
Feature requests typically go through the following stages:
30+
31+
1. Submit a feature request GitHub Issue, providing a brief overview of the proposal and its motivation. If possible, include an implementation overview as well.
32+
2. The issue will be triaged to determine if more information is needed from the author, assign a priority, and route the request to the appropriate committers.
33+
3. Discuss the feature request with a committer who will provide input on the implementation overview or request a more detailed design if necessary.
34+
4. Once there is agreement on the feature request and its implementation, an implementation owner will be assigned.
35+
5. The implementation owner will start developing the feature and ultimately submit associated pull requests to the OCI MLflow Repository.
36+
37+
### Bug Reports
38+
39+
#### Guidelines
40+
41+
To ensure that maintainers can effectively assist with any reported bugs, please follow these guidelines:
42+
43+
- Fill out the bug report template completely, providing appropriate levels of detail, especially in the "Code to reproduce issue" section.
44+
- Verify that the bug you are reporting meets one of the following criteria:
45+
- It is a regression where a recent release of OCI MLflow no longer supports an operation that was supported in an earlier release.
46+
- A documented feature or functionality does not work as intended when executing a provided example from the documentation.
47+
- Any raised exception is directly from OCI MLflow and not the result of an underlying package's exception.
48+
- Make an effort to diagnose and troubleshoot the issue before filing the report.
49+
- Ensure that the environment in which you encountered the bug is supported as defined in the documentation.
50+
- Validate that OCI MLflow supports the functionality you are experiencing issues with. Remember that the absence of a feature does not constitute a bug.
51+
- Read the documentation for the feature related to the issue you are reporting. If you are certain that you are following the documented guidelines, please file a bug report.
52+
53+
#### Lifecycle
54+
55+
Bug reports typically go through the following stages:
56+
57+
1. Submit a bug report GitHub Issue, providing a high-level description of the bug and all the necessary information to reproduce it.
58+
2. The bug report will be triaged to determine if more information is required from the author, assign a priority, and route the issue to the appropriate committers.
59+
3. An OCI MLflow committer will reproduce the bug and provide feedback on how to implement a fix.
60+
4. Once an approach has been agreed upon, an owner for the fix will be assigned. For severe bugs, OCI MLflow committers may choose to take ownership to ensure a timely resolution.
61+
5. The fix owner will start implementing the solution and ultimately submit associated pull requests.
62+
63+
### Documentation Fixes
64+
65+
#### Lifecycle
66+
67+
Documentation issues typically go through the following stages:
68+
69+
1. Submit a documentation GitHub Issue, describing the issue and indicating its location(s) in the OCI MLflow documentation.
70+
2. The issue will be triaged to determine if more information is needed from the author, assign a priority, and route the request to the appropriate committers.
71+
3. An OCI MLflow committer will confirm the documentation issue and provide feedback on how to implement a fix.
72+
4. Once an approach has been agreed upon, an owner for the fix will be assigned. For severe documentation issues, OCI MLflow committers may choose to take ownership to ensure a timely resolution.
73+
5. The fix owner will start implementing the solution and ultimately submit associated pull requests.
74+
75+
### Installation Issues
76+
77+
#### Lifecycle
78+
79+
Installation issues typically go through the following stages:
80+
81+
1. Submit an installation GitHub Issue, describing the issue and indicating the platforms it affects.
82+
2. The issue will be triaged to determine if more information is needed from the author, assign a priority, and route the issue to the appropriate committers.
83+
3. An OCI MLflow committer will confirm the installation issue and provide feedback on how to implement a fix.
84+
4. Once an approach has been agreed upon, an owner for the fix will be assigned. For severe installation issues, OCI MLflow committers may choose to take ownership to ensure a timely resolution.
85+
5. The fix owner will start implementing the solution and ultimately submit associated pull requests.

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2023 Oracle and/or its affiliates.
1+
Copyright (c) 2023 Oracle and/or its affiliates. All rights reserved.
22

33
The Universal Permissive License (UPL), Version 1.0
44

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include LICENSE.txt
2+
include THIRD_PARTY_LICENSES.txt
3+
include oci_mlflow/version.json
4+
include oci_mlflow/templates/*.jinja2

Makefile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
include .env
2+
3+
.PHONY: build clean deploy
4+
5+
TAG:=latest
6+
IMAGE_NAME:=oci-mlflow
7+
CONTAINERDIR:=container-image
8+
RND:=1
9+
10+
clean:
11+
@rm -rf dist build oci_mlflow.egg-info
12+
13+
build: clean
14+
@python setup.py bdist_wheel
15+
16+
wheel: build tmp-copy-whl
17+
18+
build-image:
19+
docker build --network host --build-arg RND=$(RND) -t $(IMAGE_NAME):$(TAG) -f container-image/Dockerfile .
20+
21+
launch: build-image
22+
@docker run --rm -it --net host -v ~/.oci:/root/.oci --env-file .env --name oci-mlflow $(IMAGE_NAME):$(TAG)
23+
24+
launch-shell:
25+
@docker run --rm -it --net host -v ~/.oci:/root/.oci --env-file .env --entrypoint bash --name oci-mlflow-shell $(IMAGE_NAME):$(TAG)
26+
27+
launch-shell-remote:
28+
@docker run --rm -it --net host --env-file .env --entrypoint bash --name oci-mlflow-shell $(IMAGE_NAME):$(TAG)

0 commit comments

Comments
 (0)