container: don't map develop to latest (#42952)

Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
This commit is contained in:
Wouter Deconinck 2024-03-05 03:47:04 -06:00 committed by GitHub
parent 157d47fc5a
commit dd4b365608
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 45 deletions

View file

@ -19,9 +19,6 @@
}, },
"os_package_manager": "dnf", "os_package_manager": "dnf",
"build": "spack/fedora38", "build": "spack/fedora38",
"build_tags": {
"develop": "latest"
},
"final": { "final": {
"image": "docker.io/fedora:38" "image": "docker.io/fedora:38"
} }
@ -33,9 +30,6 @@
}, },
"os_package_manager": "dnf", "os_package_manager": "dnf",
"build": "spack/fedora37", "build": "spack/fedora37",
"build_tags": {
"develop": "latest"
},
"final": { "final": {
"image": "docker.io/fedora:37" "image": "docker.io/fedora:37"
} }
@ -47,9 +41,6 @@
}, },
"os_package_manager": "dnf_epel", "os_package_manager": "dnf_epel",
"build": "spack/rockylinux9", "build": "spack/rockylinux9",
"build_tags": {
"develop": "latest"
},
"final": { "final": {
"image": "docker.io/rockylinux:9" "image": "docker.io/rockylinux:9"
} }
@ -61,9 +52,6 @@
}, },
"os_package_manager": "dnf_epel", "os_package_manager": "dnf_epel",
"build": "spack/rockylinux8", "build": "spack/rockylinux8",
"build_tags": {
"develop": "latest"
},
"final": { "final": {
"image": "docker.io/rockylinux:8" "image": "docker.io/rockylinux:8"
} }
@ -75,9 +63,6 @@
}, },
"os_package_manager": "dnf_epel", "os_package_manager": "dnf_epel",
"build": "spack/almalinux9", "build": "spack/almalinux9",
"build_tags": {
"develop": "latest"
},
"final": { "final": {
"image": "quay.io/almalinuxorg/almalinux:9" "image": "quay.io/almalinuxorg/almalinux:9"
} }
@ -89,9 +74,6 @@
}, },
"os_package_manager": "dnf_epel", "os_package_manager": "dnf_epel",
"build": "spack/almalinux8", "build": "spack/almalinux8",
"build_tags": {
"develop": "latest"
},
"final": { "final": {
"image": "quay.io/almalinuxorg/almalinux:8" "image": "quay.io/almalinuxorg/almalinux:8"
} }
@ -105,9 +87,6 @@
"build": "spack/centos-stream", "build": "spack/centos-stream",
"final": { "final": {
"image": "quay.io/centos/centos:stream" "image": "quay.io/centos/centos:stream"
},
"build_tags": {
"develop": "latest"
} }
}, },
"centos:7": { "centos:7": {
@ -115,10 +94,7 @@
"template": "container/centos_7.dockerfile" "template": "container/centos_7.dockerfile"
}, },
"os_package_manager": "yum", "os_package_manager": "yum",
"build": "spack/centos7", "build": "spack/centos7"
"build_tags": {
"develop": "latest"
}
}, },
"opensuse/leap:15": { "opensuse/leap:15": {
"bootstrap": { "bootstrap": {
@ -126,9 +102,6 @@
}, },
"os_package_manager": "zypper", "os_package_manager": "zypper",
"build": "spack/leap15", "build": "spack/leap15",
"build_tags": {
"develop": "latest"
},
"final": { "final": {
"image": "opensuse/leap:latest" "image": "opensuse/leap:latest"
} }
@ -148,19 +121,13 @@
"template": "container/ubuntu_2204.dockerfile" "template": "container/ubuntu_2204.dockerfile"
}, },
"os_package_manager": "apt", "os_package_manager": "apt",
"build": "spack/ubuntu-jammy", "build": "spack/ubuntu-jammy"
"build_tags": {
"develop": "latest"
}
}, },
"ubuntu:20.04": { "ubuntu:20.04": {
"bootstrap": { "bootstrap": {
"template": "container/ubuntu_2004.dockerfile" "template": "container/ubuntu_2004.dockerfile"
}, },
"build": "spack/ubuntu-focal", "build": "spack/ubuntu-focal",
"build_tags": {
"develop": "latest"
},
"os_package_manager": "apt" "os_package_manager": "apt"
}, },
"ubuntu:18.04": { "ubuntu:18.04": {
@ -168,10 +135,7 @@
"template": "container/ubuntu_1804.dockerfile" "template": "container/ubuntu_1804.dockerfile"
}, },
"os_package_manager": "apt", "os_package_manager": "apt",
"build": "spack/ubuntu-bionic", "build": "spack/ubuntu-bionic"
"build_tags": {
"develop": "latest"
}
} }
}, },
"os_package_managers": { "os_package_managers": {

View file

@ -50,10 +50,7 @@ def build_info(image, spack_version):
if not build_image: if not build_image:
return None, None return None, None
# Translate version from git to docker if necessary return build_image, spack_version
build_tag = image_data["build_tags"].get(spack_version, spack_version)
return build_image, build_tag
def os_package_manager_for(image): def os_package_manager_for(image):

View file

@ -25,7 +25,7 @@ def test_build_and_run_images(minimal_configuration):
# Test the output of the build property # Test the output of the build property
build = writer.build build = writer.build
assert build.image == "spack/ubuntu-bionic:latest" assert build.image == "spack/ubuntu-bionic:develop"
def test_packages(minimal_configuration): def test_packages(minimal_configuration):

View file

@ -12,7 +12,7 @@
@pytest.mark.parametrize( @pytest.mark.parametrize(
"image,spack_version,expected", "image,spack_version,expected",
[ [
("ubuntu:18.04", "develop", ("spack/ubuntu-bionic", "latest")), ("ubuntu:18.04", "develop", ("spack/ubuntu-bionic", "develop")),
("ubuntu:18.04", "0.14.0", ("spack/ubuntu-bionic", "0.14.0")), ("ubuntu:18.04", "0.14.0", ("spack/ubuntu-bionic", "0.14.0")),
], ],
) )