diff --git a/.cirrus.yml b/.cirrus.yml index f22e0bc34b..8efa880aa5 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -33,7 +33,8 @@ env: DEBIAN_NAME: "debian-13" # Image identifiers - IMAGE_SUFFIX: "c20231116t174419z-f39f38d13" + IMAGE_SUFFIX: "c20231206t225809z-f39f38d13" + # EC2 images FEDORA_AMI: "fedora-aws-${IMAGE_SUFFIX}" diff --git a/contrib/cirrus/win-podman-machine-main.ps1 b/contrib/cirrus/win-podman-machine-main.ps1 index bee9250c7d..4fc3fc85c2 100644 --- a/contrib/cirrus/win-podman-machine-main.ps1 +++ b/contrib/cirrus/win-podman-machine-main.ps1 @@ -4,6 +4,13 @@ Set-Location "$ENV:CIRRUS_WORKING_DIR\repo" +$GvTargetDir = "C:\Program Files\Redhat\Podman\" + +#Expand-Archive -Path "podman-remote-release-windows_amd64.zip" -DestinationPath $GvTargetDir + +New-Item -Path $GvTargetDir -ItemType "directory" +Copy-Item "bin/windows/gvproxy.exe" -Destination $GvTargetDir + Write-Host "Saving selection of CI env. vars." # Env. vars will not pass through win-sess-launch.ps1 Get-ChildItem -Path "Env:\*" -include @("PATH", "Chocolatey*", "CIRRUS*", "TEST_*", "CI_*") ` diff --git a/pkg/machine/e2e/config_test.go b/pkg/machine/e2e/config_test.go index 60e9187a5a..87b1d00e1b 100644 --- a/pkg/machine/e2e/config_test.go +++ b/pkg/machine/e2e/config_test.go @@ -234,3 +234,17 @@ func isVmtype(vmType machine.VMType) bool { func isWSL() bool { return isVmtype(machine.WSLVirt) } + +func getFCOSDownloadLocation(p machine.VirtProvider) string { + dd, err := p.NewDownload("") + if err != nil { + Fail("unable to create new download") + } + + fcd, err := dd.GetFCOSDownload(defaultStream) + if err != nil { + Fail("unable to get virtual machine image") + } + + return fcd.Location +} diff --git a/pkg/machine/e2e/config_unix_test.go b/pkg/machine/e2e/config_unix_test.go index 027021ca43..24c57ee65f 100644 --- a/pkg/machine/e2e/config_unix_test.go +++ b/pkg/machine/e2e/config_unix_test.go @@ -6,21 +6,10 @@ import ( "os/exec" "github.com/containers/podman/v4/pkg/machine" - . "github.com/onsi/ginkgo/v2" ) func getDownloadLocation(p machine.VirtProvider) string { - dd, err := p.NewDownload("") - if err != nil { - Fail("unable to create new download") - } - - fcd, err := dd.GetFCOSDownload(defaultStream) - if err != nil { - Fail("unable to get virtual machine image") - } - - return fcd.Location + return getFCOSDownloadLocation(p) } func pgrep(n string) (string, error) { diff --git a/pkg/machine/e2e/config_windows_test.go b/pkg/machine/e2e/config_windows_test.go index 9fa63cd884..c47bda043f 100644 --- a/pkg/machine/e2e/config_windows_test.go +++ b/pkg/machine/e2e/config_windows_test.go @@ -12,7 +12,10 @@ import ( const podmanBinary = "../../../bin/windows/podman.exe" -func getDownloadLocation(_ machine.VirtProvider) string { +func getDownloadLocation(p machine.VirtProvider) string { + if p.VMType() == machine.HyperVVirt { + return getFCOSDownloadLocation(p) + } fd, err := wsl.NewFedoraDownloader(machine.WSLVirt, "", defaultStream.String()) if err != nil { Fail("unable to get WSL virtual image") diff --git a/pkg/machine/e2e/machine_test.go b/pkg/machine/e2e/machine_test.go index c7400d2040..ae89e839a3 100644 --- a/pkg/machine/e2e/machine_test.go +++ b/pkg/machine/e2e/machine_test.go @@ -61,9 +61,6 @@ var _ = BeforeSuite(func() { downloadLocation = getDownloadLocation(testProvider) // we cannot simply use OS here because hyperv uses fcos; so WSL is just // special here - if testProvider.VMType() != machine.WSLVirt { - downloadLocation = getDownloadLocation(testProvider) - } } compressionExtension := fmt.Sprintf(".%s", testProvider.Compression().String())