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

🏃 more robust golden test #1107

Merged
merged 1 commit into from
Oct 22, 2019
Merged

Conversation

mengqiy
Copy link
Member

@mengqiy mengqiy commented Oct 18, 2019

Added a more robust golden test:

  1. build a new kubebuilder
  2. generate the new golden files
  3. check there are any difference

fixes #1003

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 18, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mengqiy

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 18, 2019
@mengqiy mengqiy requested review from DirectXMan12 and droot and removed request for pwittrock and Liujingfang1 October 18, 2019 00:10
@droot
Copy link
Contributor

droot commented Oct 18, 2019

Can we add makefile target or add it to existing makefile targets ?
Also, travis is not happy with the changes.

Otherwise looking good to me.

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 18, 2019
@mengqiy mengqiy force-pushed the golden branch 2 times, most recently from d1acf55 to 0ab3b3e Compare October 18, 2019 22:01
@mengqiy
Copy link
Member Author

mengqiy commented Oct 18, 2019

/test pull-kubebuilder-test

@mengqiy mengqiy force-pushed the golden branch 4 times, most recently from 16b92b1 to e29e07a Compare October 21, 2019 21:44
@mengqiy
Copy link
Member Author

mengqiy commented Oct 22, 2019

Tests are passing. PTAL

.travis.yml Outdated
@@ -27,6 +27,8 @@ before_install:
# NOTE: The latest version of dep requires go 1.13
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir -p /Users/travis/gopath/bin; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then GO111MODULE=on scripts/install_and_setup.sh; fi
- GO111MODULE=on go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.1
Copy link
Contributor

Choose a reason for hiding this comment

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

we released 0.2.2 yesterday, may be use that. May be we should make these (kustomize below) version as some variables, so that it is easier to change them.

@droot droot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 22, 2019
@k8s-ci-robot k8s-ci-robot merged commit c9f4434 into kubernetes-sigs:master Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Golden files test is broken
3 participants