1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-05-08 16:37:32 +00:00
kata-containers/tests
Hyounggyu Choi 8ff128dda8 CI: Introduce retry mechanism for kubectl in gha-run.sh
Frequent errors have been observed during k8s e2e tests:

- The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?
- Error from server (ServiceUnavailable): the server is currently unable to handle the request
- Error from server (NotFound): the server could not find the requested resource

These errors can be resolved by retrying the kubectl command.

This commit introduces a wrapper function in common.sh that runs kubectl up to 3 times
with a 5-second interval. Initially, this change only covers gha-run.sh for Kubernetes.

Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
2024-06-07 18:24:19 +02:00
..
cmd deps: bumping yq to v4.40.7 2024-05-31 13:28:34 -04:00
functional tests: adding debug and skip to kata-deploy 2024-05-31 13:28:34 -04:00
integration CI: Introduce retry mechanism for kubectl in gha-run.sh 2024-06-07 18:24:19 +02:00
metrics Merge pull request from GabyCT/topic/memoryusags 2024-05-29 10:16:56 -06:00
stability deps: bumping yq to v4.40.7 2024-05-31 13:28:34 -04:00
.gitignore tests: move static checks and dependencies from tests 2023-11-28 11:13:55 -08:00
.golangci.yml build: Update golang version to 1.22.2 2024-04-26 15:50:29 +02:00
common.bash CI: Introduce retry mechanism for kubectl in gha-run.sh 2024-06-07 18:24:19 +02:00
error.sh scripts: Add error script 2024-02-20 18:30:03 +00:00
gha-run-k8s-common.sh deps: bumping yq to v4.40.7 2024-05-31 13:28:34 -04:00
git-helper.sh GHA: remove GITHUB_WORKSPACE when workflow fails due to merge conflict 2023-12-07 10:25:57 +01:00
go.mod build(deps): bump the go_modules group across 5 directories with 8 updates 2024-04-30 09:46:13 +01:00
go.sum build(deps): bump the go_modules group across 5 directories with 8 updates 2024-04-30 09:46:13 +01:00
install_go.sh deps: bumping yq to v4.40.7 2024-05-31 13:28:34 -04:00
install_rust.sh deps: bumping yq to v4.40.7 2024-05-31 13:28:34 -04:00
kata-arch.sh ci: Do not take cross-build into consideration for kata-arch.sh 2023-07-21 16:54:27 +02:00
kata-doc-to-script.sh tests: move static checks and dependencies from tests 2023-11-28 11:13:55 -08:00
README.md docs: Add general tests documentation in main README 2024-03-04 21:53:01 +00:00
static-checks.sh tests: Fix indentation in static checks script 2024-05-29 15:43:44 +00:00

Kata Containers Tests

This directory contains various types of tests for testing the Kata Containers repository.

Test Content

We provide several tests to ensure Kata-Containers run on different scenarios and with different container managers.

  1. Integration tests to ensure compatibility with:
  2. Stability tests
  3. Metrics
  4. Functional

GitHub Actions

Kata Containers uses GitHub Actions in the Kata Containers repository.