-
Notifications
You must be signed in to change notification settings - Fork 18
CI: Do not build, but do update, repos when pulling them #888
CI: Do not build, but do update, repos when pulling them #888
Conversation
kubernetes qa-failed 👎 |
.ci/jenkins_job_build.sh
Outdated
@@ -48,10 +48,11 @@ then | |||
go get github.com/mattn/goveralls | |||
fi | |||
|
|||
# Get the repository and move to the correct commit | |||
go get ${cc_repo} || true | |||
# Get or update the repository, but do build ie. |
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.
Nit: should that be "but do not build it."?
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.
Indeed. Some odd finger/brain trouble wen't on there.... fixed.
2aa4720
to
7f0f372
Compare
kubernetes qa-failed 👎 |
lgtm
|
Yeah, I've not gotten to dig into those errors yet. To note then, currently the metrics CI is a bare metal Jenkins that is not clearing out its build trees between jobs. That may thus have an effect here, particularly if we are rebuilding a PR, as that could be trying to re-use the same branch name. |
same error happening on #895 |
The Error:
looks like it comes from this fragment of the Jenkins script:
I'm thus wondering if the |
A note/update on this then. This is likely:
Something I saw locally was if I canceled a Jenkins job whilst it was doing some git work, which left me with a somewhat 'dirty' git repo. Subsequent CI runs then complained that they could not FF that git repo (which seems to be what we have above). Quick short/mid term fix is for me to tell Jenkins to delete the build trees after each build. This has a number of up/downsides:
I'll go tick that box now so we can get a more stable metrics CI system, at the cost of speed and bandwidth... And then I'll nudge a rebuild (or potentially two to get rid of the tree on the first one and do a full clean build on the second)... |
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]>
7f0f372
to
8fd35d7
Compare
Project is frozen. Work has moved over to: https://github.com/kata-containers |
Enable the bare metal slave machine cleanup scripts to be called from any arch (lifting out the good work done for the ARM slave cleanups). Fixes: clearcontainers#888 Signed-off-by: Graham Whaley <[email protected]>
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: #887
Signed-off-by: Graham Whaley [email protected]