Skip to content

Commit

Permalink
reduce mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Nov 9, 2024
1 parent d3e3c95 commit b2dbd34
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 38 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ jobs:

rockylinux-8-pkg-tests:
name: Rocky Linux 8 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'rockylinux-8') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand All @@ -608,7 +608,7 @@ jobs:

rockylinux-8-arm64-pkg-tests:
name: Rocky Linux 8 Arm64 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'rockylinux-8-arm64') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand Down Expand Up @@ -652,7 +652,7 @@ jobs:

rockylinux-9-arm64-pkg-tests:
name: Rocky Linux 9 Arm64 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'rockylinux-9-arm64') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand All @@ -674,7 +674,7 @@ jobs:

amazonlinux-2-pkg-tests:
name: Amazon Linux 2 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'amazonlinux-2') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand All @@ -696,7 +696,7 @@ jobs:

amazonlinux-2-arm64-pkg-tests:
name: Amazon Linux 2 Arm64 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'amazonlinux-2-arm64') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand All @@ -718,7 +718,7 @@ jobs:

amazonlinux-2023-pkg-tests:
name: Amazon Linux 2023 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'amazonlinux-2023') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand Down Expand Up @@ -762,7 +762,7 @@ jobs:

debian-11-pkg-tests:
name: Debian 11 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'debian-11') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand All @@ -784,7 +784,7 @@ jobs:

debian-11-arm64-pkg-tests:
name: Debian 11 Arm64 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'debian-11-arm64') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand All @@ -806,7 +806,7 @@ jobs:

debian-12-pkg-tests:
name: Debian 12 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'debian-12') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand All @@ -828,7 +828,7 @@ jobs:

debian-12-arm64-pkg-tests:
name: Debian 12 Arm64 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'debian-12-arm64') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand All @@ -850,7 +850,7 @@ jobs:

photonos-4-pkg-tests:
name: Photon OS 4 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'photonos-4') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand All @@ -872,7 +872,7 @@ jobs:

photonos-4-arm64-pkg-tests:
name: Photon OS 4 Arm64 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'photonos-4-arm64') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand All @@ -894,7 +894,7 @@ jobs:

photonos-4-pkg-tests-fips:
name: Photon OS 4 Package Test (fips)
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'photonos-4') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand All @@ -917,7 +917,7 @@ jobs:

photonos-4-arm64-pkg-tests-fips:
name: Photon OS 4 Arm64 Package Test (fips)
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'photonos-4-arm64') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand All @@ -940,7 +940,7 @@ jobs:

photonos-5-pkg-tests:
name: Photon OS 5 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'photonos-5') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand Down Expand Up @@ -984,7 +984,7 @@ jobs:

photonos-5-pkg-tests-fips:
name: Photon OS 5 Package Test (fips)
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'photonos-5') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand Down Expand Up @@ -1030,7 +1030,7 @@ jobs:

ubuntu-2004-pkg-tests:
name: Ubuntu 20.04 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'ubuntu-20.04') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand All @@ -1052,7 +1052,7 @@ jobs:

ubuntu-2004-arm64-pkg-tests:
name: Ubuntu 20.04 Arm64 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'ubuntu-20.04-arm64') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand All @@ -1074,7 +1074,7 @@ jobs:

ubuntu-2204-pkg-tests:
name: Ubuntu 22.04 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'ubuntu-22.04') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand All @@ -1096,7 +1096,7 @@ jobs:

ubuntu-2204-arm64-pkg-tests:
name: Ubuntu 22.04 Arm64 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'ubuntu-22.04-arm64') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand All @@ -1118,7 +1118,7 @@ jobs:

ubuntu-2404-pkg-tests:
name: Ubuntu 24.04 Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'ubuntu-24.04') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
needs:
- prepare-workflow
- build-pkgs-onedir-linux
Expand Down Expand Up @@ -1226,7 +1226,7 @@ jobs:

windows-2022-nsis-pkg-tests:
name: Windows 2022 NSIS Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'windows-2022') }}
needs:
- prepare-workflow
- build-pkgs-onedir-windows
Expand All @@ -1247,7 +1247,7 @@ jobs:

windows-2022-msi-pkg-tests:
name: Windows 2022 MSI Package Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'windows-2022') }}
needs:
- prepare-workflow
- build-pkgs-onedir-windows
Expand Down Expand Up @@ -1376,7 +1376,7 @@ jobs:

rockylinux-9:
name: Rocky Linux 9 Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test'] }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'rockylinux-9') }}
needs:
- prepare-workflow
- build-ci-deps-linux
Expand Down Expand Up @@ -1486,7 +1486,7 @@ jobs:

amazonlinux-2023-arm64:
name: Amazon Linux 2023 Arm64 Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test'] }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'amazonlinux-2023-arm64') }}
needs:
- prepare-workflow
- build-ci-deps-linux
Expand Down Expand Up @@ -1730,7 +1730,7 @@ jobs:

photonos-5-arm64:
name: Photon OS 5 Arm64 Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test'] }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'photonos-5-arm64') }}
needs:
- prepare-workflow
- build-ci-deps-linux
Expand Down Expand Up @@ -1775,7 +1775,7 @@ jobs:

photonos-5-arm64-fips:
name: Photon OS 5 Arm64 Test (fips)
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test'] }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'photonos-5-arm64') }}
needs:
- prepare-workflow
- build-ci-deps-linux
Expand Down Expand Up @@ -1842,7 +1842,7 @@ jobs:

ubuntu-2204:
name: Ubuntu 22.04 Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'ubuntu-22.04') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test'] }}
needs:
- prepare-workflow
- build-ci-deps-linux
Expand All @@ -1864,7 +1864,7 @@ jobs:

ubuntu-2204-arm64:
name: Ubuntu 22.04 Arm64 Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'ubuntu-22.04-arm64') }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test'] }}
needs:
- prepare-workflow
- build-ci-deps-linux
Expand Down Expand Up @@ -1908,7 +1908,7 @@ jobs:

ubuntu-2404-arm64:
name: Ubuntu 24.04 Arm64 Test
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test'] }}
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), 'ubuntu-24.04-arm64') }}
needs:
- prepare-workflow
- build-ci-deps-linux
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/templates/test-salt-pkg.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<{ job_name }>:
<%- do test_salt_pkg_needs.append(job_name) %>
name: <{ os.display_name }> Package Test<%- if os.fips %> (fips)<%- endif %>
<%- if workflow_slug != "ci" or os.slug in mandatory_os_slugs %>
<%- if workflow_slug != "ci" or os.slug in mandatory_os_slugs or True %>
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] }}
<%- else %>
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['test-pkg'] && contains(fromJSON(needs.prepare-workflow.outputs.os-labels), '<{ os.slug }>') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-packages-action-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
test:
name: Test
runs-on:
- linux-${{ inputs.arch }}
- ${{ inputs.arch == 'x86_64' && 'ubuntu-latest' || 'linux-arm64' }}
container:
image: ${{ inputs.container }}
options: --privileged
Expand Down
7 changes: 2 additions & 5 deletions cicd/shared-gh-workflows-context.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@ nox_version: "2022.8.7"
python_version: "3.10.15"
relenv_version: "0.18.0"
mandatory_os_slugs:
- rockylinux-9
- amazonlinux-2023-arm64
- photonos-5-arm64
- ubuntu-24.04-arm64
- windows-2022
- ubuntu-22.04
- ubuntu-22.04-arm64
1 change: 0 additions & 1 deletion tools/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,6 @@ def pkg_matrix(
]

for version, backend in adjusted_versions:
print(f"WTF {version} {backend}")
prefix = prefixes[backend]
# TODO: Remove this after 3009.0
if backend == "relenv" and version >= tools.utils.Version("3006.5"):
Expand Down

0 comments on commit b2dbd34

Please sign in to comment.