Skip to content

Conversation

@chuyd
Copy link

@chuyd chuyd commented Jun 14, 2019

This Jenkinsfile provides basic CI based on the .travis.yml
which ports the travis behaviour to Jenkins by checking the
following make targets:

  • make format
  • make lint
  • make
  • make vet
  • make cyclomatic-check
  • make test
  • make images
  • make images BUILDER=buildah
  • make demos
  • make demos BUILDER=buildah

The main intention of this commit is to provide an starting point
where anybody can improve the coverage at anytime and get PR cheks
on Jenkins.

@chuyd chuyd force-pushed the jenkinsfile branch 14 times, most recently from 0c09537 to a47b025 Compare June 14, 2019 16:09
@chuyd chuyd changed the title WIP jenkins: Add initial jenkinsfile jenkins: Add initial jenkinsfile Jun 14, 2019
Jenkinsfile Outdated
}
}
}
stage("make intel-fpga-admissionwebhook") {
Copy link
Member

Choose a reason for hiding this comment

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

This is practically useless. stage("make"){} already has built everything.

Copy link
Author

Choose a reason for hiding this comment

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

Changes made, thanks for the review

Jenkinsfile Outdated
}
}
}
stage("make images with buildah") {
Copy link
Member

Choose a reason for hiding this comment

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

images without buildah are not built.
Also, use parallel stages for building something in variations (e.g. images with docker and images with buildah)
https://jenkins.io/blog/2017/09/25/declarative-1/

Copy link
Author

Choose a reason for hiding this comment

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

Changes made, thanks for the review

@chuyd chuyd force-pushed the jenkinsfile branch 2 times, most recently from b7e6cd1 to 8e870a4 Compare June 17, 2019 19:53
@kad
Copy link
Member

kad commented Jun 18, 2019

Can you please evaluate if several of stages can be done in parallel?
e.g. format/vet/cyclomatic can be done in parallel. Getting needed tools also can be done in parallel.

Jenkinsfile Outdated
}
stage('make plugins') {
parallel {
stage("make intel-fpga-admissionwebhook") {
Copy link
Member

Choose a reason for hiding this comment

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

So, in practice, those "make intel-*" targets are parts of the "make images" target, and in practice we are building all images at least twice with this pipeline. Can we improve that please?

@chuyd chuyd force-pushed the jenkinsfile branch 5 times, most recently from 4e905e6 to 748b873 Compare June 20, 2019 06:19
@kad
Copy link
Member

kad commented Jun 20, 2019

@chuyd why it's crashing? no memory/disk space in the VM or something else?

@chuyd
Copy link
Author

chuyd commented Jun 20, 2019

@chuyd why it's crashing? no memory/disk space in the VM or something else?

I was suspecting the same, I doubled the memory/disk resources in the last run a few hours ago and it failed on other different make target of the same stage

@chuyd chuyd force-pushed the jenkinsfile branch 3 times, most recently from 0a528e2 to 836501b Compare June 20, 2019 17:50
@codecov-io
Copy link

Codecov Report

Merging #189 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #189   +/-   ##
=======================================
  Coverage   79.18%   79.18%           
=======================================
  Files          11       11           
  Lines        1494     1494           
=======================================
  Hits         1183     1183           
  Misses        279      279           
  Partials       32       32

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b06decb...836501b. Read the comment docs.

This Jenkinsfile provides basic CI based on the .travis.yml
which ports the travis behaviour to Jenkins by checking the
following make targets functionallity:

  - make format
  - make lint
  - make vet
  - make cyclomatic-check
  - make test
  - make images
  - make images BUILDER=buildah
  - make demos
  - make demos BUILDER=buildah

The main intention of this commit is to provide an starting point
where anybody can improve the coverage at anytime and get PR cheks
on Jenkins.
Copy link
Member

@kad kad left a comment

Choose a reason for hiding this comment

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

lgtm

@kad kad merged commit 363bf49 into intel:master Jun 21, 2019
askervin pushed a commit to askervin/intel-device-plugins-for-kubernetes that referenced this pull request May 6, 2020
…c+gRPC-plugin

ci-build: add rules to install protoc and gRPC plugin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants