diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index d7ceec8528..3f26be7c0e 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -14,7 +14,7 @@ jobs: name: Add CHANGELOG.rst runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Changelog check # https://github.com/marketplace/actions/changelog-checker uses: Zomzog/changelog-checker@v1.2.0 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 90f6cc0c5e..160af875a8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -57,11 +57,11 @@ jobs: - name: 'Lint Checks (black, flake8, etc.)' task: 'ci-checks' python-version-short: '3.8' - python-version: '3.8.18' + python-version: '3.8.10' - name: 'Compile (pip deps, pylint, etc.)' task: 'ci-compile' python-version-short: '3.8' - python-version: '3.8.18' + python-version: '3.8.10' - name: 'Lint Checks (black, flake8, etc.)' task: 'ci-checks' python-version-short: '3.9' @@ -77,16 +77,16 @@ jobs: PYLINT_CONCURRENCY: '6' steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Custom Environment Setup run: | ./scripts/github/setup-environment.sh - name: 'Set up Python (${{ matrix.python-version }})' - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '${{ matrix.python-version }}' - name: Cache Python Dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/.cache/pip @@ -95,20 +95,20 @@ jobs: # TODO: maybe make the virtualenv a partial cache to exclude st2*? # !virtualenv/lib/python*/site-packages/st2* # !virtualenv/bin/st2* - key: ${{ runner.os }}-v4-python-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test-requirements.txt') }} + key: ${{ runner.os }}-v5-python-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test-requirements.txt', 'lockfiles/*.lock') }} # Don't use alternative key as if requirements.txt has altered we # don't want to retrieve previous cache #restore-keys: | - # ${{ runner.os }}-v4-python-${{ matrix.python }}- + # ${{ runner.os }}-v5-python-${{ matrix.python }}- - name: Cache APT Dependencies id: cache-apt-deps - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/apt_cache - key: ${{ runner.os }}-apt-v7-${{ hashFiles('scripts/github/apt-packages.txt') }} + key: ${{ runner.os }}-v8-apt-${{ hashFiles('scripts/github/apt-packages.txt') }} restore-keys: | - ${{ runner.os }}-apt-v7- + ${{ runner.os }}-v8-apt- - name: Install APT Depedencies env: CACHE_HIT: ${{steps.cache-apt-deps.outputs.cache-hit}} @@ -176,16 +176,16 @@ jobs: TESTS_TO_SKIP: "tests.test_quickstart_rules tests.test_run_pack_tests_tool" steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Custom Environment Setup run: | ./scripts/github/setup-environment.sh - name: 'Set up Python (${{ matrix.python-version }})' - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '${{ matrix.python-version }}' - name: Cache Python Dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/.cache/pip @@ -194,18 +194,18 @@ jobs: # TODO: maybe make the virtualenv a partial cache to exclude st2*? # !virtualenv/lib/python*/site-packages/st2* # !virtualenv/bin/st2* - key: ${{ runner.os }}-v3-python-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test-requirements.txt') }} + key: ${{ runner.os }}-v5-python-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test-requirements.txt', 'lockfiles/*.lock') }} restore-keys: | ${{ runner.os }}-python-${{ matrix.python }}- - name: Cache APT Dependencies id: cache-apt-deps - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/apt_cache - key: ${{ runner.os }}-apt-v5-${{ hashFiles('scripts/github/apt-packages.txt') }} + key: ${{ runner.os }}-v8-apt-${{ hashFiles('scripts/github/apt-packages.txt') }} restore-keys: | - ${{ runner.os }}-apt-v5- + ${{ runner.os }}-v8-apt- - name: Install APT Depedencies env: CACHE_HIT: ${{steps.cache-apt-deps.outputs.cache-hit}} @@ -286,7 +286,7 @@ jobs: tar cvzpf logs.tar.gz logs/* - name: Upload StackStorm services Logs if: ${{ failure() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: logs-py${{ matrix.python-version }} path: logs.tar.gz @@ -314,13 +314,13 @@ jobs: nosetests_node_total: 2 nosetests_node_index: 0 python-version-short: '3.8' - python-version: '3.8.18' + python-version: '3.8.10' - name: 'Unit Tests (chunk 2)' task: 'ci-unit' nosetests_node_total: 2 nosetests_node_index: 1 python-version-short: '3.8' - python-version: '3.8.18' + python-version: '3.8.10' - name: 'Unit Tests (chunk 1)' task: 'ci-unit' nosetests_node_total: 2 @@ -380,16 +380,16 @@ jobs: PATH: /home/runner/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Custom Environment Setup run: | ./scripts/github/setup-environment.sh - name: 'Set up Python (${{ matrix.python-version }})' - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '${{ matrix.python-version }}' - name: Cache Python Dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/.cache/pip @@ -398,20 +398,20 @@ jobs: # TODO: maybe make the virtualenv a partial cache to exclude st2*? # !virtualenv/lib/python*/site-packages/st2* # !virtualenv/bin/st2* - key: ${{ runner.os }}-v4-python-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test-requirements.txt') }} + key: ${{ runner.os }}-v5-python-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test-requirements.txt', 'lockfiles/*.lock') }} # Don't use alternative key as if requirements.txt has altered we # don't want to retrieve previous cache #restore-keys: | - # ${{ runner.os }}-v4-python-${{ matrix.python }}- + # ${{ runner.os }}-v5-python-${{ matrix.python }}- - name: Cache APT Dependencies id: cache-apt-deps - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/apt_cache - key: ${{ runner.os }}-apt-v5-${{ hashFiles('scripts/github/apt-packages.txt') }} + key: ${{ runner.os }}-v8-apt-${{ hashFiles('scripts/github/apt-packages.txt') }} restore-keys: | - ${{ runner.os }}-apt-v5- + ${{ runner.os }}-v8-apt- - name: Install APT Depedencies env: CACHE_HIT: ${{steps.cache-apt-deps.outputs.cache-hit}} @@ -489,19 +489,19 @@ jobs: nosetests_node_total: 1 nosetests_node_index: 0 python-version-short: '3.8' - python-version: '3.8.18' + python-version: '3.8.10' - name: 'Integration Tests (chunk 1)' task: 'ci-integration' nosetests_node_total: 2 nosetests_node_index: 0 python-version-short: '3.8' - python-version: '3.8.18' + python-version: '3.8.10' - name: 'Integration Tests (chunk 2)' task: 'ci-integration' nosetests_node_total: 2 nosetests_node_index: 1 python-version-short: '3.8' - python-version: '3.8.18' + python-version: '3.8.10' - name: 'Pack Tests' task: 'ci-packs-tests' nosetests_node_total: 1 @@ -600,16 +600,16 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Custom Environment Setup run: | ./scripts/github/setup-environment.sh - name: 'Set up Python (${{ matrix.python-version }})' - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '${{ matrix.python-version }}' - name: Cache Python Dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/.cache/pip @@ -618,20 +618,20 @@ jobs: # TODO: maybe make the virtualenv a partial cache to exclude st2*? # !virtualenv/lib/python*/site-packages/st2* # !virtualenv/bin/st2* - key: ${{ runner.os }}-v4-python-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test-requirements.txt') }} + key: ${{ runner.os }}-v5-python-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test-requirements.txt', 'lockfiles/*.lock') }} # Don't use alternative key as if requirements.txt has altered we # don't want to retrieve previous cache #restore-keys: | - # ${{ runner.os }}-v4-python-${{ matrix.python }}- + # ${{ runner.os }}-v5-python-${{ matrix.python }}- - name: Cache APT Dependencies id: cache-apt-deps - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/apt_cache - key: ${{ runner.os }}-apt-v5-${{ hashFiles('scripts/github/apt-packages.txt') }} + key: ${{ runner.os }}-v8-apt-${{ hashFiles('scripts/github/apt-packages.txt') }} restore-keys: | - ${{ runner.os }}-apt-v5- + ${{ runner.os }}-v8-apt- - name: Install APT Depedencies env: CACHE_HIT: ${{steps.cache-apt-deps.outputs.cache-hit}} @@ -695,7 +695,7 @@ jobs: tar cvzpf logs.tar.gz logs/* - name: Upload StackStorm services Logs if: ${{ failure() && env.TASK == 'ci-integration' }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: logs-py${{ matrix.python-version }}-nose-${{ matrix.nosetests_node_index }} path: logs.tar.gz diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 899a45f7c5..851cb3e1c0 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -33,20 +33,20 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: # a test uses a submodule, and pants needs access to it to calculate deps. submodules: 'true' #- name: Cache APT Dependencies # id: cache-apt-deps - # uses: actions/cache@v2 + # uses: actions/cache@v4 # with: # path: | # ~/apt_cache - # key: ${{ runner.os }}-apt-v7-${{ hashFiles('scripts/github/apt-packages.txt') }} + # key: ${{ runner.os }}-v8-apt-${{ hashFiles('scripts/github/apt-packages.txt') }} # restore-keys: | - # ${{ runner.os }}-apt-v7- + # ${{ runner.os }}-v8-apt- - name: Install APT Depedencies env: CACHE_HIT: 'false' # cache doesn't work @@ -57,7 +57,7 @@ jobs: ./scripts/github/install-apt-packages-use-cache.sh - name: Initialize Pants and its GHA caches - uses: pantsbuild/actions/init-pants@v6-scie-pants + uses: pantsbuild/actions/init-pants@v8 # This action adds an env var to make pants use both pants.ci.toml & pants.toml. # This action also creates 3 GHA caches (1 is optional). # - `pants-setup` has the bootsrapped pants install @@ -83,7 +83,7 @@ jobs: pants lint :: - name: Upload pants log - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: pants-log-py${{ matrix.python-version }} path: .pants.d/pants.log diff --git a/.github/workflows/microbenchmarks.yaml b/.github/workflows/microbenchmarks.yaml index 27e2813cc3..5aa26ab4c5 100644 --- a/.github/workflows/microbenchmarks.yaml +++ b/.github/workflows/microbenchmarks.yaml @@ -39,7 +39,7 @@ jobs: nosetests_node_total: 1 nosetests_node_index: 0 python-version-short: '3.8' - python-version: '3.8.18' + python-version: '3.8.10' - name: 'Microbenchmarks' task: 'micro-benchmarks' nosetests_node_total: 1 @@ -74,32 +74,32 @@ jobs: PATH: /home/runner/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: 'Set up Python (${{ matrix.python-version }})' - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '${{ matrix.python-version }}' - name: Cache Python Dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/.cache/pip virtualenv ~/virtualenv - key: ${{ runner.os }}-v4-python-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test-requirements.txt') }} + key: ${{ runner.os }}-v5-python-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test-requirements.txt', 'lockfiles/*.lock') }} # Don't use alternative key as if requirements.txt has altered we # don't want to retrieve previous cache #restore-keys: | - # ${{ runner.os }}-v4-python-${{ matrix.python }}- + # ${{ runner.os }}-v5-python-${{ matrix.python }}- - name: Cache APT Dependencies id: cache-apt-deps - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/apt_cache - key: ${{ runner.os }}-apt-v7-${{ hashFiles('scripts/github/apt-packages.txt') }} + key: ${{ runner.os }}-v8-apt-${{ hashFiles('scripts/github/apt-packages.txt') }} restore-keys: | - ${{ runner.os }}-apt-v7- + ${{ runner.os }}-v8-apt- - name: Install APT Dependencies env: CACHE_HIT: ${{steps.cache-apt-deps.outputs.cache-hit}} @@ -120,7 +120,7 @@ jobs: run: | script -e -c "make ${TASK}" && exit 0 - name: Upload Histograms - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: benchmark_histograms path: benchmark_histograms/ diff --git a/.github/workflows/orquesta-integration-tests.yaml b/.github/workflows/orquesta-integration-tests.yaml index 33476236b1..80cb04322c 100644 --- a/.github/workflows/orquesta-integration-tests.yaml +++ b/.github/workflows/orquesta-integration-tests.yaml @@ -60,7 +60,7 @@ jobs: nosetests_node_total: 1 nosetests_node_index: 0 python-version-short: '3.8' - python-version: '3.8.18' + python-version: '3.8.10' - name: 'Integration Tests (Orquesta)' task: 'ci-orquesta' nosetests_node_total: 1 @@ -123,16 +123,16 @@ jobs: PATH: /home/runner/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Custom Environment Setup run: | ./scripts/github/setup-environment.sh - name: 'Set up Python (${{ matrix.python-version }})' - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '${{ matrix.python-version }}' - name: Cache Python Dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/.cache/pip @@ -141,20 +141,20 @@ jobs: # TODO: maybe make the virtualenv a partial cache to exclude st2*? # !virtualenv/lib/python*/site-packages/st2* # !virtualenv/bin/st2* - key: ${{ runner.os }}-v4-python-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test-requirements.txt') }} + key: ${{ runner.os }}-v5-python-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test-requirements.txt', 'lockfiles/*.lock') }} # Don't use alternative key as if requirements.txt has altered we # don't want to retrieve previous cache #restore-keys: | - # ${{ runner.os }}-v4-python-${{ matrix.python }}- + # ${{ runner.os }}-v5-python-${{ matrix.python }}- - name: Cache APT Dependencies id: cache-apt-deps - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/apt_cache - key: ${{ runner.os }}-apt-v7-${{ hashFiles('scripts/github/apt-packages.txt') }} + key: ${{ runner.os }}-v8-apt-${{ hashFiles('scripts/github/apt-packages.txt') }} restore-keys: | - ${{ runner.os }}-apt-v7- + ${{ runner.os }}-v8-apt- - name: Install APT Depedencies env: CACHE_HIT: ${{steps.cache-apt-deps.outputs.cache-hit}} @@ -213,7 +213,7 @@ jobs: exit 1 - name: Upload StackStorm services Logs #if: ${{ failure() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: logs path: logs/ @@ -223,7 +223,7 @@ jobs: tar cvzpf logs.tar.gz logs/* - name: Upload StackStorm services Logs if: ${{ failure() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: logs path: logs.tar.gz diff --git a/.github/workflows/pants.yaml b/.github/workflows/pants.yaml index 6512bf6cc8..d695aefc23 100644 --- a/.github/workflows/pants.yaml +++ b/.github/workflows/pants.yaml @@ -24,13 +24,13 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: # a test uses a submodule, and pants needs access to it to calculate deps. submodules: 'true' - name: Initialize Pants and its GHA caches - uses: pantsbuild/actions/init-pants@v6-scie-pants + uses: pantsbuild/actions/init-pants@v8 # This action adds an env var to make pants use both pants.ci.toml & pants.toml. # This action also creates 3 GHA caches (1 is optional). # - `pants-setup` has the bootsrapped pants install @@ -56,7 +56,7 @@ jobs: pants tailor --check update-build-files --check :: - name: Upload pants log - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: pants-log-py${{ matrix.python-version }} path: .pants.d/pants.log diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 006be654bc..8d7e94a6b4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -34,7 +34,7 @@ jobs: include: - name: 'Test (pants runs: pytest)' python-version-short: '3.8' - python-version: '3.8.18' + python-version: '3.8.10' - name: 'Test (pants runs: pytest)' python-version-short: '3.9' python-version: '3.9.14' @@ -72,26 +72,26 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: # a test uses a submodule, and pants needs access to it to calculate deps. submodules: 'true' - name: 'Set up Python (${{ matrix.python-version }})' - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '${{ matrix.python-version }}' #- name: Cache APT Dependencies # id: cache-apt-deps - # uses: actions/cache@v2 + # uses: actions/cache@v4 # with: # path: | # ~/apt_cache - # key: ${{ runner.os }}-apt-v7-${{ hashFiles('scripts/github/apt-packages.txt') }} + # key: ${{ runner.os }}-v8-apt-${{ hashFiles('scripts/github/apt-packages.txt') }} # restore-keys: | - # ${{ runner.os }}-apt-v7- + # ${{ runner.os }}-v8-apt- - name: Install APT Depedencies env: CACHE_HIT: 'false' # cache doesn't work @@ -102,7 +102,7 @@ jobs: ./scripts/github/install-apt-packages-use-cache.sh - name: Initialize Pants and its GHA caches - uses: pantsbuild/actions/init-pants@v6-scie-pants + uses: pantsbuild/actions/init-pants@v8 # This action adds an env var to make pants use both pants.ci.toml & pants.toml. # This action also creates 3 GHA caches (1 is optional). # - `pants-setup` has the bootsrapped pants install @@ -131,7 +131,7 @@ jobs: pants test pylint_plugins/:: pants-plugins/:: - name: Upload pants log - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: pants-log-py${{ matrix.python-version }} path: .pants.d/pants.log