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

enable component build unit test #228

Merged
merged 3 commits into from
Nov 15, 2018
Merged

Conversation

gaoning777
Copy link
Contributor

@gaoning777 gaoning777 commented Nov 13, 2018

This change is Reviewable

@coveralls
Copy link

coveralls commented Nov 13, 2018

Pull Request Test Coverage Report for Build 267

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 67.506%

Totals Coverage Status
Change from base Build 265: 0.0%
Covered Lines: 1535
Relevant Lines: 2182

💛 - Coveralls

@@ -86,22 +84,17 @@ def _wrap_files_in_tarball(self, tarball_path, files={}):
for key, value in files.items():
tarball.add(value, arcname=key)

def prepare_docker_tarball_with_py(self, arc_python_filename, python_filepath, base_image):
def prepare_docker_tarball_with_py(self, arc_python_filename, python_filepath, base_image, local_tarball_path):
Copy link
Contributor

@Ark-kun Ark-kun Nov 14, 2018

Choose a reason for hiding this comment

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

How about prepare_docker_tarball_with_py(self, python_filepath, local_tarball_path, base_image='python:3.5', arc_python_filename='program.py')

BTW, can python_filepath be absolute?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question, the python_filepath can be absolute or relative.
I think it might be better not to give default values, or else the error messages might be misleading once the container launched but the program.py is not found.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good question, the python_filepath can be absolute or relative.

That's good. The problem is that your code will fail in one of those cases.

Copy link
Contributor

@Ark-kun Ark-kun Nov 15, 2018

Choose a reason for hiding this comment

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

the error messages might be misleading once the container launched but the program.py is not found.

How come this file is not in the container? You're putting it there yourself.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right. I'm good with default value for arc_python_filename. However, I do not think we should add a default value for base_image. This parameter should be mandatory from the DockerfileHelper if not for out layer APIs.

@Ark-kun
Copy link
Contributor

Ark-kun commented Nov 15, 2018

I'm approving this PR, but these code files have bugs and also need some refactoring.

We should address it in new PRs.

@Ark-kun
Copy link
Contributor

Ark-kun commented Nov 15, 2018

/lgtm

@gaoning777
Copy link
Contributor Author

I'm approving this PR, but these code files have bugs and also need some refactoring.

We should address it in new PRs.

Do you mind pointing out where the bugs are? Are the bugs you mentioned related to the new codes in this PR or those already exist before this PR? Thanks. If there are bugs that are introduced by this PR, I will not hesitate to address them in this PR instead of putting off to future PRs.

@gaoning777
Copy link
Contributor Author

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gaoning777

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

1 similar comment
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gaoning777

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 263812b into master Nov 15, 2018
@gaoning777 gaoning777 deleted the ngao/component-build-unit-test branch November 16, 2018 01:57
Linchin pushed a commit to Linchin/pipelines that referenced this pull request Apr 11, 2023
…#228)

* Fix for ks 0.12.0

* Fix test and lint

* Fix pylint

* Check apiVersion in app.yaml

* Fix test

* Fix test
magdalenakuhn17 pushed a commit to magdalenakuhn17/pipelines that referenced this pull request Oct 22, 2023
* avoid double mutation of deployments

* Revert "avoid double mutation of deployments"

This reverts commit ceb8b209628fdb8e013ac7ee900b51e34881bce4.

* model initializer injector should be idempotent
HumairAK pushed a commit to red-hat-data-services/data-science-pipelines that referenced this pull request Mar 11, 2024
VaniHaripriya added a commit to red-hat-data-services/data-science-pipelines that referenced this pull request Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants