Skip to content

Commit

Permalink
test if consition different than local test
Browse files Browse the repository at this point in the history
Signed-off-by: Jingwei Wang <jweiw@amazon.com>
  • Loading branch information
sky1122 committed Jan 28, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 816e367 commit abd9d14
Showing 2 changed files with 26 additions and 33 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/e2e-linux.yaml
Original file line number Diff line number Diff line change
@@ -155,45 +155,43 @@ jobs:
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
if: |
${{ needs.test.outputs.has_creds == 'true'
&& ((startsWith(inputs.os, 'amazon')
&& inputs.version != '2' ))
needs.test.outputs.has_creds == 'true'
&& ${{ (startsWith(inputs.os, 'amazon')
&& inputs.version != '2' ) }}
&& github.event_name == 'pull_request'
&& github.event.action == 'closed'
&& github.event.pull_request.merged == true
}}
with:
role-to-assume: ${{ secrets.ROLE }}
role-session-name: credhelper-test
aws-region: ${{ secrets.REGION }}
- name: download artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.08
if: >-
${{ needs.test.outputs.has_creds == 'true'
&& ((startsWith(inputs.os, 'amazon')
&& inputs.version != '2' ))
if: |
needs.test.outputs.has_creds == 'true'
&& ${{ (startsWith(inputs.os, 'amazon')
&& inputs.version != '2' ) }}
&& github.event_name == 'pull_request'
&& github.event.action == 'closed'
&& github.event.pull_request.merged == true
}}
with:
name: linux-${{ inputs.version }}-${{ inputs.test-command }}-${{ inputs.arch }}-${{ github.run_id }}-${{ github.run_attempt }}-e2e-reports
path: linux-${{ inputs.version }}-${{ inputs.test-command }}-${{ inputs.arch }}-${{ github.run_id }}-${{ github.run_attempt }}-e2e-reports
- name: Display structure of downloaded files
if: >-
${{ needs.test.outputs.has_creds == 'true'
&& ((startsWith(inputs.os, 'amazon')
&& inputs.version != '2' ))
if: |
needs.test.outputs.has_creds == 'true'
&& ${{ (startsWith(inputs.os, 'amazon')
&& inputs.version != '2' ) }}
&& github.event_name == 'pull_request'
&& github.event.action == 'closed'
&& github.event.pull_request.merged == true
}}
run: ls -R linux-${{ inputs.version }}-${{ inputs.test-command }}-${{ inputs.arch }}-${{ github.run_id }}-${{ github.run_attempt }}-e2e-reports
- name: Check and upload e2e tests reports to s3 bucket
if: |
needs.test.outputs.has_creds == 'true'
&& ${{ ((startsWith(inputs.os, 'amazon')
&& inputs.version != '2' )) }}
&& ${{ (startsWith(inputs.os, 'amazon')
&& inputs.version != '2' ) }}
&& github.event_name == 'pull_request'
&& github.event.action == 'closed'
&& github.event.pull_request.merged == true
29 changes: 12 additions & 17 deletions .github/workflows/e2e-macos.yaml
Original file line number Diff line number Diff line change
@@ -116,24 +116,20 @@ jobs:
steps:
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
if: >-
${{ needs.test.outputs.has_creds == 'true'
&& github.event_name == 'pull_request'
&& github.event.action == 'closed'
&& github.event.pull_request.merged == true
}}
if: |
needs.test.outputs.has_creds == 'true'
with:
role-to-assume: ${{ secrets.ROLE }}
role-session-name: credhelper-test
aws-region: ${{ secrets.REGION }}
- name: download artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.08
if: >-
${{ needs.test.outputs.has_creds == 'true'
&& github.event_name == 'pull_request'
&& github.event.action == 'closed'
&& github.event.pull_request.merged == true
}}
if: |
needs.test.outputs.has_creds == 'true'
&& github.event_name == 'pull_request'
&& github.event.action == 'closed'
&& github.event.pull_request.merged == true
with:
name: macos-${{ inputs.version }}-${{ inputs.test-command }}-${{ inputs.arch }}-${{ github.run_id }}-${{ github.run_attempt }}-e2e-reports
path: macos-${{ inputs.version }}-${{ inputs.test-command }}-${{ inputs.arch }}-${{ github.run_id }}-${{ github.run_attempt }}-e2e-reports
@@ -142,11 +138,10 @@ jobs:
run: ls -R macos-${{ inputs.version }}-${{ inputs.test-command }}-${{ inputs.arch }}-${{ github.run_id }}-${{ github.run_attempt }}-e2e-reports
- name: Check and upload e2e tests reports to s3 bucket
if: |
${{ needs.test.outputs.has_creds == 'true'
&& github.event_name == 'pull_request'
&& github.event.action == 'closed'
&& github.event.pull_request.merged == true
}}
needs.test.outputs.has_creds == 'true'
github.event_name == 'pull_request'
github.event.action == 'closed'
github.event.pull_request.merged == true
run: |
VM_REPORT="${{ github.workspace }}/macos-${{ inputs.version }}-${{ inputs.test-command }}-${{ inputs.arch }}-${{ github.run_id }}-${{ github.run_attempt }}-e2e-reports/${{ github.run_id }}-${{ github.run_attempt }}-e2e-vm-report.json"
CONTAINER_REPORT="${{ github.workspace }}/macos-${{ inputs.version }}-${{ inputs.test-command }}-${{ inputs.arch }}-${{ github.run_id }}-${{ github.run_attempt }}-e2e-reports/${{ github.run_id }}-${{ github.run_attempt }}-e2e-container-report.json"

0 comments on commit abd9d14

Please sign in to comment.