Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

CI: Add explicit static check script vendor test #1508

Merged
merged 2 commits into from
Apr 29, 2019

Conversation

jodh-intel
Copy link
Contributor

Update the check_vendor() function in the static check script to run our current vendoring tool (dep) in check mode. This will ensure our vendoring does not get silently broken [1].

Fixes #1506.

[1] - See for example kata-containers/runtime#1442.

Signed-off-by: James O. D. Hunt [email protected]

Modify the `check_vendor()` function in the static check script. Rather
than exiting the function as early as possible, change the logic to
allow follow on future checks to be added.

Signed-off-by: James O. D. Hunt <[email protected]>
Update the `check_vendor()` function in the static check script to run
our current vendoring tool (`dep`) in check mode. This will ensure our
vendoring does not get silently broken [1].

Fixes kata-containers#1506.

[1] - See for example kata-containers/runtime#1442.

Signed-off-by: James O. D. Hunt <[email protected]>
@jodh-intel
Copy link
Contributor Author

/test

Copy link
Contributor

@grahamwhaley grahamwhaley left a comment

Choose a reason for hiding this comment

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

heh, nice.
be fun to see if it passes right now... for all the repos...

@grahamwhaley
Copy link
Contributor

Odd metrics CI fail - will respin

09:38:46 Install os-tree
09:38:50 FATAL: command execution failed
09:38:50 java.io.EOFException

@jodh-intel
Copy link
Contributor Author

@grahamwhaley - ftr, I have tested all repos locally and it appears fine, but only a real run (on each repo) will give us the full details of course...

@devimc
Copy link

devimc commented Apr 29, 2019

state test is not reliable

04:05:08 • Failure [25.117 seconds]
04:05:08 state
04:05:08 /tmp/jenkins/workspace/kata-containers-tests-fedora-PR/go/src/github.com/kata-containers/tests/functional/state_test.go:26
04:05:08   container
04:05:08   /tmp/jenkins/workspace/kata-containers-tests-fedora-PR/go/src/github.com/kata-containers/tests/vendor/github.com/onsi/ginkgo/extensions/table/table.go:92
04:05:08     with workload [true], timeWait 5 [It]
04:05:08     /tmp/jenkins/workspace/kata-containers-tests-fedora-PR/go/src/github.com/kata-containers/tests/vendor/github.com/onsi/ginkgo/extensions/table/table_entry.go:46
04:05:08 
04:05:08     Expected
04:05:08         <int>: 1
04:05:08     to equal
04:05:08         <int>: 0
04:05:08 
04:05:08     /tmp/jenkins/workspace/kata-containers-tests-fedora-PR/go/src/github.com/kata-containers/tests/functional/state_test.go:45

@GabyCT GabyCT merged commit 1160aa8 into kata-containers:master Apr 29, 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.

Add explicit vendor test to static check script
5 participants