-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP - Jenkins to GHA migration for SEV and SNP
The ccruntime-pr.yaml file has been modified and works only for amd specific tests currently. Work adds on to operator pull 295
- Loading branch information
1 parent
016a7d4
commit 66ae6ed
Showing
3 changed files
with
120 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
name: ccruntime e2e test for PR | ||
on: | ||
pull_request_target: | ||
push: | ||
branches: | ||
- 'main' | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- labeled | ||
paths-ignore: | ||
- 'docs/**' | ||
|
||
# types: | ||
# - opened | ||
# - synchronize | ||
# - reopened | ||
# - labeled | ||
# paths-ignore: | ||
# - 'docs/**' | ||
jobs: | ||
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-snp: | ||
uses: ./.github/workflows/ccruntime_e2e_amd_snp.yaml | ||
e2e-pr-sev: | ||
uses: ./.github/workflows/ccruntime_e2e_amd_sev.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: ccruntime e2e tests amd sev | ||
on: | ||
workflow_call: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
e2e: | ||
name: operator tests | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
runtimeclass: | ||
- "kata-qemu-sev" | ||
instance: | ||
- "amd-coco-ci-ubuntu2004-001" | ||
exclude: | ||
- runtimeclass: "kata-clh" | ||
instance: "s390x" | ||
runs-on: [self-hosted, sev] | ||
steps: | ||
- name: Take a pre-action for self-hosted runner | ||
run: | | ||
if [ -f ${HOME}/script/pre_action.sh ]; then | ||
${HOME}/script/pre_action.sh cc-operator | ||
fi | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install deps | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y ansible python-is-python3 | ||
- name: Run e2e tests | ||
timeout-minutes: 45 | ||
run: | | ||
cd tests/e2e | ||
export PATH="$PATH:/usr/local/bin" | ||
args="-u" | ||
if [ $RUNNING_INSTANCE = "s390x" ]; then | ||
args="" | ||
fi | ||
./run-local.sh -r "${{ matrix.runtimeclass }}" "${args}" | ||
env: | ||
RUNNING_INSTANCE: ${{ matrix.instance }} | ||
|
||
- name: Take a post-action | ||
if: always() | ||
run: | | ||
if [ -f ${HOME}/script/post_action.sh ]; then | ||
${HOME}/script/post_action.sh cc-operator | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: ccruntime e2e tests amd snp | ||
on: | ||
workflow_call: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
e2e: | ||
name: operator tests | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
runtimeclass: | ||
- "kata-qemu-snp" | ||
instance: | ||
- "amd-milan-coco-ci-ubuntu2004-001" | ||
exclude: | ||
- runtimeclass: "kata-clh" | ||
instance: "s390x" | ||
runs-on: [self-hosted, snp] | ||
steps: | ||
- name: Take a pre-action for self-hosted runner | ||
run: | | ||
if [ -f ${HOME}/script/pre_action.sh ]; then | ||
${HOME}/script/pre_action.sh cc-operator | ||
fi | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install deps | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y ansible python-is-python3 | ||
- name: Run e2e tests | ||
timeout-minutes: 45 | ||
run: | | ||
cd tests/e2e | ||
export PATH="$PATH:/usr/local/bin" | ||
args="-u" | ||
if [ $RUNNING_INSTANCE = "s390x" ]; then | ||
args="" | ||
fi | ||
./run-local.sh -r "${{ matrix.runtimeclass }}" "${args}" | ||
env: | ||
RUNNING_INSTANCE: ${{ matrix.instance }} | ||
|
||
- name: Take a post-action | ||
if: always() | ||
run: | | ||
if [ -f ${HOME}/script/post_action.sh ]; then | ||
${HOME}/script/post_action.sh cc-operator | ||
fi |