Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Fix travis #85

Merged
merged 7 commits into from
Jan 28, 2019
Merged

Fix travis #85

merged 7 commits into from
Jan 28, 2019

Conversation

markdryan
Copy link
Contributor

The travis builds were failing due to changes to gometalinter. This PR fixes the issue by modifying the parts of the code that gometalinter was complaining about and updating the versions of Go used to build govmm in the CI builds.

Mark Ryan added 7 commits January 28, 2019 15:32
staticcheck was complaining as some of the error messages returned by
govmm began with a capital letter.  This commit fixes the issue.

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
staticcheck was complaining as there were quite a lot of
fmt.Sprintf("%s",d) in the code where d was either a string or
had string as its underlying type.

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
staticcheck was complaining about code that looked like

if x == true {

}

rather than

if x {

}

This commit fixes the issue.

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
static check was complaining about code that looked like

if x == "" {
  return false
}

return true

when what it wants to see is return x != "".  This commit fixes the issue.

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
By removing a redundant return statement.

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
Static check was complaining about code that looked like

_ = <-ch

when it wants to see simply

<-ch

There was only one instance of this in govmm and this commit fixes
that instance.

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
The .travis file was building GoVMM with some old of date versions of
Go that seem to be incompatible with the latest versions of gometalinter.
This commit updates the .travis file so that we build against 1.10 and
1.11.

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
@markdryan
Copy link
Contributor Author

@devimc, @sboeuf could I get two pairs of eyes on this? The main thing to check are the changes to the if statements. I don't think I got any of these wrong but it would great to have these changes double and triple checked.

Copy link
Contributor

@rbradford rbradford left a comment

Choose a reason for hiding this comment

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

I particularly looked at the .Valid() receivers

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 79.849% when pulling 1f51b43 on markdryan:fix-travis into 737f03d on intel:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 79.849% when pulling 1f51b43 on markdryan:fix-travis into 737f03d on intel:master.

@devimc
Copy link

devimc commented Jan 28, 2019

lgtm

thanks @markdryan

Copy link

@sboeuf sboeuf left a comment

Choose a reason for hiding this comment

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

@markdryan Looks good to me!

@sboeuf sboeuf merged commit b9c8f76 into kata-containers:master Jan 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants