Skip to content

Commit

Permalink
Update workflows to not fail if pytest rerun was successful (signalfx…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyc-splunk committed Sep 7, 2023
1 parent 9c10477 commit eb86d92
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/installer-script-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
- name: Test installer script
id: pytest
continue-on-error: true
run: |
distro="${{ matrix.DISTRO }}"
if [[ "$distro" = "amazonlinux-2" ]]; then
Expand All @@ -95,7 +96,7 @@ jobs:
# qemu, networking, running systemd in containers, etc., can be flaky
- name: Re-run failed tests
if: ${{ failure() && steps.pytest.conclusion == 'failure' }}
if: ${{ steps.pytest.outcome == 'failure' }}
run: |
distro="${{ matrix.DISTRO }}"
if [[ "$distro" = "amazonlinux-2" ]]; then
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/linux-package-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ jobs:
- name: Test ${{ env.SYS_PACKAGE }} on ${{ matrix.DISTRO }} ${{ matrix.ARCH }}
id: pytest
continue-on-error: true
run: |
distro="${{ matrix.DISTRO }}"
if [[ "$distro" = "amazonlinux-2" ]]; then
Expand All @@ -237,7 +238,7 @@ jobs:
# qemu, networking, running systemd in containers, etc., can be flaky
- name: Re-run failed tests
if: ${{ failure() && steps.pytest.conclusion == 'failure' }}
if: ${{ steps.pytest.outcome == 'failure' }}
run: |
distro="${{ matrix.DISTRO }}"
if [[ "$distro" = "amazonlinux-2" ]]; then
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/puppet-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ jobs:

- name: Test puppet deployment
id: pytest
continue-on-error: true
run: |
distro="${{ matrix.DISTRO }}"
if [[ "$distro" = "amazonlinux-2" ]]; then
Expand All @@ -117,7 +118,7 @@ jobs:

# qemu, networking, running systemd in containers, etc., can be flaky
- name: Re-run failed tests
if: ${{ failure() && steps.pytest.conclusion == 'failure' }}
if: ${{ steps.pytest.outcome == 'failure' }}
run: |
distro="${{ matrix.DISTRO }}"
if [[ "$distro" = "amazonlinux-2" ]]; then
Expand Down Expand Up @@ -160,6 +161,7 @@ jobs:

- name: Test puppet deployment
id: pytest
continue-on-error: true
run: |
pytest -s --verbose -m windows `
-k ${{ matrix.TEST_CASE }} `
Expand All @@ -168,7 +170,7 @@ jobs:
PUPPET_RELEASE: "${{ matrix.PUPPET_RELEASE }}"

- name: Re-run failed tests
if: ${{ failure() && steps.pytest.conclusion == 'failure' }}
if: ${{ steps.pytest.outcome == 'failure' }}
run: |
pytest -s --verbose -m windows `
--last-failed `
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/salt-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:

- name: Test salt deployment
id: pytest
continue-on-error: true
run: |
distro="${{ matrix.DISTRO }}"
if [[ "$distro" = "amazonlinux-2" ]]; then
Expand All @@ -101,7 +102,7 @@ jobs:
# qemu, networking, running systemd in containers, etc., can be flaky
- name: Re-run failed tests
if: ${{ failure() && steps.pytest.conclusion == 'failure' }}
if: ${{ steps.pytest.outcome == 'failure' }}
run: |
distro="${{ matrix.DISTRO }}"
if [[ "$distro" = "amazonlinux-2" ]]; then
Expand Down

0 comments on commit eb86d92

Please sign in to comment.