This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1249 from chavafg/topic/backport-fixes-1.5
backport fixes to stable-1.5
- Loading branch information
Showing
46 changed files
with
853 additions
and
133 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
.ci/hypervisors/firecracker/configuration_firecracker.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# | ||
# Copyright (c) 2019 Intel Corporation | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# We need to skip some docker integration tests as they are not | ||
# running correctly using Firecracker. We will skip them using | ||
# the ginkgo flag 'skip=REGEXP'. | ||
test: | ||
- docker | ||
docker: | ||
Describe: | ||
- restart | ||
- docker exec | ||
- capabilities | ||
- package manager update test | ||
- build with docker | ||
- inspect | ||
- docker top | ||
- users and groups | ||
- terminal with docker | ||
- docker commit | ||
- ulimits | ||
- docker cp with volume attached | ||
- load with docker | ||
- docker volume | ||
- docker env | ||
- CPUs and CPU set | ||
- docker exit code | ||
- run container with docker | ||
- run hot plug block devices | ||
- pause with docker | ||
- Update number of CPUs | ||
- docker cp | ||
- docker privileges | ||
- diff | ||
- Hot plug CPUs | ||
- Update CPU constraints | ||
- memory constraints | ||
- Hotplug memory when create containers | ||
- run container and update its memory constraints | ||
Context: | ||
- remove bind-mount source before container exits | ||
It: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (c) 2019 Intel Corporation | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -e | ||
|
||
cidir=$(dirname "$0") | ||
source "${cidir}/../../lib.sh" | ||
|
||
test_config_file="${cidir}/configuration_firecracker.yaml" | ||
|
||
describe_skip_flag="docker.Describe" | ||
context_skip_flag="docker.Context" | ||
it_skip_flag="docker.It" | ||
|
||
# value for '-skip' in ginkgo | ||
_skip_options=() | ||
|
||
filter_and_build() { | ||
local dependency="$1" | ||
local array_docker=$("${GOPATH}/bin/yq" read "${test_config_file}" "${dependency}") | ||
[ "${array_docker}" = "null" ] && return | ||
mapfile -t _array_docker <<< "${array_docker}" | ||
for entry in "${_array_docker[@]}" | ||
do | ||
_skip_options+=("${entry#- }|") | ||
done | ||
} | ||
|
||
main() { | ||
# Check if yq is installed | ||
[ -z "$(command -v yq)" ] && install_yq | ||
|
||
# Build skip option based on Describe block | ||
filter_and_build "${describe_skip_flag}" | ||
|
||
# Build skip option based on context block | ||
filter_and_build "${context_skip_flag}" | ||
|
||
# Build skip option based on it block | ||
filter_and_build "${it_skip_flag}" | ||
|
||
skip_options=$(IFS= ; echo "${_skip_options[*]}") | ||
|
||
echo "${skip_options%|}" | ||
} | ||
|
||
main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# | ||
# Copyright (c) 2019 IBM | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# for now, not all integration test suites are fully passed in ppc64le. | ||
# some need to be tested, and some need to be refined. | ||
# sequence of 'test' holds supported integration tests components. | ||
test: | ||
- functional | ||
- docker | ||
- docker-compose | ||
|
||
# for now, not all test suites under docker integration are fully passed in aarch64. | ||
# some need to be tested, and some need to be refined. | ||
# ginkgo offers '-skip=REGEXP' flag to skip specific ones. | ||
# you can use infos from docker.Describe, docker.Context or docker.It to point to | ||
# specific test specs or whole container of specs. | ||
docker: | ||
Describe: | ||
- Update CPU set | ||
Context: | ||
It: | ||
- should have the right number of vCPUs |
Oops, something went wrong.