-
Notifications
You must be signed in to change notification settings - Fork 196
CI: Use specific version of xurls utility #856
CI: Use specific version of xurls utility #856
Conversation
Blocked on kata-containers/runtime#855. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, that was slightly more convoluted than I expected ;-)
lgtm
d171946
to
a5dd7da
Compare
a5dd7da
to
be0a0f7
Compare
@chavafg - branch updated with the changes from kata-containers/runtime#855. |
No longer blocked on kata-containers/runtime#855 as this PR now contains those changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
.ci/lib.sh
Outdated
|
||
[ ! -f "$versions_file" ] && die "cannot find $versions_file" | ||
|
||
# This is needed in order to retrieve the version for qemu-lite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this comment can now be removed...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zapped! 😄
and travis now failing on ppc64 |
be0a0f7
to
cb7a9d3
Compare
@nitkon - any ideas? I don't think I've changed anything architecture dependent on this PR, but from the Travis ppc64 logs...
|
@jodh-intel - did you drop an |
@grahamwhaley - not that I can see, no. It appears that ... although
The question is, how was this working before on Travis?!? |
:-) OK @jodh-intel - we'll wait to see what @nitkon thinks. function get_version(){
dependency="$1"
GOPATH=${GOPATH:-${HOME}/go}
- # This is needed in order to retrieve the version for qemu-lite
- install_yq >&2
`` |
@grahamwhaley - ah - you've only got part of the context I think: $ git diff master | grep install_yq
@@ -100,20 +123,43 @@ function install_yq() {
+ install_yq >&2
- install_yq >&2 |
Ah, I see it - not obvious on the github view as the addition was somewhat above. OK, np |
seems like failing here, we haven't added the ppc64le support: Lines 93 to 106 in cb7a9d3
|
2a3fb1d
to
8e7873f
Compare
/test |
See failures in the CI:
|
Sort the entries in the tests versions database. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Stop `yamllint` bleating. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Add a description to the tests versions database. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Add the [`xurls`](https://mvdan.cc/xurls/cmd/xurls) utility to the versions database. This tool is used by the CI scripts in the `tests` repo to check URLs for validity. However, the latest version of `xurls` requires golang 1.10.3+, but we don't need to use the latest version and doing so is causing us problems (see kata-containers/kata-containers#32). Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Fix `build()` to use the provided make target variable. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Update `build()` to only run the `autogen.sh` script if it exists. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Change `build()` to use `go get -d` and an explicit `go install` rather than a `go get` to support a future change that will allow a specific version of a go project to be built. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Rework `build()` into `build_version()` and add a new version of `build()` that will build the latest package version by default. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Refactor `get_version()` into `get_dep_from_yaml_db()` and provide a new `get_test_version()` to allow querying the versions database in the tests repo rather than the runtime one. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Build the version of `xurls` specified in the runtimes versions database to avoid problems; the latest version of `xurls` requires golang 1.10.3 but that is not available in the stable branches. Fixes kata-containers#855. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
8e7873f
to
3d61716
Compare
/test |
Build the version of
xurls
specified in the runtimes versionsdatabase to avoid problems; the latest version of
xurls
requiresgolang 1.10.3 but that is not available in the stable branches.
Includes rework to the
.ci/lib.sh
functions to support building a particular version of a package.Fixes #855.
Signed-off-by: James O. D. Hunt james.o.hunt@intel.com