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

Clean up kataras dependency #3240

Merged
merged 3 commits into from
Mar 9, 2020

Conversation

jingzhang36
Copy link
Contributor

@jingzhang36 jingzhang36 commented Mar 9, 2020

We use kataras_iris only for its /core/errors package; and this error package is only used in our tests; and moreover, /core/errors is removed from kataras_iris in v12 and gets moved to /core/errgroup. I figured that, instead of updating the usage in our tests, we can just stop depending on it in our tests but switch to standard errors (and especially that this switch wouldn't change our production code)

Also, this dependency causes backend prow test failure when we try to migrate, due to not found the package error. Hence this pr will fix that as well.

#2885


This change is Reviewable

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign paveldournov
You can assign the PR to them by writing /assign @paveldournov in a comment when ready.

The full list of commands accepted by this bot can be found 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

@jingzhang36
Copy link
Contributor Author

/test kubeflow-pipeline-backend-test

@jingzhang36 jingzhang36 changed the title Cleanup kataras dependency Clean up kataras dependency Mar 9, 2020
@jingzhang36
Copy link
Contributor Author

/assign @Bobgy
/assign @rmgogogo

@Bobgy
Copy link
Contributor

Bobgy commented Mar 9, 2020

Thanks!
/lgtm

@@ -454,12 +454,6 @@ go_repository(
tag = "v4.2.1",
)

go_repository(
Copy link
Contributor

Choose a reason for hiding this comment

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

go mod tidy
then
bazel run //:gazelle -- update-repos --from_file=go.mod
?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did tidy but not gazelle, gazelle seems bumping versions of some dependencies automatically (in addition to just add/remove dependencies). I updated with gazelle produced diff to check if the version change will cause incompatibility issue. Otherwise, we can keep the gazelle produced diff.

@rmgogogo
Copy link
Contributor

rmgogogo commented Mar 9, 2020

/lgtm

@k8s-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@jingzhang36
Copy link
Contributor Author

/test kubeflow-pipeline-backend-test

@jingzhang36 jingzhang36 merged commit 7033903 into kubeflow:master Mar 9, 2020
Jeffwan pushed a commit to Jeffwan/pipelines that referenced this pull request Dec 9, 2020
* cleanup kataras_iris dependency, which is only used in test

* go mod tidy

* bazel run //:gazelle -- update-repos --from_file=go.mod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants