Skip to content

Fixes behavior when no git initialized. #111

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

Closed
wants to merge 2 commits into from

Conversation

em-pe
Copy link
Member

@em-pe em-pe commented Oct 13, 2021

Fixes DAG generation in non git repositories. You can specify commit id as KEDRO_CONFIG_COMMIT_ID env variable, otherwise it will try to take it from git and resolve to "UNKNOWN" if it's not possible.

Resolves #110


Keep in mind:

@@ -93,7 +104,7 @@ def _create_template_stream(
image=image,
pipeline_name=context_helper.pipeline_name,
schedule_interval=schedule_interval,
git_info=context_helper.session.store["git"],
commit_sha=get_commit_sha(context_helper),
Copy link
Contributor

@szczeles szczeles Oct 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is fantastic! But we still need git binary and .git folder inside docker image to log commit sha using kedro-mlflow, right?

@em-pe em-pe closed this Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure pipeline works when git not initialized
2 participants