Commit Graph

47 Commits

Author SHA1 Message Date
Mikko Ylinen
642c4f7b59 build: move to Go 1.19 and golangci-lint 1.48 because of that
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-08-15 10:13:37 +03:00
Mikko Ylinen
388866acc9 ci: update envtest to use k8s v1.24.2
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-07-19 13:53:29 +03:00
Mikko Ylinen
c18bc1f477 ci: update tool versions
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-06-20 19:04:50 +03:00
Ed Bartosh
725b21ccf0
Merge pull request #1023 from mythi/PR-2022-039
priority: ci: use buildah from the distro
2022-05-24 09:40:26 +03:00
Mikko Ylinen
e2286eb816 ci: use buildah from the distro
After the following announcement on podman.io/blogs:

"Ubuntu 22.04 LTS Beta is available for testing as of March 31st. This
is the first LTS release with Podman, Buildah and Skopeo in the default
repos...

[snip]

There won’t be any further updates to the Kubic repos as far as Podman,
Buildah and Skopeo are concerned, so users are recommended to use the
default repos on 22.04 LTS."

buildah disappeared from the apt archive we were using making CI to
fail. Fortunately, we now get to use buildah from the worker directly.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-05-21 08:05:09 +03:00
Olev Kartau
1b815e930c Jenkinsfile: do not push images if job was PR-triggered 2022-05-19 14:49:43 +03:00
Ed Bartosh
4f38d22d7f use curl -L to handle redirections 2022-05-13 22:35:55 +03:00
Hyeongju Johannes Lee
c8c472fb82 ci: update to Go 1.18.1
Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2022-04-21 16:17:14 +03:00
Mikko Ylinen
30158c81bc ci: move to Go 1.18
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-03-31 18:16:24 +03:00
Mikko Ylinen
25a06d83fb ci: move to golangci-lint v1.45.0
The latest release is needed to run with Go 1.18. Also, drop
"skip-go-installation" since the latest @v3 golangci-lint
action now requires an explicit setup-go step.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-03-29 11:16:25 +03:00
Ed Bartosh
13780a8cdc implement terrascan check
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2022-03-01 15:54:28 +02:00
Hyeongju Johannes Lee
91f7171a98 Jenkinsfile: fix test-with-kind to use REG=intel/ TAG=devel
In order to prevent erorrs from running e2e tests, cluster needs
always REG as 'intel/' and TAG as 'devel'.
Since Jenkinsfile has its own, we change it as we want right before
running the command 'make test-with-kind'.

Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2022-01-28 10:05:36 +02:00
Hyeongju Johannes Lee
237b6e7a7e tests: add tests with github actions (test-with-kind) 2022-01-26 10:52:06 +02:00
Mikko Ylinen
ab24c1e177 ci: drop old BMAAS
Jenkinsfile had a disabled stage that connected to a
BMAAS CI to run scripts/jenkins/* to do QAT validation.

These are no longer used so drop them.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-01-10 13:22:28 +02:00
Hyeongju Johannes Lee
64b4f66d39 ci:update versions to latest
Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2021-12-09 06:37:32 -08:00
Hyeongju Johannes Lee
f6c3f17549 ci: use 1.22.1 ver of K8s instead of 1.20.2
Update suite_test to support kubernetes 1.21+ version

Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2021-11-26 05:02:09 -08:00
Hyeongju Johannes Lee
5c4e4b6bd2 ci:Add envtest
Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2021-11-19 06:09:03 -08:00
Mikko Ylinen
a0f81d7574 go.mod: move to Go 1.17
go mod tidy adds more requirements because of the changes in 1.17:

"Go versions 1.17 and higher retain more requirements in order to
support lazy module loading."

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-10-08 13:10:08 +03:00
Hyeongju Johannes Lee
09ba9fde00 Update tool versions and fix errors and warnings that originated from the update
Update tool versions
Fix the errors and warnings originated from the update:
-Correct type deviceInfo (->DeviceInfo) to make it public
-Fix gpu_plugin.go and vpu_plugin_test.go where stylecheck errors occur
-Fix deprecation warnings
-Rename type 'PatcherManager' to 'Manager' to solve exported errors
-Rename type 'SgxMutator' to 'Mutator' to solve exported errors

Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2021-08-25 07:09:34 +00:00
Mikko Ylinen
4b0ca632c7 ci: update tool versions
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-06-22 12:57:14 +03:00
Mikko Ylinen
f59a1fb9dc Move to Go 1.16.x
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-06-02 13:41:15 +03:00
Mikko Ylinen
c3cf958c85 images: move most plugin images to distroless/static
All but one (VPU) of the published container images can be built with
static binaries which allows us to use distroless/static as the
base image. Moreover, when combined with stripping the plugin binaries,
we can get both build time and image size savings.

This is the part 1 (out of 2) of the rework. Part 2 will finish the
change by making some adjustments to VPU plugin image and moving the
FPGA/SGX/GPU initcontainers to distroless/static too.

Partial: #516

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2021-05-19 09:44:47 +03:00
Mikko Ylinen
d1844b0342 ci: github: remove conflicting buildah from virtual env
buildah 1.19.4 install from the external repository adds a
dependency to containers-common that comes with files that
conflicts with the virtual env installation.

remove the virtual env installation before proceeding with buildah
install.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-02-16 12:09:49 +02:00
Mikko Ylinen
dd320f5fb4 ci: update tool versions
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-02-04 10:06:55 +02:00
Mikko Ylinen
621ecf9a40 ci: update Ubuntu versions
In Jenkins, we are using Xenial (16.04) as the worker distro and
that is causing some maintenance issues. For instance, the manually
installed buildah version lacks behind Github's CI that gets
buildah from a repository.

This change moves Jenkins to Ubuntu 18.04 so we get to install
buildah from packages directly too.

While we are at it, move Github VMs to Ubuntu 20.04. This allows
us the change with both LTS versions.

Finally, increase Jenkins timeout from 3 to 4 hours to be able to
build all the demo container images without getting aborted.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-11-25 09:14:24 +02:00
Mikko Ylinen
fc4c7c30d4 ci: update cri-o version
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-11-25 09:07:30 +02:00
Olev Kartau
91c3d64fc0 Jenkinsfile: do not use parallel method and extra stages
Use of parallel creates race possibility as installation of
go happens in one part but is used in another.
2020-11-11 14:28:45 +02:00
Dmitry Rozhkov
4924bd2fe6 Switch to go 1.15.3 2020-10-15 14:16:42 +03:00
Mikko Ylinen
cd068c797a ci: update tool versions
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-08-21 17:04:04 +03:00
Mikko Ylinen
285a01e0a5 ci: update tool versions
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-06-22 13:21:42 +03:00
Dmitry Rozhkov
3098527f88 Jenkinsfile: drop redundant checks 2020-06-10 14:49:15 +03:00
Mikko Ylinen
062d86f6e1 ci: update tool versions
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-02-10 19:31:25 +02:00
Mikko Ylinen
9eb05882ed Jenkinsfile: make BMaaS stage opt-in
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-02-04 11:03:14 +02:00
Dmitry Rozhkov
4b256017e8 Make go mod tidy a mandatory check
Closes #276
2020-02-03 12:21:36 +02:00
Alek Du
887e56e780 VPU: Add Intel Movidius MyriadX VPU plugin support
This patch is to support Intel VCAC-A card (with MyriadX 2485 VPUs), for other
later on VPUs, we will reuse this plugin and add support.

VCAC-A board info is at:
https://www.intel.com/content/dam/www/public/us/en/documents/datasheets/media-analytics-vcac-a-accelerator-card-by-celestica-datasheet.pdf

Also add openvino HDDL VPU demo for Intel VCAC-A card.

Signed-off-by: Alek Du <alek.du@intel.com>
2020-01-28 23:17:50 +08:00
Dmitry Rozhkov
814e2e1a50 bump k8s dependencies up to v1.17.0 2020-01-09 11:19:58 +02:00
Rivera Gonzalez, Julio C
a0ba1b38fe Add CI Jenkins stage with test case for intel-device-plugin: QAT
This commit adds bash scripts with the proper granularity for each sub-stage,
needed for QAT device main stage validation.

Signed-off-by: Rivera Gonzalez, Julio C <julio.c.rivera.gonzalez@intel.com>
2019-12-03 11:59:15 -06:00
Mikko Ylinen
d3354d0522 travis: Use vendored code for container builds
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2019-11-01 14:32:26 +02:00
Mikko Ylinen
79f991784b Jenkinsfile: change credentialsId
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2019-08-30 08:26:11 +03:00
Dmitry Rozhkov
aadcc62dde simplify image push 2019-08-29 16:30:13 +03:00
Rivera Gonzalez, Julio C
b6a740805e Push images to be published
This change, adds a conditional step on Jenkins in order to push images,
built and be published.

Signed-off-by: Rivera Gonzalez, Julio C <julio.c.rivera.gonzalez@intel.com>
2019-08-29 13:21:42 +03:00
Dmitry Rozhkov
91c890b1e1 ci: adapt to go mod
switch go mod on explicitly in CI

travisci: enable caching of Go modules

travisci: drop obsolete hack
2019-08-27 11:40:33 +03:00
Alexander Kanevskiy
186ec6613c FPGA: migrate to ClearLinux environment
- Migrate to OPAE 1.3.2
- Build all the tools from the source
- ignore files in workspace
- minimal fpga_tool utility to check gbs/aocx file parsing and flashing
- implemented kernel IOCTL based flashing of bitstreams
- add PCI and sysfs functions
2019-08-24 02:55:19 +03:00
Mikko Ylinen
959f7e602b CI: move to Golang 1.12.x
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2019-08-19 15:19:49 +03:00
Mikko Ylinen
9905c50302 CI: update container tooling versions
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2019-08-19 15:19:49 +03:00
Dmitry Rozhkov
cda77f57e7 use BUILDTAGS=kerneldrv in CI 2019-08-19 09:56:57 +03:00
Jesus Ornelas Aguayo
836501b257 jenkins: Add initial jenkinsfile
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.
2019-06-20 19:46:44 +00:00