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

Bug fix and add unit test for sample-test/utils.file_injection #1952

Merged

Conversation

numerology
Copy link

@numerology numerology commented Aug 26, 2019

Current file_injection function cannot correctly process multi-pattern replacement. This is a fix to that.
Also added a unit-test to prevent that from happening again.


This change is Reviewable

Also fix a bug in file_injection.
@Ark-kun
Copy link
Contributor

Ark-kun commented Aug 26, 2019

/lgtm

@numerology
Copy link
Author

Thanks @Ark-kun

@numerology
Copy link
Author

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: numerology

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

@numerology numerology merged commit 3a76e4b into kubeflow:master Aug 26, 2019
@numerology numerology deleted the add-unit-test-for-sample-test-infra-1 branch August 26, 2019 20:37
@numerology numerology mentioned this pull request Aug 26, 2019
7 tasks
@Bobgy
Copy link
Contributor

Bobgy commented Aug 26, 2019

thanks, /lgtm

@gaoning777
Copy link
Contributor

I have a little bit of concern about the file structure. Since many file/directory in the project_repo/test contains the word 'test', it will be confusing to have the unit test files for the test infra codes live in the same directory. Maybe we can create a separate directory called unit_tests, or something to separate the test infra codes from the unit test codes. WDYT?

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.

5 participants