mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 21:55:20 +00:00
tests: Migrate docker container from ubuntu 20.04 to 22.04
The following tests have been temporarily disabled:
1. Live upgrade/migration test with ovs-dpdk (#5532);
2. Disk hotplug tests on windows guests (#6037);
This patch has been tested with PR #6048.
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com>
Signed-off-by: Michael Zhao <michael.zhao@arm.com>
Tested-by: Bo Chen <chen.bo@intel.com>
(cherry picked from commit 24f384d239
)
This commit is contained in:
parent
35d1998965
commit
196a59f209
@ -3,7 +3,7 @@
|
|||||||
# When changing this file don't forget to update the tag name in the
|
# When changing this file don't forget to update the tag name in the
|
||||||
# .github/workflows/docker-image.yaml file if doing multiple per day
|
# .github/workflows/docker-image.yaml file if doing multiple per day
|
||||||
|
|
||||||
FROM ubuntu:20.04 as dev
|
FROM ubuntu:22.04 as dev
|
||||||
|
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
ARG RUST_TOOLCHAIN="1.70.0"
|
ARG RUST_TOOLCHAIN="1.70.0"
|
||||||
@ -43,7 +43,6 @@ RUN apt-get update \
|
|||||||
socat \
|
socat \
|
||||||
dosfstools \
|
dosfstools \
|
||||||
cpio \
|
cpio \
|
||||||
python \
|
|
||||||
python3 \
|
python3 \
|
||||||
python3-setuptools \
|
python3-setuptools \
|
||||||
ntfs-3g \
|
ntfs-3g \
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
CLI_NAME="Cloud Hypervisor"
|
CLI_NAME="Cloud Hypervisor"
|
||||||
|
|
||||||
CTR_IMAGE_TAG="ghcr.io/cloud-hypervisor/cloud-hypervisor"
|
CTR_IMAGE_TAG="ghcr.io/cloud-hypervisor/cloud-hypervisor"
|
||||||
CTR_IMAGE_VERSION="20231108-0"
|
CTR_IMAGE_VERSION="20231220-0"
|
||||||
: "${CTR_IMAGE:=${CTR_IMAGE_TAG}:${CTR_IMAGE_VERSION}}"
|
: "${CTR_IMAGE:=${CTR_IMAGE_TAG}:${CTR_IMAGE_VERSION}}"
|
||||||
|
|
||||||
DOCKER_RUNTIME="docker"
|
DOCKER_RUNTIME="docker"
|
||||||
@ -285,8 +285,7 @@ cmd_build() {
|
|||||||
rustflags="$RUSTFLAGS"
|
rustflags="$RUSTFLAGS"
|
||||||
target_cc=""
|
target_cc=""
|
||||||
if [ "$(uname -m)" = "aarch64" ] && [ "$libc" = "musl" ]; then
|
if [ "$(uname -m)" = "aarch64" ] && [ "$libc" = "musl" ]; then
|
||||||
rustflags="$rustflags -C link-arg=-lgcc -C link_arg=-specs -C link_arg=/usr/lib/aarch64-linux-musl/musl-gcc.specs"
|
rustflags="$rustflags -C link-args=-Wl,-Bstatic -C link-args=-lc"
|
||||||
target_cc="musl-gcc"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$DOCKER_RUNTIME run \
|
$DOCKER_RUNTIME run \
|
||||||
@ -399,8 +398,7 @@ cmd_tests() {
|
|||||||
rustflags="$RUSTFLAGS"
|
rustflags="$RUSTFLAGS"
|
||||||
target_cc=""
|
target_cc=""
|
||||||
if [ "$(uname -m)" = "aarch64" ] && [ "$libc" = "musl" ]; then
|
if [ "$(uname -m)" = "aarch64" ] && [ "$libc" = "musl" ]; then
|
||||||
rustflags="$rustflags -C link-arg=-lgcc -C link_arg=-specs -C link_arg=/usr/lib/aarch64-linux-musl/musl-gcc.specs"
|
rustflags="$rustflags -C link-args=-Wl,-Bstatic -C link-args=-lc"
|
||||||
target_cc="musl-gcc"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$unit" = true ]]; then
|
if [[ "$unit" = true ]]; then
|
||||||
|
@ -20,7 +20,7 @@ build_spdk_nvme() {
|
|||||||
sed -i "/grpcio/d" scripts/pkgdep/debian.sh
|
sed -i "/grpcio/d" scripts/pkgdep/debian.sh
|
||||||
./scripts/pkgdep.sh
|
./scripts/pkgdep.sh
|
||||||
./configure --with-vfio-user
|
./configure --with-vfio-user
|
||||||
chmod +x /usr/local/lib/python3.8/dist-packages/ninja/data/bin/ninja
|
chmod +x /usr/local/lib/python3.10/dist-packages/ninja/data/bin/ninja
|
||||||
make -j `nproc` || exit 1
|
make -j `nproc` || exit 1
|
||||||
touch .built
|
touch .built
|
||||||
popd
|
popd
|
||||||
@ -30,7 +30,7 @@ build_spdk_nvme() {
|
|||||||
fi
|
fi
|
||||||
cp "$WORKLOADS_DIR/spdk/build/bin/nvmf_tgt" $SPDK_DEPLOY_DIR/nvmf_tgt
|
cp "$WORKLOADS_DIR/spdk/build/bin/nvmf_tgt" $SPDK_DEPLOY_DIR/nvmf_tgt
|
||||||
cp "$WORKLOADS_DIR/spdk/scripts/rpc.py" $SPDK_DEPLOY_DIR/rpc.py
|
cp "$WORKLOADS_DIR/spdk/scripts/rpc.py" $SPDK_DEPLOY_DIR/rpc.py
|
||||||
cp -r "$WORKLOADS_DIR/spdk/scripts/rpc" $SPDK_DEPLOY_DIR/rpc
|
cp -r "$WORKLOADS_DIR/spdk/python/spdk/" $SPDK_DEPLOY_DIR/
|
||||||
cp -r "$WORKLOADS_DIR/spdk/python" $SPDK_DEPLOY_DIR/../
|
cp -r "$WORKLOADS_DIR/spdk/python" $SPDK_DEPLOY_DIR/../
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ build_virtiofsd() {
|
|||||||
VIRTIOFSD_DIR="$WORKLOADS_DIR/virtiofsd_build"
|
VIRTIOFSD_DIR="$WORKLOADS_DIR/virtiofsd_build"
|
||||||
VIRTIOFSD_REPO="https://gitlab.com/virtio-fs/virtiofsd.git"
|
VIRTIOFSD_REPO="https://gitlab.com/virtio-fs/virtiofsd.git"
|
||||||
|
|
||||||
checkout_repo "$VIRTIOFSD_DIR" "$VIRTIOFSD_REPO" v1.1.0 "220405d7a2606c92636d31992b5cb3036a41047b"
|
checkout_repo "$VIRTIOFSD_DIR" "$VIRTIOFSD_REPO" v1.8.0 "97ea7908fe7f9bc59916671a771bdcfaf4044b45"
|
||||||
|
|
||||||
if [ ! -f "$VIRTIOFSD_DIR/.built" ]; then
|
if [ ! -f "$VIRTIOFSD_DIR/.built" ]; then
|
||||||
pushd $VIRTIOFSD_DIR
|
pushd $VIRTIOFSD_DIR
|
||||||
|
@ -116,7 +116,7 @@ if [ ! -f "$VIRTIOFSD" ]; then
|
|||||||
pushd $WORKLOADS_DIR
|
pushd $WORKLOADS_DIR
|
||||||
git clone "https://gitlab.com/virtio-fs/virtiofsd.git" $VIRTIOFSD_DIR
|
git clone "https://gitlab.com/virtio-fs/virtiofsd.git" $VIRTIOFSD_DIR
|
||||||
pushd $VIRTIOFSD_DIR
|
pushd $VIRTIOFSD_DIR
|
||||||
git checkout v1.1.0
|
git checkout v1.8.0
|
||||||
time cargo build --release
|
time cargo build --release
|
||||||
cp target/release/virtiofsd $VIRTIOFSD || exit 1
|
cp target/release/virtiofsd $VIRTIOFSD || exit 1
|
||||||
popd
|
popd
|
||||||
|
@ -4281,8 +4281,8 @@ mod common_parallel {
|
|||||||
fn test_vfio() {
|
fn test_vfio() {
|
||||||
setup_vfio_network_interfaces();
|
setup_vfio_network_interfaces();
|
||||||
|
|
||||||
let focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string());
|
let jammy = UbuntuDiskConfig::new(JAMMY_IMAGE_NAME.to_string());
|
||||||
let guest = Guest::new_from_ip_range(Box::new(focal), "172.18", 0);
|
let guest = Guest::new_from_ip_range(Box::new(jammy), "172.18", 0);
|
||||||
|
|
||||||
let mut workload_path = dirs::home_dir().unwrap();
|
let mut workload_path = dirs::home_dir().unwrap();
|
||||||
workload_path.push("workloads");
|
workload_path.push("workloads");
|
||||||
@ -8055,6 +8055,7 @@ mod windows {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[ignore = "See #6037"]
|
||||||
#[cfg(not(feature = "mshv"))]
|
#[cfg(not(feature = "mshv"))]
|
||||||
#[cfg(not(target_arch = "aarch64"))]
|
#[cfg(not(target_arch = "aarch64"))]
|
||||||
fn test_windows_guest_disk_hotplug() {
|
fn test_windows_guest_disk_hotplug() {
|
||||||
@ -8150,6 +8151,7 @@ mod windows {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[ignore = "See #6037"]
|
||||||
#[cfg(not(feature = "mshv"))]
|
#[cfg(not(feature = "mshv"))]
|
||||||
#[cfg(not(target_arch = "aarch64"))]
|
#[cfg(not(target_arch = "aarch64"))]
|
||||||
fn test_windows_guest_disk_hotplug_multi() {
|
fn test_windows_guest_disk_hotplug_multi() {
|
||||||
@ -9651,6 +9653,7 @@ mod live_migration {
|
|||||||
|
|
||||||
// Require to run ovs-dpdk tests sequentially because they rely on the same ovs-dpdk setup
|
// Require to run ovs-dpdk tests sequentially because they rely on the same ovs-dpdk setup
|
||||||
#[test]
|
#[test]
|
||||||
|
#[ignore = "See #5532"]
|
||||||
#[cfg(target_arch = "x86_64")]
|
#[cfg(target_arch = "x86_64")]
|
||||||
#[cfg(not(feature = "mshv"))]
|
#[cfg(not(feature = "mshv"))]
|
||||||
fn test_live_migration_ovs_dpdk() {
|
fn test_live_migration_ovs_dpdk() {
|
||||||
@ -9665,6 +9668,7 @@ mod live_migration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[ignore = "See #5532"]
|
||||||
#[cfg(target_arch = "x86_64")]
|
#[cfg(target_arch = "x86_64")]
|
||||||
#[cfg(not(feature = "mshv"))]
|
#[cfg(not(feature = "mshv"))]
|
||||||
fn test_live_upgrade_ovs_dpdk() {
|
fn test_live_upgrade_ovs_dpdk() {
|
||||||
|
Loading…
Reference in New Issue
Block a user