8000 Fix Workflow summaries for ARM workflows by silv-io · Pull Request #12707 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

Fix Workflow summaries for ARM workflows #12707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 13 additions & 21 deletions .github/workflows/aws-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -447,12 +447,12 @@ jobs:
name: Publish Test Results
strategy:
matrix:
runner:
- ubuntu-latest
- ubuntu-24.04-arm
arch:
- amd64
- arm64
exclude:
# skip the ARM integration tests in case we are not on the master and not on the upgrade-dependencies branch and forceARMTests is not set to true
- runner: ${{ (github.ref != 'refs/heads/master' && github.ref != 'upgrade-dependencies' && inputs.forceARMTests == false) && 'ubuntu-24.04-arm' || ''}}
- arch: ${{ (github.ref != 'refs/heads/master' && github.ref != 'upgrade-dependencies' && inputs.forceARMTests == false) && 'arm64' || ''}}
needs:
- test-integration
- test-bootstrap
Expand All @@ -465,28 +465,24 @@ jobs:
# execute on success or failure, but not if the workflow is cancelled or any of the dependencies has been skipped
if: always() && !cancelled() && !contains(needs.*.result, 'skipped')
steps:
- name: Determine Runner Architecture
shell: bash
run: echo "PLATFORM=${{ (runner.arch == 'X64' && 'amd64') || (runner.arch == 'ARM64' && 'arm64') || '' }}" >> $GITHUB_ENV

- name: Download Bootstrap Artifacts
uses: actions/download-artifact@v4
if: ${{ env.PLATFORM == 'amd64' }}
if: ${{ matrix.arch == 'amd64' }}
with:
pattern: test-results-bootstrap

- name: Download Integration Artifacts
uses: actions/download-artifact@v4
with:
pattern: test-results-integration-${{ env.PLATFORM }}-*
pattern: test-results-integration-${{ matrix.arch }}-*

- name: Publish Bootstrap and Integration Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: success() || failure()
with:
files: |
**/pytest-junit-*.xml
check_name: "Test Results (${{ env.PLATFORM }}${{ inputs.testAWSAccountId != '000000000000' && ', MA/MR' || ''}}) - Integration${{ env.PLATFORM == 'amd64' && ', Bootstrap' || ''}}"
check_name: "Test Results (${{ matrix.arch }}${{ inputs.testAWSAccountId != '000000000000' && ', MA/MR' || ''}}) - Integration${{ matrix.arch == 'amd64' && ', Bootstrap' || ''}}"
test_file_prefix: "-/opt/code/localstack/"
action_fail_on_inconclusive: true

Expand Down Expand Up @@ -571,12 +567,12 @@ jobs:
name: Publish Acceptance Test Results
strategy:
matrix:
runner:
- ubuntu-latest
- ubuntu-24.04-arm
arch:
- amd64
- arm64
exclude:
# skip the ARM integration tests in case we are not on the master and not on the upgrade-dependencies branch and forceARMTests is not set to true
- runner: ${{ (github.ref != 'refs/heads/master' && github.ref != 'upgrade-dependencies' && inputs.forceARMTests == false) && 'ubuntu-24.04-arm' || ''}}
- arch: ${{ (github.ref != 'refs/heads/master' && github.ref != 'upgrade-dependencies' && inputs.forceARMTests == false) && 'arm64' || ''}}
needs:
- test-acceptance
runs-on: ubuntu-latest
Expand All @@ -588,22 +584,18 @@ jobs:
# execute on success or failure, but not if the workflow is cancelled or any of the dependencies has been skipped
if: always() && !cancelled() && !contains(needs.*.result, 'skipped')
steps:
- name: Determine Runner Architecture
shell: bash
run: echo "PLATFORM=${{ (runner.arch == 'X64' && 'amd64') || (runner.arch == 'ARM64' && 'arm64') || '' }}" >> $GITHUB_ENV

- name: Download Acceptance Artifacts
uses: actions/download-artifact@v4
with:
pattern: test-results-acceptance-${{ env.PLATFORM }}
pattern: test-results-acceptance-${{ matrix.arch }}

- name: Publish Acceptance Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: success() || failure()
with:
files: |
**/pytest-junit-*.xml
check_name: "Test Results (${{ env.PLATFORM }}${{ inputs.testAWSAccountId != '000000000000' && ', MA/MR' || ''}}) - Acceptance"
check_name: "Test Results (${{ matrix.arch }}${{ inputs.testAWSAccountId != '000000000000' && ', MA/MR' || ''}}) - Acceptance"
test_file_prefix: "-/opt/code/localstack/"
action_fail_on_inconclusive: true

Expand Down
Loading
0