1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
Commit graph

41 commits

Author SHA1 Message Date
Kubernetes Prow Robot
34781af9e5
Merge pull request #917 from fmuyassarov/ephemeral-e2e
add ephemeral environment for e2e test execution
2022-11-02 10:35:15 -07:00
Feruzjon Muyassarov
0118215826 Add ephemeral E2E test environment
This patch adds a script to run E2E test on kind ephemeral cluster
that gets deleted by the end of each test. Eventually, we will use
this script on pull requests as a presubmit test.

Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-11-02 15:30:56 +02:00
Feruzjon Muyassarov
ea8906203a Increase image waiting timeout
We recently increase timeout for image building and pushing to GCR
due to some failures with timeout. This commit extends timeout for
waiting that image to be published.
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-10-27 23:26:26 +03:00
Markus Lehtonen
2e0e93fb84 scripts/test-infra: bump golangci-lint to v1.49.0
Update to the latest version, supporting golang v1.19. Also make the
verify script a tad more verbose.
2022-09-08 11:53:07 +03:00
Feruzjon Muyassarov
1e3bfcc77d Run local markdown tests inside an isolated container
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-09-06 16:08:06 +03:00
Markus Lehtonen
d61f31076f scripts/test-e2e: install kubectl
Kubectl is required bu the topologu-updater end-to-end tests.
2022-08-25 16:27:59 +03:00
Markus Lehtonen
a7835a060f scripts/test-e2e: update aws-iam-authenticator to v0.5.7
We need the latest version to support client.authentication.k8s.io/v1.
The previous version we used only supported v1alpha1 which was dropped
in K8s v1.24.
2022-06-28 16:56:43 +03:00
Markus Lehtonen
9276ad49ac scripts/test-infra: bump golangci-lint to v1.45.2
Adds support for golang v1.18.
2022-04-13 09:53:55 +03:00
Markus Lehtonen
e674631591 cloudbuild.yaml: decrease timeout to 25 minutes
Build time decreased dramatically after upgrading the builder machine
type.
2022-01-21 12:00:14 +02:00
Markus Lehtonen
6f56d5edbf scripts/test-infra: separate task for multiarch image build 2022-01-21 11:18:10 +02:00
Markus Lehtonen
33cfd6eaba scripts: configure docker auth in push-image.sh
Re-introduce docker authentication that was dropped in
bac690813a. Should fix issues with
building multi-arch buildx buildx.
2022-01-21 07:36:22 +02:00
Markus Lehtonen
5e90343fc9 cloudbuild.yaml: increase timeout to 1h 20min
Fourth timeout increase's the charm.
2022-01-20 22:30:42 +02:00
Markus Lehtonen
c0235c490e cloudbuild.yaml: increase timeout to 1 hour
Even 40 minutes failed us for multi-arch builds.

Also, increase the e2e-test image polling timeout correspondingly.
2022-01-20 21:02:03 +02:00
Zvonko Kaiser
c69e47a27a Iniital multi arch build 2022-01-20 15:41:08 +01:00
Kubernetes Prow Robot
fe377458a9
Merge pull request #689 from marquiz/devel/ci-helm
scripts/test-infra: bump helm to v3.7.1
2021-12-02 07:39:33 -08:00
Markus Lehtonen
80da116cab scripts/test-infra: bump helm to v3.7.1 2021-12-02 12:34:41 +02:00
Markus Lehtonen
a543122d00 scripts: increase e2e-test image poll timeout to 12mins
Rare timeouts (narrowly missing) with 10 minutes observed, try
increasing by 2 minutes.

Also fix printing of error message in case of a timeout.
2021-12-02 10:56:36 +02:00
Markus Lehtonen
f1f79575fe scripts/test-infra: bump golangci-lint to v1.42.1 2021-10-04 09:43:21 +03:00
Markus Lehtonen
8132d17f89 scripts/test-infra: verify buildability of kustomize overlays
Not perfect and fool proof evidence but better than nothing.
2021-08-26 19:47:25 +03:00
Markus Lehtonen
c5dca79a07 Makefile: change poll-image target to poll-images
Poll all images that are supposed to be tagged. Both the "full" and
"minimal" variant, including tags created from IMAGE_EXTRA_TAG_NAMES.
2021-03-10 11:10:08 +02:00
Markus Lehtonen
34cc407dd9 scripts/test-infra: enable helm linting 2021-02-26 07:24:59 +02:00
Markus Lehtonen
bc289d0783 docs: enable markdown linting 2021-02-25 15:13:40 +02:00
Markus Lehtonen
44b52b69be scripts/test-infra: update golangci-lint to v1.36.0 2021-02-10 12:58:44 +02:00
Markus Lehtonen
979d3b88fe Add nfd-worker-conf ConfigMap to deployment templates
Add a virtually empty ConfigMap that is mounted inside the workers.
Makes it easier to start customizing the worker deployment e.g. with just:

  $ kubectl -n ${NFD_NS} edit configmap nfd-worker-conf

Create a new 'templates' make target for inserting the content of
nfd-worker.conf.example into the configmap spec of the templates. Thus,
'make templates' should be run whenever the example config is update.
Update the verify.sh prow script to check that the templates are up to
date.

This patch also streamlines the documentation about configuration
management, reflecting the changes.
2020-11-23 18:49:52 +02:00
Markus Lehtonen
5295feb1ee docs: polish the version menu
Only show the dynamic version menu in production environment where it's
available. Local (development) builds only show a stub version menu with
one item.

Also, fix the theme customization. Append version list items to the
correct element in html so that they are displayed correctly. Drop
unnecessary <div/>.
2020-10-30 08:41:33 +02:00
Markus Lehtonen
ad0db00a50 scripts: fix gh-pages build failure in prow
Work around stupid uid/gid magic that happens inside the jekyll docker image.
2020-10-22 21:31:05 +03:00
Markus Lehtonen
c5beeffb6a Enable automated update of gh-pagaes
Add 'scripts/github/update-gh-pages.sh' for updating gh-pages branch.
This new script intended for github actions integration and builds the
html documentation from the currently checked-out commit and updates the
corresponding version subfolder in the gh-pages branch. The version is
taken from GITHUB_REF environment variable and defaults to 'master' if
the env var is empty. For testing purposes or manual updates the
subfolder can also be given directly as a command line argument.

Add 'scripts/test-infra/build-gh-pages.sh' for verifying that site
(gh-pages) builds successfully. This is intended for integration with
kubernetes test-infra.

Finally, add Github workflow for updating gh-pages. This job is run on
master and release branches plus all tags starting with letter 'v'.
2020-10-08 10:54:24 +03:00
Markus Lehtonen
d77398bc50 scripts: one more variable override fix in test-e2e.sh 2020-09-22 10:29:29 +03:00
Markus Lehtonen
1e3c971651 scripts: don't use '-e' command line option for make
There is no reason to override variables from the environment anymore.
2020-09-15 11:53:50 +03:00
Markus Lehtonen
e8e3fce851 scripts: explicitly override VERSION in push-image.sh
Without using -e to override variables from the environment.
2020-09-15 11:46:48 +03:00
Carlos Eduardo Arango Gutierrez
bac690813a
Drop gcloud auth for image pushing
gcloud auth call in push_image.sh test script is no longer needed

Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
2020-09-12 07:38:38 -05:00
Kubernetes Prow Robot
cf21e415dd
Merge pull request #349 from marquiz/devel/golangci-lint
scripts: update golangci-lint to v1.30.0 in verify.sh
2020-09-08 04:47:43 -07:00
Markus Lehtonen
d77d76e95d scripts: update golangci-lint to v1.30.0 in verify.sh 2020-09-04 10:45:51 +03:00
Markus Lehtonen
852c817bf6 scripts/test-infra: add build.sh
A script for verifying (non-docker) build.
2020-09-04 10:04:28 +03:00
Markus Lehtonen
86659fb100 scripts: configure docker authentication in push-image.sh
As we're trying to push the images directly from the phase job and not
use 'images:' targets in cloudbuild.yaml.
2020-09-03 23:35:07 +03:00
Markus Lehtonen
4899de7e59 scripts: use a reproducible version in push-image.sh
We don't have a full git repo in the gcb builds so our version/tag magic
inside the makefile does not work. With this patch we get the version
information from the builder environment - fortunately we can do that by
simply stripping the date prefix from the _GIT_TAG variable. By
stripping the date of we match what our makefile does.
2020-09-03 17:19:10 +03:00
Markus Lehtonen
ff5e36be0d scripts: drop special image name handling from test-e2e.sh
Let's just rely on our Makefile everywhere. Plus the previous version
was essentially broken as _PULL_BASE_REF env variable was not available
in testing jobs.
2020-09-03 16:01:36 +03:00
Markus Lehtonen
799da7cbb9 cloudbuild.yaml: build using make
Use make for building our container image (through a new push-image.sh
script) instead of building directly with docker. This way we avoid the
container image tag naming hassle where we build and push the image on
"image-pushing" prow job and need to be able to reliably re-create the
same tag on the "testing" side for end-to-end tests. This also has the
advantage that the same mechanism (make) is used everywhere, i.e. in
image-pushing, testing and locally.
2020-09-03 16:01:36 +03:00
Markus Lehtonen
5974b4d905 scripts: fix verify.sh
Modify PATH in order to make sure that golangci-lint is found.
2020-09-03 15:02:35 +03:00
Markus Lehtonen
05f5d2a88a scripts/test-infra: add script for end-to-end testing
Add a new script for running end-to-end tests. Implement a Makefile rule
for polling the container image. We need this for prow as there is no
other way for syncing the jobs (e2e postsubmit job must wait until the
image-pushing job has built and published the image). This is
implemented in the Makefile as all the image-related variables are also
defined/available there.

Also, adapt the TravisCI config to use the new script.
2020-08-27 14:48:37 +03:00
Markus Lehtonen
33eabbdd22 scripts: add scripts for kubernetest test-infra jobs
A step towards moving away from TravisCI.
2020-08-11 15:55:31 +03:00