mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tests: fix CI flakiness
This test has failed at least once in upstream CI. With the applied stress workload, reducing the downtime to 1 ms makes it virtually impossible for CI runners with various speeds to complete VM migration. In other words: we will always be able to cancel. On-behalf-of: SAP philipp.schuster@sap.com Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
committed by
Bo Chen
parent
0bc3ca1103
commit
c06f6c3293
@@ -9949,7 +9949,7 @@ mod live_migration {
|
||||
// Start a memory stressor in the background to keep pages dirty,
|
||||
// ensuring the precopy loop cannot converge within the 1s timeout.
|
||||
guest
|
||||
.ssh_command("nohup stress --vm 2 --vm-bytes 200M --vm-keep &>/dev/null &")
|
||||
.ssh_command("nohup stress --vm 2 --vm-bytes 220M --vm-keep &>/dev/null &")
|
||||
.unwrap();
|
||||
// Give stress a moment to actually start dirtying memory
|
||||
thread::sleep(Duration::from_secs(3));
|
||||
@@ -9971,14 +9971,14 @@ mod live_migration {
|
||||
|
||||
thread::sleep(Duration::from_secs(1));
|
||||
|
||||
// Use a tight downtime budget (50ms) combined with a 1s timeout so the
|
||||
// migration cannot converge regardless of strategy.
|
||||
// Use a tight downtime budget (1ms) combined with a 1s timeout so the
|
||||
// migration practically cannot converge regardless of strategy.
|
||||
let mut send_migration = Command::new(clh_command("ch-remote"))
|
||||
.args([
|
||||
&format!("--api-socket={src_api_socket}"),
|
||||
"send-migration",
|
||||
&format!(
|
||||
"destination_url=tcp:{host_ip}:{migration_port},downtime_ms=50,timeout_s=1,timeout_strategy={timeout_strategy:?}"
|
||||
"destination_url=tcp:{host_ip}:{migration_port},downtime_ms=1,timeout_s=1,timeout_strategy={timeout_strategy:?}"
|
||||
),
|
||||
])
|
||||
.stdin(Stdio::null())
|
||||
|
||||
Reference in New Issue
Block a user