-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from getindata/release-0.1.9
Release 0.1.9
- Loading branch information
Showing
22 changed files
with
791 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
plugins: | ||
pylint: | ||
enabled: true |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Define global code owners | ||
* @empe @szczeles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#### Description | ||
|
||
`describe the purpose of the change here` | ||
|
||
Resolves `<issue nr here>` | ||
|
||
##### PR Checklist | ||
- [ ] Tests added | ||
- [ ] [Changelog](CHANGELOG.md) updated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[settings] | ||
known_third_party = click,google,kedro,kfp,kubernetes,semver,setuptools,tabulate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v4.3.21 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/psf/black | ||
rev: stable | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
# Release workflow | ||
|
||
## PR Guidelines | ||
1. Fork branch from `develop`. | ||
1. Ensure to provide unit tests for new functionality. | ||
1. Install dev requirements: `pip install -r requirements-dev.txt` and setup a hook: `pre-commit install` | ||
1. Update documentation accordingly. | ||
1. Update [changelog](CHANGELOG.md) according to ["Keep a changelog"](https://keepachangelog.com/en/1.0.0/) guidelines. | ||
1. Squash changes with a single commit as much as possible and ensure verbose PR name. | ||
1. Open a PR against `develop` | ||
|
||
*We reserve the right to take over and modify or abandon PRs that do not match the workflow or are abandoned.* | ||
|
||
## Release workflow | ||
|
||
1. Create the release candidate: | ||
- Go to the `create-release-candidate action` | ||
- Go to the [Prepare release](https://github.com/getindata/kedro-kubeflow/actions?query=workflow%3A%22Prepare+release%22) action. | ||
- Click "Run workflow" | ||
- Enter the part of the version to bump (one of `<major>.<minor>.<patch>`) | ||
- Enter the part of the version to bump (one of `<major>.<minor>.<patch>`). Minor (x.**x**.x) is a default. | ||
2. If the workflow has run sucessfully: | ||
- Go to the newly openened PR named `Release candidate `<version>` | ||
- Check that changelog and version have been properly updated. | ||
- *(If everything is normal, skip this step)* Eventually pull the branch and make changes if necessary | ||
- Check that changelog and version have been properly updated. If not pull the branch and apply manual changes if necessary. | ||
- Merge the PR to master | ||
3. Checkout the `publish workflow`to see if: | ||
- The package has been uploaded on PyPI sucessfully | ||
3. Checkout the [Publish](https://github.com/getindata/kedro-kubeflow/actions?query=workflow%3APublish) workflow to see if: | ||
- The package has been uploaded on PyPI successfully | ||
- The changes have been merged back to develop | ||
4. If the pipeline has failed, please raise an issue to correct the CI, and ensure merge on develop "by hand"". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
"""kedro_kubeflow.""" | ||
|
||
version = "0.1.8" | ||
|
||
version = "0.1.9" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import os | ||
from typing import Any, Dict | ||
|
||
from kedro.framework.context import load_context | ||
from kedro.framework.hooks import hook_impl | ||
from kedro.io import DataCatalog | ||
from kedro.pipeline import Pipeline | ||
|
||
from .utils import is_mlflow_enabled | ||
|
||
|
||
class MLFlowActivateParentHook: | ||
@hook_impl | ||
def before_pipeline_run( | ||
self, | ||
run_params: Dict[str, Any], | ||
pipeline: Pipeline, | ||
catalog: DataCatalog, | ||
) -> None: | ||
|
||
if not is_mlflow_enabled(): | ||
return | ||
|
||
import mlflow | ||
from kedro_mlflow.framework.context import get_mlflow_config | ||
|
||
context = load_context( | ||
project_path=run_params["project_path"], | ||
env=run_params["env"], | ||
extra_params=run_params["extra_params"], | ||
) | ||
mlflow_conf = get_mlflow_config(context) | ||
mlflow_conf.setup(context) | ||
|
||
mlflow.start_run(run_id=os.getenv("MLFLOW_PARENT_ID")) | ||
|
||
|
||
mlflow_activate_parent_run = MLFlowActivateParentHook() |
Oops, something went wrong.