Skip to content

Commit

Permalink
Merge branch '3006.x' into null_yaml_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
cmcmarrow authored Sep 6, 2023
2 parents 4b1d4ed + eb493bf commit 1dc8f18
Show file tree
Hide file tree
Showing 172 changed files with 5,314 additions and 1,045 deletions.
4 changes: 2 additions & 2 deletions .github/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ newIssueWelcomeComment: >
- [Community Wiki](https://github.com/saltstack/community/wiki)
- [Salt’s Contributor Guide](https://docs.saltproject.io/en/master/topics/development/contributing.html)
- [Join our Community Slack](https://join.slack.com/t/saltstackcommunity/shared_invite/zt-1zlfxffs1-NuEH~G9TzOeuNGdsfZIl3w)
- [Join our Community Slack](https://via.vmw.com/salt-slack)
- [IRC on LiberaChat](https://web.libera.chat/#salt)
- [Salt Project YouTube channel](https://www.youtube.com/channel/UCpveTIucFx9ljGelW63-BWg)
- [Salt Project Twitch channel](https://www.twitch.tv/saltprojectoss)
Expand All @@ -39,7 +39,7 @@ newPRWelcomeComment: >
- [Community Wiki](https://github.com/saltstack/community/wiki)
- [Salt’s Contributor Guide](https://docs.saltproject.io/en/master/topics/development/contributing.html)
- [Join our Community Slack](https://join.slack.com/t/saltstackcommunity/shared_invite/zt-1zlfxffs1-NuEH~G9TzOeuNGdsfZIl3w)
- [Join our Community Slack](https://via.vmw.com/salt-slack)
- [IRC on LiberaChat](https://web.libera.chat/#salt)
- [Salt Project YouTube channel](https://www.youtube.com/channel/UCpveTIucFx9ljGelW63-BWg)
- [Salt Project Twitch channel](https://www.twitch.tv/saltprojectoss)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
)
steps:
- name: Backport Action
uses: sqren/backport-github-action@v8.9.7
uses: sqren/backport-github-action@v9.2.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
auto_backport_label_prefix: "backport:"
Expand Down
222 changes: 167 additions & 55 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.

222 changes: 167 additions & 55 deletions .github/workflows/nightly.yml

Large diffs are not rendered by default.

96 changes: 64 additions & 32 deletions .github/workflows/release.yml

Large diffs are not rendered by default.

222 changes: 167 additions & 55 deletions .github/workflows/scheduled.yml

Large diffs are not rendered by default.

249 changes: 162 additions & 87 deletions .github/workflows/staging.yml

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions .github/workflows/templates/ci.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -313,4 +313,56 @@
<%- include "test-salt.yml.jinja" %>
<%- endif %>

<%- if skip_test_coverage_check == "false" or "skip_code_coverage" in skip_test_coverage_check %>

combine-all-code-coverage:
<%- do conclusion_needs.append("combine-all-code-coverage") %>
name: Combine Code Coverage
if: ${{ fromJSON(needs.prepare-workflow.outputs.testrun)['skip_code_coverage'] == false }}
runs-on: ${{ github.event.repository.private && fromJSON('["self-hosted", "linux", "x86_64"]') || 'ubuntu-latest' }}
needs:
- prepare-workflow
<%- for need in test_salt_needs.iter(consume=False) %>
- <{ need }>
<%- endfor %>
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.10
if: ${{ github.event.repository.private == false }}
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install Nox
run: |
python3 -m pip install 'nox==<{ nox_version }>'

- name: Get coverage reports
id: get-coverage-reports
uses: actions/download-artifact@v3
with:
name: all-testrun-coverage-artifacts
path: artifacts/coverage/

- name: Display structure of downloaded files
run: tree -a artifacts/

- name: Combine Code Coverage
run: |
nox --force-color -e combine-coverage

- name: Create Code Coverage HTML Report
run: |
nox --force-color -e create-html-coverage-report

- name: Upload Code Coverage HTML Report
uses: actions/upload-artifact@v3
with:
name: code-coverage-html-report
path: artifacts/coverage/html
retention-days: 7
if-no-files-found: error
<%- endif %>

<%- endblock jobs %>
3 changes: 3 additions & 0 deletions .github/workflows/templates/test-pkg-repo-downloads.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version }>
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
environment: <{ gh_environment }>
nox-version: <{ nox_version }>
skip-code-coverage: true
latest-release: "${{ needs.prepare-workflow.outputs.latest-release }}"
pkg-type: <{ pkg_type.lower() }>
Expand Down Expand Up @@ -92,6 +93,7 @@
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
environment: <{ gh_environment }>
skip-code-coverage: true
nox-version: <{ nox_version }>
latest-release: "${{ needs.prepare-workflow.outputs.latest-release }}"
pkg-type: <{ pkg_type.lower() }>
secrets: inherit
Expand Down Expand Up @@ -128,6 +130,7 @@
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
environment: <{ gh_environment }>
skip-code-coverage: true
nox-version: <{ nox_version }>
latest-release: "${{ needs.prepare-workflow.outputs.latest-release }}"
secrets: inherit
<%- endfor %>
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/templates/test-salt-pkg.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
arch: <{ arch }>
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
pkg-type: <{ pkg_type }>
nox-version: <{ nox_version }>
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version }>
skip-code-coverage: <{ skip_test_coverage_check }>
skip-junit-reports: <{ skip_junit_reports_check }>
Expand All @@ -76,6 +77,7 @@
arch: <{ arch }>
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
pkg-type: macos
nox-version: <{ nox_version }>
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version }>
skip-code-coverage: <{ skip_test_coverage_check }>
skip-junit-reports: <{ skip_junit_reports_check }>
Expand Down Expand Up @@ -104,6 +106,7 @@
arch: <{ arch }>
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
pkg-type: <{ pkg_type }>
nox-version: <{ nox_version }>
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version }>
skip-code-coverage: <{ skip_test_coverage_check }>
skip-junit-reports: <{ skip_junit_reports_check }>
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/templates/test-salt.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
nox-session: ci-test-onedir
platform: windows
arch: amd64
nox-version: <{ nox_version }>
testrun: ${{ needs.prepare-workflow.outputs.testrun }}
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version }>
Expand All @@ -39,6 +40,7 @@
nox-session: ci-test-onedir
platform: darwin
arch: x86_64
nox-version: <{ nox_version }>
testrun: ${{ needs.prepare-workflow.outputs.testrun }}
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version }>
Expand Down Expand Up @@ -80,6 +82,7 @@
nox-session: ci-test-onedir
platform: linux
arch: <{ arch }>
nox-version: <{ nox_version }>
testrun: ${{ needs.prepare-workflow.outputs.testrun }}
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version }>
Expand Down
27 changes: 23 additions & 4 deletions .github/workflows/test-action-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ on:
required: true
type: string
description: The platform arch being tested
nox-version:
required: true
type: string
description: The nox version to install
package-name:
required: false
type: string
Expand All @@ -55,7 +59,6 @@ on:


env:
NOX_VERSION: "2022.8.7"
COLUMNS: 190
PIP_INDEX_URL: "https://pypi-proxy.saltstack.net/root/local/+simple/"
PIP_EXTRA_INDEX_URL: "https://pypi.org/simple"
Expand Down Expand Up @@ -139,7 +142,7 @@ jobs:
- name: Install Nox
if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'
run: |
python3 -m pip install 'nox==${{ env.NOX_VERSION }}'
python3 -m pip install 'nox==${{ inputs.nox-version }}'
- name: Define Nox Session
id: define-nox-session
Expand Down Expand Up @@ -232,7 +235,7 @@ jobs:

- name: Install Nox
run: |
python3 -m pip install 'nox==${{ env.NOX_VERSION }}'
python3 -m pip install 'nox==${{ inputs.nox-version }}'
- name: Decompress .nox Directory
run: |
Expand Down Expand Up @@ -276,6 +279,7 @@ jobs:
GITHUB_ACTIONS_PIPELINE: "1"
SKIP_INITIAL_GH_ACTIONS_FAILURES: "1"
SKIP_CODE_COVERAGE: "${{ inputs.skip-code-coverage && '1' || '0' }}"
COVERAGE_CONTEXT: ${{ inputs.distro-slug }}
run: |
sudo -E nox -e ${{ env.NOX_SESSION }} -- ${{ matrix.tests-chunk }} -- \
-k "mac or darwin" --suppress-no-test-exit-code \
Expand All @@ -293,6 +297,7 @@ jobs:
GITHUB_ACTIONS_PIPELINE: "1"
SKIP_INITIAL_GH_ACTIONS_FAILURES: "1"
SKIP_CODE_COVERAGE: "${{ inputs.skip-code-coverage && '1' || '0' }}"
COVERAGE_CONTEXT: ${{ inputs.distro-slug }}
run: |
sudo -E nox -e ${{ env.NOX_SESSION }} -- ${{ matrix.tests-chunk }} -- \
-k "mac or darwin" --suppress-no-test-exit-code --no-fast-tests --slow-tests \
Expand All @@ -310,6 +315,7 @@ jobs:
GITHUB_ACTIONS_PIPELINE: "1"
SKIP_INITIAL_GH_ACTIONS_FAILURES: "1"
SKIP_CODE_COVERAGE: "${{ inputs.skip-code-coverage && '1' || '0' }}"
COVERAGE_CONTEXT: ${{ inputs.distro-slug }}
run: |
sudo -E nox -e ${{ env.NOX_SESSION }} -- ${{ matrix.tests-chunk }} -- \
-k "mac or darwin" --suppress-no-test-exit-code --no-fast-tests --core-tests \
Expand All @@ -327,6 +333,7 @@ jobs:
GITHUB_ACTIONS_PIPELINE: "1"
SKIP_INITIAL_GH_ACTIONS_FAILURES: "1"
SKIP_CODE_COVERAGE: "${{ inputs.skip-code-coverage && '1' || '0' }}"
COVERAGE_CONTEXT: ${{ inputs.distro-slug }}
run: |
sudo -E nox -e ${{ env.NOX_SESSION }} -- ${{ matrix.tests-chunk }} -- \
-k "mac or darwin" --suppress-no-test-exit-code
Expand All @@ -343,6 +350,7 @@ jobs:
GITHUB_ACTIONS_PIPELINE: "1"
SKIP_INITIAL_GH_ACTIONS_FAILURES: "1"
SKIP_CODE_COVERAGE: "${{ inputs.skip-code-coverage && '1' || '0' }}"
COVERAGE_CONTEXT: ${{ inputs.distro-slug }}
run: |
sudo -E nox -e ${{ env.NOX_SESSION }} -- ${{ matrix.tests-chunk }} -- \
-k "mac or darwin" --suppress-no-test-exit-code --no-fast-tests --slow-tests
Expand All @@ -359,6 +367,7 @@ jobs:
GITHUB_ACTIONS_PIPELINE: "1"
SKIP_INITIAL_GH_ACTIONS_FAILURES: "1"
SKIP_CODE_COVERAGE: "${{ inputs.skip-code-coverage && '1' || '0' }}"
COVERAGE_CONTEXT: ${{ inputs.distro-slug }}
run: |
sudo -E nox -e ${{ env.NOX_SESSION }} -- ${{ matrix.tests-chunk }} -- \
-k "mac or darwin" --suppress-no-test-exit-code --no-fast-tests --core-tests
Expand All @@ -375,6 +384,7 @@ jobs:
GITHUB_ACTIONS_PIPELINE: "1"
SKIP_INITIAL_GH_ACTIONS_FAILURES: "1"
SKIP_CODE_COVERAGE: "${{ inputs.skip-code-coverage && '1' || '0' }}"
COVERAGE_CONTEXT: ${{ inputs.distro-slug }}
run: |
sudo -E nox -e ${{ env.NOX_SESSION }} -- ${{ matrix.tests-chunk }} -- \
-k "mac or darwin" --suppress-no-test-exit-code --no-fast-tests --flaky-jail
Expand All @@ -391,6 +401,7 @@ jobs:
GITHUB_ACTIONS_PIPELINE: "1"
SKIP_INITIAL_GH_ACTIONS_FAILURES: "1"
SKIP_CODE_COVERAGE: "${{ inputs.skip-code-coverage && '1' || '0' }}"
COVERAGE_CONTEXT: ${{ inputs.distro-slug }}
run: |
sudo -E nox -e ${{ env.NOX_SESSION }} -- ${{ matrix.tests-chunk }} -- \
--slow-tests --core-tests -k "mac or darwin"
Expand Down Expand Up @@ -425,6 +436,14 @@ jobs:
path: |
artifacts/coverage/
- name: Upload All Code Coverage Test Run Artifacts
if: always() && inputs.skip-code-coverage == false && steps.download-artifacts-from-vm.outcome == 'success' && job.status != 'cancelled'
uses: actions/upload-artifact@v3
with:
name: all-testrun-coverage-artifacts
path: |
artifacts/coverage/
- name: Upload JUnit XML Test Run Artifacts
if: always() && steps.download-artifacts-from-vm.outcome == 'success' && job.status != 'cancelled'
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -492,7 +511,7 @@ jobs:

- name: Install Nox
run: |
python3 -m pip install 'nox==${{ env.NOX_VERSION }}'
python3 -m pip install 'nox==${{ inputs.nox-version }}'
- name: Combine Code Coverage
if: ${{ inputs.skip-code-coverage == false }}
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ on:
required: true
type: string
description: The platform arch being tested
nox-version:
required: true
type: string
description: The nox version to install
package-name:
required: false
type: string
Expand All @@ -50,7 +54,6 @@ on:


env:
NOX_VERSION: "2022.8.7"
COLUMNS: 190
AWS_MAX_ATTEMPTS: "10"
AWS_RETRY_MODE: "adaptive"
Expand Down Expand Up @@ -397,6 +400,14 @@ jobs:
path: |
artifacts/coverage/
- name: Upload All Code Coverage Test Run Artifacts
if: always() && inputs.skip-code-coverage == false && steps.download-artifacts-from-vm.outcome == 'success' && job.status != 'cancelled'
uses: actions/upload-artifact@v3
with:
name: all-testrun-coverage-artifacts
path: |
artifacts/coverage/
- name: Upload JUnit XML Test Run Artifacts
if: always() && steps.download-artifacts-from-vm.outcome == 'success' && job.status != 'cancelled'
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -462,7 +473,7 @@ jobs:
- name: Install Nox
run: |
python3 -m pip install 'nox==${{ env.NOX_VERSION }}'
python3 -m pip install 'nox==${{ inputs.nox-version }}'
- name: Combine Code Coverage
if: ${{ inputs.skip-code-coverage == false }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test-package-downloads-action-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ on:
required: true
type: string
description: The type of artifact to download
nox-version:
required: true
type: string
description: The nox version to install
package-name:
required: false
type: string
Expand All @@ -53,7 +57,6 @@ on:


env:
NOX_VERSION: "2022.8.7"
COLUMNS: 160
AWS_MAX_ATTEMPTS: "10"
AWS_RETRY_MODE: "adaptive"
Expand Down Expand Up @@ -313,7 +316,7 @@ jobs:
- name: Install Nox
run: |
python3 -m pip install 'nox==${{ env.NOX_VERSION }}'
python3 -m pip install 'nox==${{ inputs.nox-version }}'
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
Expand Down
Loading

0 comments on commit 1dc8f18

Please sign in to comment.