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

hack/tests/sanity-check.sh: ignore go.mod changes caused by go vet #2073

Closed

Conversation

joelanford
Copy link
Member

@joelanford joelanford commented Oct 16, 2019

Description of the change:
This PR updates the sanity check script to ignore changes to go.mod caused by go vet (and other go commands).

Motivation for the change:
Many go commands change the go.mod file if it does not match what the go tooling expects. go.mod files managed by go1.12 are changed when running go commands with go1.13. This causes problems with the sanity check script when trying to migrate from go1.12 to go1.13.

During the transition, we can ignore go.mod file changes that occur when go vet runs earlier in the sanity check script. After the transition, we will revert this PR so that future go.mod files are checked for adherance to the go tooling expectations.

Order of operations to complete go1.13 migration

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 16, 2019
@joelanford
Copy link
Member Author

/hold

Until we have team consensus on the go1.13 migration plan outlined in the issue description.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 16, 2019
@joelanford
Copy link
Member Author

/test e2e-aws-helm
/test e2e-aws-ansible
/test e2e-aws-go

1 similar comment
@joelanford
Copy link
Member Author

/test e2e-aws-helm
/test e2e-aws-ansible
/test e2e-aws-go

@joelanford
Copy link
Member Author

/test e2e-aws-go
/test e2e-aws-ansible

@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 20, 2019
@joelanford
Copy link
Member Author

Rolled this into #1949, which helps it pass CI directly. We can merge #1949, then openshift/release#5443, then revert the sanity test changes once we're fully migrated to go1.13.

@joelanford joelanford closed this Oct 21, 2019
@joelanford joelanford deleted the sanity-ignore-go-mod branch October 23, 2019 15:39
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants