Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

CI: jenkins script 'go get' should not try to build the repo #887

Open
grahamwhaley opened this issue Feb 5, 2018 · 0 comments
Open

CI: jenkins script 'go get' should not try to build the repo #887

grahamwhaley opened this issue Feb 5, 2018 · 0 comments
Assignees

Comments

@grahamwhaley
Copy link
Contributor

Early in https://github.com/clearcontainers/tests/blob/master/.ci/jenkins_job_build.sh#L52 we fetch the repo to test with a got get, but as it has no -d, it tries a generic go build of the repo. This is not wanted as:

  • we invoke the repos specific setup/build scripts later
  • for some repos, you cannot go build them, and thus list line injects confusing build errors into the CI logs.

Change this to not build by adding a -d. Whilst there, also add a -u, as some CIs do not clear out their build trees between builds, so may already have a repo present, and hence really need an 'update' arg as well.

@grahamwhaley grahamwhaley self-assigned this Feb 5, 2018
grahamwhaley pushed a commit to grahamwhaley/tests that referenced this issue Feb 5, 2018
Without a '-d' on the 'go get', the script ties to build the repos,
and for repos that do not work under 'go build', this leaves errors
in the CI logs. We don't need a build at this stage as we invoke the
repo specific builds later on.
Also, some CIs do not clean out their build trees between builds, and
thus have repos already present - so add an 'update -u' flag as well.

Fixes: clearcontainers#887

Signed-off-by: Graham Whaley <[email protected]>
grahamwhaley pushed a commit to grahamwhaley/tests that referenced this issue Feb 5, 2018
Without a '-d' on the 'go get', the script ties to build the repos,
and for repos that do not work under 'go build', this leaves errors
in the CI logs. We don't need a build at this stage as we invoke the
repo specific builds later on.
Also, some CIs do not clean out their build trees between builds, and
thus have repos already present - so add an 'update -u' flag as well.

Fixes: clearcontainers#887

Signed-off-by: Graham Whaley <[email protected]>
grahamwhaley pushed a commit to grahamwhaley/tests that referenced this issue Mar 27, 2018
Without a '-d' on the 'go get', the script ties to build the repos,
and for repos that do not work under 'go build', this leaves errors
in the CI logs. We don't need a build at this stage as we invoke the
repo specific builds later on.
Also, some CIs do not clean out their build trees between builds, and
thus have repos already present - so add an 'update -u' flag as well.

Fixes: clearcontainers#887

Signed-off-by: Graham Whaley <[email protected]>
mcastelino pushed a commit to mcastelino/tests that referenced this issue Jan 23, 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

No branches or pull requests

1 participant