diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 940b319d2..666e065df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -173,7 +173,7 @@ jobs: display-name: macOS 11 timeout: 20 runs-on: macos-11 - instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3006", "latest"]' + instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3006", "stable-3006-1", "latest"]' macos-12: @@ -188,7 +188,7 @@ jobs: display-name: macOS 12 timeout: 20 runs-on: macos-12 - instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3006", "latest"]' + instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3006", "stable-3006-1", "latest"]' @@ -204,7 +204,7 @@ jobs: display-name: Windows 2019 timeout: 20 runs-on: windows-2019 - instances: '["stable-3005", "stable-3006", "latest"]' + instances: '["stable-3005", "stable-3005-1", "stable-3006", "stable-3006-1", "latest"]' windows-2022: @@ -219,7 +219,7 @@ jobs: display-name: Windows 2022 timeout: 20 runs-on: windows-2022 - instances: '["stable-3005", "stable-3006", "latest"]' + instances: '["stable-3005", "stable-3005-1", "stable-3006", "stable-3006-1", "latest"]' @@ -234,7 +234,7 @@ jobs: distro-slug: almalinux-8 display-name: AlmaLinux 8 timeout: 20 - instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3006", "onedir-3006", "latest", "default"]' + instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3005-1", "stable-3006", "onedir-3006", "stable-3006-1", "latest", "default"]' almalinux-9: @@ -248,7 +248,7 @@ jobs: distro-slug: almalinux-9 display-name: AlmaLinux 9 timeout: 20 - instances: '["git-3005", "stable-3006", "onedir-3006", "git-master", "latest", "default"]' + instances: '["git-3005", "stable-3006", "onedir-3006", "stable-3006-1", "git-master", "latest", "default"]' amazon-2: @@ -262,7 +262,7 @@ jobs: distro-slug: amazon-2 display-name: Amazon 2 timeout: 20 - instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3006", "onedir-3006", "latest", "default"]' + instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3005-1", "stable-3006", "onedir-3006", "stable-3006-1", "latest", "default"]' arch: @@ -290,7 +290,7 @@ jobs: distro-slug: centos-7 display-name: CentOS 7 timeout: 20 - instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3006", "onedir-3006", "latest", "default"]' + instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3005-1", "stable-3006", "onedir-3006", "stable-3006-1", "latest", "default"]' centos-stream8: @@ -304,7 +304,7 @@ jobs: distro-slug: centos-stream8 display-name: CentOS Stream 8 timeout: 20 - instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3006", "onedir-3006", "latest", "default"]' + instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3005-1", "stable-3006", "onedir-3006", "stable-3006-1", "latest", "default"]' centos-stream9: @@ -318,7 +318,7 @@ jobs: distro-slug: centos-stream9 display-name: CentOS Stream 9 timeout: 20 - instances: '["git-3005", "stable-3006", "onedir-3006", "git-master", "latest", "default"]' + instances: '["git-3005", "stable-3006", "onedir-3006", "stable-3006-1", "git-master", "latest", "default"]' debian-10: @@ -332,7 +332,7 @@ jobs: distro-slug: debian-10 display-name: Debian 10 timeout: 20 - instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3006", "onedir-3006", "latest", "default"]' + instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3005-1", "stable-3006", "onedir-3006", "stable-3006-1", "latest", "default"]' debian-11: @@ -346,7 +346,7 @@ jobs: distro-slug: debian-11 display-name: Debian 11 timeout: 20 - instances: '["old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3006", "onedir-3006", "git-master", "latest", "default"]' + instances: '["old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3005-1", "stable-3006", "onedir-3006", "stable-3006-1", "git-master", "latest", "default"]' fedora-36: @@ -360,7 +360,7 @@ jobs: distro-slug: fedora-36 display-name: Fedora 36 timeout: 20 - instances: '["stable-3006", "onedir-3006", "git-master", "latest", "default"]' + instances: '["stable-3006", "onedir-3006", "stable-3006-1", "git-master", "latest", "default"]' fedora-37: @@ -374,7 +374,7 @@ jobs: distro-slug: fedora-37 display-name: Fedora 37 timeout: 20 - instances: '["stable-3006", "onedir-3006", "latest", "default"]' + instances: '["stable-3006", "onedir-3006", "stable-3006-1", "latest", "default"]' fedora-38: @@ -388,7 +388,7 @@ jobs: distro-slug: fedora-38 display-name: Fedora 38 timeout: 20 - instances: '["stable-3006", "onedir-3006", "latest", "default"]' + instances: '["stable-3006", "onedir-3006", "stable-3006-1", "latest", "default"]' gentoo: @@ -458,7 +458,7 @@ jobs: distro-slug: oraclelinux-7 display-name: Oracle Linux 7 timeout: 20 - instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3006", "onedir-3006", "latest", "default"]' + instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3005-1", "stable-3006", "onedir-3006", "stable-3006-1", "latest", "default"]' oraclelinux-8: @@ -472,7 +472,7 @@ jobs: distro-slug: oraclelinux-8 display-name: Oracle Linux 8 timeout: 20 - instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3006", "onedir-3006", "latest", "default"]' + instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3005-1", "stable-3006", "onedir-3006", "stable-3006-1", "latest", "default"]' photon-3: @@ -486,7 +486,7 @@ jobs: distro-slug: photon-3 display-name: Photon OS 3 timeout: 20 - instances: '["stable-3006", "onedir-3006", "git-master", "latest", "default"]' + instances: '["stable-3006", "onedir-3006", "stable-3006-1", "git-master", "latest", "default"]' photon-4: @@ -500,7 +500,7 @@ jobs: distro-slug: photon-4 display-name: Photon OS 4 timeout: 20 - instances: '["stable-3006", "onedir-3006", "git-master", "latest", "default"]' + instances: '["stable-3006", "onedir-3006", "stable-3006-1", "git-master", "latest", "default"]' rockylinux-8: @@ -514,7 +514,7 @@ jobs: distro-slug: rockylinux-8 display-name: Rocky Linux 8 timeout: 20 - instances: '["old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3006", "onedir-3006", "latest", "default"]' + instances: '["old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3005-1", "stable-3006", "onedir-3006", "stable-3006-1", "latest", "default"]' rockylinux-9: @@ -528,7 +528,7 @@ jobs: distro-slug: rockylinux-9 display-name: Rocky Linux 9 timeout: 20 - instances: '["git-3005", "stable-3006", "onedir-3006", "git-master", "latest", "default"]' + instances: '["git-3005", "stable-3006", "onedir-3006", "stable-3006-1", "git-master", "latest", "default"]' ubuntu-2004: @@ -542,7 +542,7 @@ jobs: distro-slug: ubuntu-2004 display-name: Ubuntu 20.04 timeout: 20 - instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3006", "onedir-3006", "git-master", "latest", "default"]' + instances: '["old-stable-3003", "old-stable-3004", "old-stable-3005", "stable-3005", "onedir-3005", "stable-3005-1", "stable-3006", "onedir-3006", "stable-3006-1", "git-master", "latest", "default"]' ubuntu-2204: @@ -556,7 +556,7 @@ jobs: distro-slug: ubuntu-2204 display-name: Ubuntu 22.04 timeout: 20 - instances: '["stable-3005", "onedir-3005", "stable-3006", "onedir-3006", "git-master", "latest", "default"]' + instances: '["stable-3005", "onedir-3005", "stable-3005-1", "stable-3006", "onedir-3006", "stable-3006-1", "git-master", "latest", "default"]' set-pipeline-exit-status: diff --git a/.github/workflows/templates/generate.py b/.github/workflows/templates/generate.py index 1a9cf1c8c..4fb4ded79 100755 --- a/.github/workflows/templates/generate.py +++ b/.github/workflows/templates/generate.py @@ -282,7 +282,9 @@ "3003", "3004", "3005", + "3005-1", "3006", + "3006-1", "master", "latest", "nightly", @@ -300,14 +302,18 @@ "3003": "v3003", "3004": "v3004", "3005": "v3005", + "3005-1": "v3005.1", "3006": "v3006", + "3006-1": "v3006.1", "master": "Master", "latest": "Latest", "nightly": "Nightly", } OLD_STABLE_VERSION_BLACKLIST = [ + "3005-1", "3006", + "3006-1", "master", "nightly", ] @@ -320,7 +326,9 @@ ] MAC_OLD_STABLE_VERSION_BLACKLIST = [ + "3005-1", "3006", + "3006-1", "master", "nightly", ] @@ -329,11 +337,14 @@ "3003", "3004", "3005", + "3005-1", "master", "nightly", ] GIT_VERSION_BLACKLIST = [ + "3005-1", + "3006-1", "nightly", ] @@ -660,7 +671,9 @@ def generate_test_jobs(): "3003": BLACKLIST_3003, "3004": BLACKLIST_3004, "3005": BLACKLIST_3005, + "3005-1": BLACKLIST_3005, "3006": BLACKLIST_3006, + "3006-1": BLACKLIST_3006, } if bootstrap_type == "git": BLACKLIST = { @@ -678,7 +691,8 @@ def generate_test_jobs(): continue if ( - salt_version in ("3003", "3004", "3005", "3006", "master") + salt_version + in ("3003", "3004", "3005", "3005-1", "3006", "3006-1", "master") and distro in BLACKLIST[salt_version] ): continue diff --git a/kitchen.macos.yml b/kitchen.macos.yml index 5635d700c..78467f0e1 100644 --- a/kitchen.macos.yml +++ b/kitchen.macos.yml @@ -37,6 +37,10 @@ suites: provisioner: salt_version: 3006 salt_call_command: /opt/salt/salt-call + - name: stable-3006-1 + provisioner: + salt_version: 3006.1 + salt_call_command: /opt/salt/salt-call - name: latest provisioner: salt_version: latest diff --git a/kitchen.windows.yml b/kitchen.windows.yml index f3e16b390..a21ffa685 100644 --- a/kitchen.windows.yml +++ b/kitchen.windows.yml @@ -28,10 +28,17 @@ suites: - name: stable-3005 provisioner: salt_version: 3005.1-1 + - name: stable-3005-1 + provisioner: + salt_version: 3005.1-1 - name: stable-3006 provisioner: salt_version: 3006.0 salt_call_command: c:\Program Files\Salt Project\Salt\salt-call.exe + - name: stable-3006-1 + provisioner: + salt_version: 3006.1 + salt_call_command: c:\Program Files\Salt Project\Salt\salt-call.exe - name: latest provisioner: salt_version: latest diff --git a/kitchen.yml b/kitchen.yml index 9f073a7c0..f5b0ddffa 100644 --- a/kitchen.yml +++ b/kitchen.yml @@ -301,6 +301,17 @@ suites: - freebsd-131 - freebsd-123 - openbsd-6 + - name: stable-3005-1 + provisioner: + salt_version: 3005.1 + salt_bootstrap_options: -x python3 -MP stable %s + excludes: + - opensuse-15 + - opensuse-tumbleweed + - arch + - freebsd-131 + - freebsd-123 + - openbsd-6 - name: stable-3006 provisioner: salt_version: 3006 @@ -312,6 +323,17 @@ suites: - freebsd-131 - freebsd-123 - openbsd-6 + - name: stable-3006-1 + provisioner: + salt_version: 3006.1 + salt_bootstrap_options: -x python3 -MP stable %s + excludes: + - opensuse-15 + - opensuse-tumbleweed + - arch + - freebsd-131 + - freebsd-123 + - openbsd-6 - name: git-master provisioner: salt_version: master diff --git a/tests/conftest.py b/tests/conftest.py index 1366f85ff..21ec674a1 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -47,7 +47,19 @@ def target_python_version(): @pytest.fixture(scope="session") def target_salt_version(): - target_salt = os.environ["KITCHEN_SUITE"].split("-", 2)[-1].replace("-", ".") + bootstrap_types = ("git", "stable", "old", "stable", "onedir", "onedir_rc") + + # filter out any bootstrap types and then join + target_salt = ".".join( + [ + item + for item in os.environ["KITCHEN_SUITE"].split("-") + if item not in bootstrap_types + ] + ) + + # target_salt = os.environ["KITCHEN_SUITE"].split("-", 1)[-1].replace("-", ".") + if target_salt.startswith("v"): target_salt = target_salt[1:] if target_salt in ("default", "latest", "master", "nightly"):