diff --git a/.github/actions/get-python-version/action.yml b/.github/actions/get-python-version/action.yml index e64d285bca51..f2b045f7ca74 100644 --- a/.github/actions/get-python-version/action.yml +++ b/.github/actions/get-python-version/action.yml @@ -13,6 +13,8 @@ outputs: value: ${{ steps.get-python-version.outputs.version }} full-version: value: ${{ steps.get-python-version.outputs.full-version }} + version-sha256sum: + value: ${{ steps.get-python-version.outputs.version-sha256sum }} runs: @@ -20,12 +22,24 @@ runs: steps: + - name: Install System Packages + if: ${{ runner.os == 'macOS' }} + shell: bash + run: | + brew install coreutils + - name: Get Python Version id: get-python-version shell: bash run: | + echo "Python Binary: ${{ inputs.python-binary }}" echo "binary=${{ inputs.python-binary }}" >> "$GITHUB_OUTPUT" PY_VERSION=$(${{ inputs.python-binary }} -c "import sys; sys.stdout.write('{}.{}'.format(*sys.version_info))") + echo "PY_VERSION=$PY_VERSION" echo "version=$PY_VERSION" >> "$GITHUB_OUTPUT" PY_FULL_VERSION=$(${{ inputs.python-binary }} -c "import sys; sys.stdout.write('{}.{}.{}'.format(*sys.version_info))") + echo "PY_FULL_VERSION=$PY_FULL_VERSION" echo "full-version=$PY_FULL_VERSION" >> "$GITHUB_OUTPUT" + VERSION_SHA256SUM=$(${{ inputs.python-binary }} --version --version | sha256sum | cut -d ' ' -f 1) + echo "VERSION_SHA256SUM=$VERSION_SHA256SUM" + echo "version-sha256sum=$VERSION_SHA256SUM" >> "$GITHUB_OUTPUT" diff --git a/.github/actions/setup-python-tools-scripts/action.yml b/.github/actions/setup-python-tools-scripts/action.yml index 72bcf3b1d370..85123e98fe5e 100644 --- a/.github/actions/setup-python-tools-scripts/action.yml +++ b/.github/actions/setup-python-tools-scripts/action.yml @@ -3,6 +3,14 @@ name: setup-python-tools-scripts description: Setup 'python-tools-scripts' inputs: + cache-prefix: + required: true + type: string + description: Seed used to invalidate caches + cache-suffix: + required: false + type: string + description: Seed used to invalidate caches cwd: type: string description: The directory the salt checkout is located in @@ -29,6 +37,15 @@ runs: with: python-binary: python3 + - name: Restore Python Tools Virtualenvs Cache + uses: actions/cache@v3 + with: + path: ${{ inputs.cwd }}/.tools-venvs + key: ${{ inputs.cache-prefix }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version-sha256sum }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}${{ inputs.cache-suffix && format('|{0}', inputs.cache-suffix) || '' }} + restore-keys: | + ${{ inputs.cache-prefix }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version-sha256sum }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}${{ inputs.cache-suffix && format('|{0}', inputs.cache-suffix) || '' }} + ${{ inputs.cache-prefix }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version-sha256sum }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }} + - name: Install 'python-tools-scripts' shell: bash working-directory: ${{ inputs.cwd }} diff --git a/.github/workflows/build-deb-packages.yml b/.github/workflows/build-deb-packages.yml index 31cc710ed3fb..4d7bbdcc8241 100644 --- a/.github/workflows/build-deb-packages.yml +++ b/.github/workflows/build-deb-packages.yml @@ -20,6 +20,10 @@ on: required: true type: string description: The backend to build the packages with + cache-prefix: + required: true + type: string + description: Seed used to invalidate caches env: COLUMNS: 190 @@ -75,6 +79,7 @@ jobs: uses: ./.github/actions/setup-python-tools-scripts with: cwd: pkgs/checkout/ + cache-prefix: ${{ inputs.cache-prefix }} - name: Setup Salt Version id: setup-salt-version diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index eef8243169f0..fea955d9d662 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -56,6 +56,8 @@ jobs: - name: Setup Python Tools Scripts id: python-tools-scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ inputs.cache-seed }} - name: Configure Git if: ${{ startsWith(github.event.ref, 'refs/tags') == false }} diff --git a/.github/workflows/build-macos-packages.yml b/.github/workflows/build-macos-packages.yml index 440aefba7154..67044951b5a1 100644 --- a/.github/workflows/build-macos-packages.yml +++ b/.github/workflows/build-macos-packages.yml @@ -28,6 +28,10 @@ on: required: true type: string description: The backend to build the packages with + cache-prefix: + required: true + type: string + description: Seed used to invalidate caches env: COLUMNS: 190 @@ -81,6 +85,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ inputs.cache-prefix }} - name: Setup Salt Version id: setup-salt-version diff --git a/.github/workflows/build-rpm-packages.yml b/.github/workflows/build-rpm-packages.yml index dfd62c10e8e9..1b2103700c94 100644 --- a/.github/workflows/build-rpm-packages.yml +++ b/.github/workflows/build-rpm-packages.yml @@ -20,6 +20,10 @@ on: required: true type: string description: The backend to build the packages with + cache-prefix: + required: true + type: string + description: Seed used to invalidate caches env: COLUMNS: 190 @@ -64,6 +68,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ inputs.cache-prefix }} - name: Setup Salt Version id: setup-salt-version diff --git a/.github/workflows/build-windows-packages.yml b/.github/workflows/build-windows-packages.yml index 821d33c60d4a..d8c28b96f453 100644 --- a/.github/workflows/build-windows-packages.yml +++ b/.github/workflows/build-windows-packages.yml @@ -28,6 +28,10 @@ on: required: true type: string description: The backend to build the packages with + cache-prefix: + required: true + type: string + description: Seed used to invalidate caches env: COLUMNS: 190 @@ -92,6 +96,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ inputs.cache-prefix }} - name: Setup Salt Version id: setup-salt-version diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d54ce0bbfff8..478f78ae0ada 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -134,20 +134,10 @@ jobs: with: python-version: "3.10" - - name: Get Python Version - id: get-python-version - uses: ./.github/actions/get-python-version - with: - python-binary: python3 - - - name: Restore Cached Python Tools Virtualenvs - uses: actions/cache@v3 - with: - path: .tools-venvs - key: ${{ env.CACHE_SEED }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }} - - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ env.CACHE_SEED }} - name: Pretty Print The GH Actions Event run: @@ -286,23 +276,11 @@ jobs: with: python-version: "3.10" - - name: Get Python Version - id: get-python-version - uses: ./.github/actions/get-python-version - with: - python-binary: python3 - - - name: Restore Python Tools Virtualenvs Cache - uses: actions/cache@v3 - with: - path: .tools-venvs - key: ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|changelog - restore-keys: | - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|changelog - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }} - - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} + cache-suffix: changelog - name: Setup Salt Version id: setup-salt-version @@ -418,23 +396,11 @@ jobs: with: python-version: "3.10" - - name: Get Python Version - id: get-python-version - uses: ./.github/actions/get-python-version - with: - python-binary: python3 - - - name: Restore Python Tools Virtualenvs Cache - uses: actions/cache@v3 - with: - path: .tools-venvs - key: ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|build - restore-keys: | - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|build - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }} - - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} + cache-suffix: build - name: Setup Salt Version id: setup-salt-version @@ -546,6 +512,7 @@ jobs: uses: ./.github/workflows/build-rpm-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "onedir" @@ -559,6 +526,7 @@ jobs: uses: ./.github/workflows/build-rpm-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "src" @@ -572,6 +540,7 @@ jobs: uses: ./.github/workflows/build-deb-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "onedir" @@ -585,6 +554,7 @@ jobs: uses: ./.github/workflows/build-deb-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "src" @@ -598,6 +568,7 @@ jobs: uses: ./.github/workflows/build-windows-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "onedir" @@ -611,6 +582,7 @@ jobs: uses: ./.github/workflows/build-windows-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "src" @@ -624,6 +596,7 @@ jobs: uses: ./.github/workflows/build-macos-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "onedir" @@ -637,6 +610,7 @@ jobs: uses: ./.github/workflows/build-macos-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "src" @@ -2765,6 +2739,9 @@ jobs: - name: Setup Python Tools Scripts id: python-tools-scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} + cache-suffix: coverage - name: Install Nox run: | diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 89119b5c61ad..54ed810e08fc 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -178,20 +178,10 @@ jobs: with: python-version: "3.10" - - name: Get Python Version - id: get-python-version - uses: ./.github/actions/get-python-version - with: - python-binary: python3 - - - name: Restore Cached Python Tools Virtualenvs - uses: actions/cache@v3 - with: - path: .tools-venvs - key: ${{ env.CACHE_SEED }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }} - - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ env.CACHE_SEED }} - name: Pretty Print The GH Actions Event run: @@ -330,23 +320,11 @@ jobs: with: python-version: "3.10" - - name: Get Python Version - id: get-python-version - uses: ./.github/actions/get-python-version - with: - python-binary: python3 - - - name: Restore Python Tools Virtualenvs Cache - uses: actions/cache@v3 - with: - path: .tools-venvs - key: ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|changelog - restore-keys: | - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|changelog - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }} - - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} + cache-suffix: changelog - name: Setup Salt Version id: setup-salt-version @@ -467,23 +445,11 @@ jobs: with: python-version: "3.10" - - name: Get Python Version - id: get-python-version - uses: ./.github/actions/get-python-version - with: - python-binary: python3 - - - name: Restore Python Tools Virtualenvs Cache - uses: actions/cache@v3 - with: - path: .tools-venvs - key: ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|build - restore-keys: | - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|build - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }} - - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} + cache-suffix: build - name: Setup Salt Version id: setup-salt-version @@ -595,6 +561,7 @@ jobs: uses: ./.github/workflows/build-rpm-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "onedir" @@ -608,6 +575,7 @@ jobs: uses: ./.github/workflows/build-rpm-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "src" @@ -621,6 +589,7 @@ jobs: uses: ./.github/workflows/build-deb-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "onedir" @@ -634,6 +603,7 @@ jobs: uses: ./.github/workflows/build-deb-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "src" @@ -647,6 +617,7 @@ jobs: uses: ./.github/workflows/build-windows-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "onedir" @@ -663,6 +634,7 @@ jobs: uses: ./.github/workflows/build-windows-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "src" @@ -679,6 +651,7 @@ jobs: uses: ./.github/workflows/build-macos-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "onedir" @@ -695,6 +668,7 @@ jobs: uses: ./.github/workflows/build-macos-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "src" @@ -2826,6 +2800,9 @@ jobs: - name: Setup Python Tools Scripts id: python-tools-scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} + cache-suffix: coverage - name: Install Nox run: | @@ -2937,7 +2914,9 @@ jobs: - uses: actions/checkout@v4 - name: Setup Python Tools Scripts - uses: ./.github/actions/setup-python-tools-scripts + uses: ./.github/actions/setup-python-tools-script + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}s - name: Get Salt Project GitHub Actions Bot Environment run: | @@ -3080,6 +3059,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | @@ -3299,6 +3280,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | @@ -3385,6 +3368,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | @@ -3485,6 +3470,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | @@ -3569,6 +3556,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | @@ -3765,6 +3754,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Download Repository Artifact uses: actions/download-artifact@v3 diff --git a/.github/workflows/release-upload-virustotal.yml b/.github/workflows/release-upload-virustotal.yml index d47d6ce6a6f1..da13d83ca806 100644 --- a/.github/workflows/release-upload-virustotal.yml +++ b/.github/workflows/release-upload-virustotal.yml @@ -43,6 +43,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: virus-total - name: Upload to VirusTotal env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b7b0037a8df..7d2d473ddaac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,6 +70,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ env.CACHE_SEED }} - name: Pretty Print The GH Actions Event run: @@ -142,6 +144,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | @@ -808,6 +812,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Backup Previous Releases id: backup @@ -838,6 +844,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Publish Release Repository env: @@ -921,6 +929,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Setup GnuPG run: | @@ -1024,6 +1034,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Setup GnuPG run: | diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml index 3eb379f77720..9650cf46f960 100644 --- a/.github/workflows/scheduled.yml +++ b/.github/workflows/scheduled.yml @@ -168,20 +168,10 @@ jobs: with: python-version: "3.10" - - name: Get Python Version - id: get-python-version - uses: ./.github/actions/get-python-version - with: - python-binary: python3 - - - name: Restore Cached Python Tools Virtualenvs - uses: actions/cache@v3 - with: - path: .tools-venvs - key: ${{ env.CACHE_SEED }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }} - - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ env.CACHE_SEED }} - name: Pretty Print The GH Actions Event run: @@ -320,23 +310,11 @@ jobs: with: python-version: "3.10" - - name: Get Python Version - id: get-python-version - uses: ./.github/actions/get-python-version - with: - python-binary: python3 - - - name: Restore Python Tools Virtualenvs Cache - uses: actions/cache@v3 - with: - path: .tools-venvs - key: ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|changelog - restore-keys: | - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|changelog - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }} - - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} + cache-suffix: changelog - name: Setup Salt Version id: setup-salt-version @@ -452,23 +430,11 @@ jobs: with: python-version: "3.10" - - name: Get Python Version - id: get-python-version - uses: ./.github/actions/get-python-version - with: - python-binary: python3 - - - name: Restore Python Tools Virtualenvs Cache - uses: actions/cache@v3 - with: - path: .tools-venvs - key: ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|build - restore-keys: | - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|build - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }} - - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} + cache-suffix: build - name: Setup Salt Version id: setup-salt-version @@ -580,6 +546,7 @@ jobs: uses: ./.github/workflows/build-rpm-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "onedir" @@ -593,6 +560,7 @@ jobs: uses: ./.github/workflows/build-rpm-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "src" @@ -606,6 +574,7 @@ jobs: uses: ./.github/workflows/build-deb-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "onedir" @@ -619,6 +588,7 @@ jobs: uses: ./.github/workflows/build-deb-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "src" @@ -632,6 +602,7 @@ jobs: uses: ./.github/workflows/build-windows-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "onedir" @@ -645,6 +616,7 @@ jobs: uses: ./.github/workflows/build-windows-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "src" @@ -658,6 +630,7 @@ jobs: uses: ./.github/workflows/build-macos-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "onedir" @@ -671,6 +644,7 @@ jobs: uses: ./.github/workflows/build-macos-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "src" @@ -2799,6 +2773,9 @@ jobs: - name: Setup Python Tools Scripts id: python-tools-scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} + cache-suffix: coverage - name: Install Nox run: | diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 4f7291a334cc..7ce8aa13cfcf 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -164,20 +164,10 @@ jobs: with: python-version: "3.10" - - name: Get Python Version - id: get-python-version - uses: ./.github/actions/get-python-version - with: - python-binary: python3 - - - name: Restore Cached Python Tools Virtualenvs - uses: actions/cache@v3 - with: - path: .tools-venvs - key: ${{ env.CACHE_SEED }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }} - - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ env.CACHE_SEED }} - name: Pretty Print The GH Actions Event run: @@ -324,23 +314,11 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Get Python Version - id: get-python-version - uses: ./.github/actions/get-python-version - with: - python-binary: python3 - - - name: Restore Python Tools Virtualenvs Cache - uses: actions/cache@v3 - with: - path: .tools-venvs - key: ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|changelog - restore-keys: | - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|changelog - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }} - - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} + cache-suffix: changelog - name: Setup Salt Version id: setup-salt-version @@ -457,23 +435,11 @@ jobs: with: python-version: "3.10" - - name: Get Python Version - id: get-python-version - uses: ./.github/actions/get-python-version - with: - python-binary: python3 - - - name: Restore Python Tools Virtualenvs Cache - uses: actions/cache@v3 - with: - path: .tools-venvs - key: ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|build - restore-keys: | - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|build - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }} - - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} + cache-suffix: build - name: Setup Salt Version id: setup-salt-version @@ -585,6 +551,7 @@ jobs: uses: ./.github/workflows/build-rpm-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "onedir" @@ -598,6 +565,7 @@ jobs: uses: ./.github/workflows/build-rpm-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "src" @@ -611,6 +579,7 @@ jobs: uses: ./.github/workflows/build-deb-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "onedir" @@ -624,6 +593,7 @@ jobs: uses: ./.github/workflows/build-deb-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "src" @@ -637,6 +607,7 @@ jobs: uses: ./.github/workflows/build-windows-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "onedir" @@ -653,6 +624,7 @@ jobs: uses: ./.github/workflows/build-windows-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "src" @@ -669,6 +641,7 @@ jobs: uses: ./.github/workflows/build-macos-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "onedir" @@ -685,6 +658,7 @@ jobs: uses: ./.github/workflows/build-macos-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "0.14.2" python-version: "3.10.13" source: "src" @@ -2747,7 +2721,9 @@ jobs: - uses: actions/checkout@v4 - name: Setup Python Tools Scripts - uses: ./.github/actions/setup-python-tools-scripts + uses: ./.github/actions/setup-python-tools-script + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}s - name: Get Salt Project GitHub Actions Bot Environment run: | @@ -2890,6 +2866,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | @@ -3109,6 +3087,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | @@ -3197,6 +3177,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | @@ -3297,6 +3279,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | @@ -3381,6 +3365,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | @@ -3506,6 +3492,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Download Repository Artifact uses: actions/download-artifact@v3 @@ -3551,6 +3539,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Download Release Patch uses: actions/download-artifact@v3 @@ -3768,6 +3758,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Setup GnuPG run: | diff --git a/.github/workflows/templates/build-deb-repo.yml.jinja b/.github/workflows/templates/build-deb-repo.yml.jinja index 165c60c02e9b..8d9c054405fc 100644 --- a/.github/workflows/templates/build-deb-repo.yml.jinja +++ b/.github/workflows/templates/build-deb-repo.yml.jinja @@ -31,6 +31,8 @@ - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | diff --git a/.github/workflows/templates/build-macos-repo.yml.jinja b/.github/workflows/templates/build-macos-repo.yml.jinja index 5f9b14a99042..916686f59688 100644 --- a/.github/workflows/templates/build-macos-repo.yml.jinja +++ b/.github/workflows/templates/build-macos-repo.yml.jinja @@ -10,6 +10,8 @@ - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | diff --git a/.github/workflows/templates/build-onedir-repo.yml.jinja b/.github/workflows/templates/build-onedir-repo.yml.jinja index 70deec70b7d8..9b1daf3ce7e0 100644 --- a/.github/workflows/templates/build-onedir-repo.yml.jinja +++ b/.github/workflows/templates/build-onedir-repo.yml.jinja @@ -10,6 +10,8 @@ - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | diff --git a/.github/workflows/templates/build-packages.yml.jinja b/.github/workflows/templates/build-packages.yml.jinja index 37cae00b1e84..b5086a75e583 100644 --- a/.github/workflows/templates/build-packages.yml.jinja +++ b/.github/workflows/templates/build-packages.yml.jinja @@ -20,6 +20,7 @@ uses: ./.github/workflows/build-<{ pkg_type }>-packages.yml with: salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}" + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} relenv-version: "<{ relenv_version }>" python-version: "<{ python_version }>" source: "<{ backend }>" diff --git a/.github/workflows/templates/build-rpm-repo.yml.jinja b/.github/workflows/templates/build-rpm-repo.yml.jinja index 7ed17a163dba..7e99a9686964 100644 --- a/.github/workflows/templates/build-rpm-repo.yml.jinja +++ b/.github/workflows/templates/build-rpm-repo.yml.jinja @@ -54,6 +54,8 @@ - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | diff --git a/.github/workflows/templates/build-src-repo.yml.jinja b/.github/workflows/templates/build-src-repo.yml.jinja index f0c1a82b7c3e..06f1745c8ca2 100644 --- a/.github/workflows/templates/build-src-repo.yml.jinja +++ b/.github/workflows/templates/build-src-repo.yml.jinja @@ -9,7 +9,9 @@ - uses: actions/checkout@v4 - name: Setup Python Tools Scripts - uses: ./.github/actions/setup-python-tools-scripts + uses: ./.github/actions/setup-python-tools-script + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}s - name: Get Salt Project GitHub Actions Bot Environment run: | diff --git a/.github/workflows/templates/build-windows-repo.yml.jinja b/.github/workflows/templates/build-windows-repo.yml.jinja index dc96a8a2e318..a86daf7f58bf 100644 --- a/.github/workflows/templates/build-windows-repo.yml.jinja +++ b/.github/workflows/templates/build-windows-repo.yml.jinja @@ -10,6 +10,8 @@ - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | diff --git a/.github/workflows/templates/ci.yml.jinja b/.github/workflows/templates/ci.yml.jinja index ff9f773898c4..79b322cc8122 100644 --- a/.github/workflows/templates/ci.yml.jinja +++ b/.github/workflows/templates/ci.yml.jinja @@ -68,23 +68,11 @@ <%- endif %> - - name: Get Python Version - id: get-python-version - uses: ./.github/actions/get-python-version - with: - python-binary: python3 - - - name: Restore Python Tools Virtualenvs Cache - uses: actions/cache@v3 - with: - path: .tools-venvs - key: ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|changelog - restore-keys: | - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|changelog - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }} - - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} + cache-suffix: changelog - name: Setup Salt Version id: setup-salt-version @@ -226,23 +214,11 @@ with: python-version: "3.10" - - name: Get Python Version - id: get-python-version - uses: ./.github/actions/get-python-version - with: - python-binary: python3 - - - name: Restore Python Tools Virtualenvs Cache - uses: actions/cache@v3 - with: - path: .tools-venvs - key: ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|build - restore-keys: | - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}|build - ${{ needs.prepare-workflow.outputs.cache-seed }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }} - - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} + cache-suffix: build - name: Setup Salt Version id: setup-salt-version @@ -352,6 +328,9 @@ - name: Setup Python Tools Scripts id: python-tools-scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} + cache-suffix: coverage - name: Install Nox run: | diff --git a/.github/workflows/templates/layout.yml.jinja b/.github/workflows/templates/layout.yml.jinja index 21c46817ad7a..e16b70d4bd39 100644 --- a/.github/workflows/templates/layout.yml.jinja +++ b/.github/workflows/templates/layout.yml.jinja @@ -182,20 +182,10 @@ jobs: with: python-version: "3.10" - - name: Get Python Version - id: get-python-version - uses: ./.github/actions/get-python-version - with: - python-binary: python3 - - - name: Restore Cached Python Tools Virtualenvs - uses: actions/cache@v3 - with: - path: .tools-venvs - key: ${{ env.CACHE_SEED }}|${{ github.workflow }}|tools-venvs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/*.txt', 'tools/**/*.py') }} - - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ env.CACHE_SEED }} - name: Pretty Print The GH Actions Event run: diff --git a/.github/workflows/templates/nightly.yml.jinja b/.github/workflows/templates/nightly.yml.jinja index e4f6bb8439eb..e4350f44a366 100644 --- a/.github/workflows/templates/nightly.yml.jinja +++ b/.github/workflows/templates/nightly.yml.jinja @@ -167,6 +167,8 @@ concurrency: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Download Repository Artifact uses: actions/download-artifact@v3 diff --git a/.github/workflows/templates/release.yml.jinja b/.github/workflows/templates/release.yml.jinja index 7c5c28af059f..ae1216ccbf05 100644 --- a/.github/workflows/templates/release.yml.jinja +++ b/.github/workflows/templates/release.yml.jinja @@ -98,6 +98,8 @@ permissions: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ env.CACHE_SEED }} - name: Pretty Print The GH Actions Event run: @@ -176,6 +178,8 @@ permissions: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Get Salt Project GitHub Actions Bot Environment run: | @@ -220,6 +224,8 @@ permissions: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Backup Previous Releases id: backup @@ -251,6 +257,8 @@ permissions: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Publish Release Repository env: @@ -287,6 +295,8 @@ permissions: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Setup GnuPG run: | @@ -403,6 +413,8 @@ permissions: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Restore Release Bucket run: | @@ -427,6 +439,8 @@ permissions: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Setup GnuPG run: | diff --git a/.github/workflows/templates/staging.yml.jinja b/.github/workflows/templates/staging.yml.jinja index 8e3a0c98d9fa..c84ade076364 100644 --- a/.github/workflows/templates/staging.yml.jinja +++ b/.github/workflows/templates/staging.yml.jinja @@ -104,6 +104,8 @@ concurrency: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Download Release Patch uses: actions/download-artifact@v3 @@ -187,6 +189,8 @@ concurrency: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }} - name: Setup GnuPG run: | diff --git a/.github/workflows/test-action-macos.yml b/.github/workflows/test-action-macos.yml index 383bc3efe448..b7cc93d5e8c1 100644 --- a/.github/workflows/test-action-macos.yml +++ b/.github/workflows/test-action-macos.yml @@ -91,6 +91,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ inputs.cache-prefix }} - name: Generate Test Matrix id: generate-matrix diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 706f4a0d6b58..ce5ac179a7d6 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -101,6 +101,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ inputs.cache-prefix }} - name: Generate Test Matrix id: generate-matrix @@ -169,6 +171,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ inputs.cache-prefix }} - name: Download testrun-changed-files.txt if: ${{ fromJSON(inputs.testrun)['type'] != 'full' }} diff --git a/.github/workflows/test-packages-action-macos.yml b/.github/workflows/test-packages-action-macos.yml index 208007cf3048..7c2dbbec79ed 100644 --- a/.github/workflows/test-packages-action-macos.yml +++ b/.github/workflows/test-packages-action-macos.yml @@ -88,6 +88,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ inputs.cache-prefix }} - name: Generate Package Test Matrix id: generate-pkg-matrix diff --git a/.github/workflows/test-packages-action.yml b/.github/workflows/test-packages-action.yml index 0f80439d36d0..b7d39a533f24 100644 --- a/.github/workflows/test-packages-action.yml +++ b/.github/workflows/test-packages-action.yml @@ -95,6 +95,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ inputs.cache-prefix }} - name: Generate Package Test Matrix id: generate-pkg-matrix @@ -162,6 +164,8 @@ jobs: - name: Setup Python Tools Scripts uses: ./.github/actions/setup-python-tools-scripts + with: + cache-prefix: ${{ inputs.cache-prefix }} - name: Get Salt Project GitHub Actions Bot Environment run: |