-
Notifications
You must be signed in to change notification settings - Fork 9
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
preparations for e2e tests on baremetal SNP #730
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
0add2e9
contrast: properly calculate launch digest
Freax13 b21786f
just: support QEMU-SNP in node-installer target
Freax13 8dc0ae9
e2e: pass platform as CLI parameter
Freax13 80b9a74
e2e: add build tag to constrasttest
Freax13 69b35a6
e2e/openssl: wait for coordinator after restarting
Freax13 75c2117
generate: don't fail when manifest isn't valid yet
Freax13 4bfe50a
kata.kata-kernel-uvm: enable dm-init
Freax13 41774fb
node-installer: add kernel_params for setting up dm-verity
Freax13 b6c64e3
CI: add workflow for openssl test on baremetal SNP
Freax13 1fadfcd
qemu-static: bump to rc1
Freax13 3a5bc19
justfile: pass platform explicitly to more targets
Freax13 717e272
e2e: add retry loop for WaitFor
Freax13 e036d6e
e2e/openssl: wait a little longer after coordinator restart
Freax13 ed1c4f8
kubeclient: log correct error
Freax13 825b761
e2e/openssl: fill in missing manifest values for baremetal SNP
Freax13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
self-hosted-runner: | ||
labels: | ||
- snp |
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
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,55 @@ | ||
name: e2e test openssl baremetal | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
skip-undeploy: | ||
description: "Skip undeploy" | ||
required: false | ||
type: boolean | ||
default: false | ||
pull_request: | ||
paths-ignore: | ||
- dev-docs/** | ||
- docs/** | ||
- rfc/** | ||
|
||
env: | ||
container_registry: ghcr.io/edgelesssys | ||
DO_NOT_TRACK: 1 | ||
|
||
jobs: | ||
test: | ||
runs-on: | ||
labels: snp | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
- name: Log in to ghcr.io Container registry | ||
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: nicknovitski/nix-develop@a2060d116a50b36dfab02280af558e73ab52427d # v1.1.0 | ||
- name: Create justfile.env | ||
run: | | ||
cat <<EOF > justfile.env | ||
container_registry=${{ env.container_registry }} | ||
EOF | ||
- name: Build and prepare deployments | ||
run: | | ||
just coordinator initializer openssl port-forwarder node-installer K3s-QEMU-SNP | ||
- name: E2E Test | ||
run: | | ||
nix shell .#contrast.e2e --command openssl.test -test.v \ | ||
--image-replacements workspace/just.containerlookup \ | ||
--namespace-file workspace/e2e.namespace \ | ||
--platform K3s-QEMU-SNP \ | ||
--skip-undeploy="${{ inputs.skip-undeploy && 'true' || 'false' }}" | ||
- name: Cleanup | ||
if: cancelled() && !inputs.skip-undeploy | ||
run: | | ||
kubectl delete ns "$(cat workspace/e2e.namespace)" --timeout 5m |
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
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
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
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a GHA shortcoming, but it'd be very nice if we could make this test work on both SNP and TDX, without another duplication. But afaict, you cannot have dynamic values (e.g. an input) in
runs-on
. Not saying this PR should or can do anything about that, but just keeping it here as a note.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand this section in the docs correctly, this might work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would enable us to create tests that run on all platforms unconditionally, but still not one test that runs on one, selectable platform
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also run steps conditionally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but this won't be a step. We could execute everything but the actual step on GH-hosted runners and then transfer files over, but I fear that this is going to have a higher total cost in the end.