Skip to content

Commit

Permalink
tests/e2e: Migrate e2e test for sev andsnp to GHA
Browse files Browse the repository at this point in the history
This PR is to migrate the AMD SEV and SNP e2e tests from Jenkins to GHA.

Builds on top of PR confidential-containers#295

Signed-off-by: Adithya Krishnan Kannan<adkannan@amd.com>
  • Loading branch information
AdithyaKrishnan committed Mar 1, 2024
1 parent c25b30b commit 77babe1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 27 deletions.
41 changes: 18 additions & 23 deletions .github/workflows/ccruntime-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
name: ccruntime e2e test for PR
on:
push
# pull_request_target:
# branches:
# - 'main'
# types:
# - opened
# - synchronize
# - reopened
# - labeled
# paths-ignore:
# - 'docs/**'
pull_request_target:
branches:
- 'main'
types:
- opened
- synchronize
- reopened
- labeled
paths-ignore:
- 'docs/**'
jobs:
e2e-pr-amd:
# if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
uses: ./.github/workflows/ccruntime_e2e_amd.yaml
# with:
# target-branch: ${{ github.event.pull_request.base.ref }}
# commit-hash: ${{ github.event.pull_request.head.sha }}

# e2e-pr:
# if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
# uses: ./.github/workflows/ccruntime_e2e.yaml
# with:
# target-branch: ${{ github.event.pull_request.base.ref }}
# commit-hash: ${{ github.event.pull_request.head.sha }}


e2e-pr:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
uses: ./.github/workflows/ccruntime_e2e.yaml
with:
target-branch: ${{ github.event.pull_request.base.ref }}
commit-hash: ${{ github.event.pull_request.head.sha }}
8 changes: 4 additions & 4 deletions .github/workflows/ccruntime_e2e_amd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
- "kata-qemu-sev"
- "kata-qemu-snp"
instance:
- "amd-coco-ci-ubuntu2004-001"
- "amd-milan-coco-ci-ubuntu2004-001"
- "coco-ci-amd-rome-001"
- "coco-ci-amd-milan-001"
exclude:
- runtimeclass: "kata-qemu-snp"
instance: "amd-coco-ci-ubuntu2004-001"
instance: "coco-ci-amd-rome-001"
- runtimeclass: "kata-qemu-sev"
instance: "amd-milan-coco-ci-ubuntu2004-001"
instance: "coco-ci-amd-milan-001"

runs-on: [self-hosted]
steps:
Expand Down

0 comments on commit 77babe1

Please sign in to comment.