Skip to content
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

e2e tests: consolidate azure nightly builds #1993

Conversation

mkulke
Copy link
Collaborator

@mkulke mkulke commented Aug 9, 2024

Several changes for the azure CI workflows and tests are introduced:

  • A single nightly-build workflow will build a podvm image and then use that image in a test.

  • A remote-attestation e2e test has been introduced that will only acquire an attestation token from kbs without requesting a secret.

  • Early exit in the job assertion logic.

  • Introduced configurable backofflimit for job tests.

  • Only run the simple pod and remote attestation tests for the time being.

  • Introduced jitter value in gh workflow matrix to avoid contention for cross-matrix resources (user assigned identity).

@mkulke mkulke added the test_e2e_libvirt Run Libvirt e2e tests label Aug 9, 2024
@mkulke mkulke force-pushed the mkulke/consolidate-azure-nightly-builds branch 2 times, most recently from 52e4100 to 262654a Compare August 9, 2024 12:04
@mkulke mkulke force-pushed the mkulke/consolidate-azure-nightly-builds branch 2 times, most recently from a5f7bef to 4ab87d2 Compare August 9, 2024 13:26
@mkulke mkulke requested a review from bpradipt August 9, 2024 13:26
Copy link
Member

@bpradipt bpradipt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
Thanks @mkulke

@@ -151,7 +151,8 @@ func DoTestCreatePeerPodContainerWithExternalIPAccess(t *testing.T, e env.Enviro

func DoTestCreatePeerPodWithJob(t *testing.T, e env.Environment, assert CloudAssert) {
jobName := "job-pi"
job := NewJob(E2eNamespace, jobName)
image := "quay.io/prometheus/busybox:latest"
job := NewJob(E2eNamespace, image, 8, jobName)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ordering of arguments is wrong here. Noticed it due to e2e failure
method signature: NewJob(namespace, name string, backoffLimit int32, image string, command ...string)

Several changes for the azure CI workflows and tests are introduced:

- A single nightly-build workflow will build a podvm image and then use
  that image in a test.

- A remote-attestation e2e test has been introduced that will only
  acquire an attestation token from kbs without requesting a secret.

- Early exit in the job assertion logic.

- Introduced configurable backofflimit for job tests.

- Only run the simple pod and remote attestation tests for the time
  being.

- Introduced jitter value in gh workflow matrix to avoid contention for
  cross-matrix resources (user assigned identity).

Signed-off-by: Magnus Kulke <magnuskulke@microsoft.com>
@mkulke mkulke force-pushed the mkulke/consolidate-azure-nightly-builds branch from 4ab87d2 to fec4f77 Compare August 11, 2024 09:38
Copy link
Member

@bpradipt bpradipt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@mkulke mkulke merged commit fb1d33a into confidential-containers:main Aug 11, 2024
29 checks passed
@mkulke mkulke deleted the mkulke/consolidate-azure-nightly-builds branch August 11, 2024 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test_e2e_libvirt Run Libvirt e2e tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants