Skip to content

tests: Add a way to test what we ship#4

Merged
fidencio merged 4 commits intomainfrom
topic/tests-add-a-way-to-test
Oct 25, 2025
Merged

tests: Add a way to test what we ship#4
fidencio merged 4 commits intomainfrom
topic/tests-add-a-way-to-test

Conversation

@fidencio
Copy link
Member

This commit is huge, I know it, and I am sorry about it.

What we're doing here is basically:

  • Adding a new dependency that will be used for testing
  • Adding a script to update dependencies when needed
    • This script will automatically remove the testing dependency that we use, as there's no reason for that to be released / consumed outside of CI
  • Adding actions for setting up several types of k8s flavours where we should be able to run (as kata-containers does)
  • Add e2e tests to:
    • Deploy our chart
    • Start a pod
    • Ensure the pod is running with the correct runtime
    • Remove our chart

Last but not least, we're adding a new action to ensure that our test dependency is never ever commited to our Chart.lock.

Majority of the tests were vibe generated using Cursor AI based on what I personally wrote for kata-containers.

@fidencio fidencio force-pushed the topic/tests-add-a-way-to-test branch from 2d1c2f2 to 8f2a495 Compare October 24, 2025 15:34
@fidencio fidencio force-pushed the topic/tests-add-a-way-to-test branch from 8f2a495 to 31cf1c1 Compare October 24, 2025 15:50
@fidencio fidencio force-pushed the topic/tests-add-a-way-to-test branch from 31cf1c1 to 9e49de7 Compare October 24, 2025 15:54
@fidencio fidencio force-pushed the topic/tests-add-a-way-to-test branch 8 times, most recently from d5e2348 to 2904667 Compare October 24, 2025 18:36
@fidencio fidencio marked this pull request as draft October 24, 2025 18:36
@fidencio fidencio force-pushed the topic/tests-add-a-way-to-test branch 14 times, most recently from 63c33a3 to 2d656b3 Compare October 24, 2025 21:46
@fidencio fidencio force-pushed the topic/tests-add-a-way-to-test branch from 2d656b3 to fb19652 Compare October 24, 2025 21:49
@fidencio fidencio force-pushed the topic/tests-add-a-way-to-test branch 11 times, most recently from 74df2bb to cea33b9 Compare October 25, 2025 00:17
@fidencio fidencio marked this pull request as ready for review October 25, 2025 00:20
@fidencio fidencio force-pushed the topic/tests-add-a-way-to-test branch from cea33b9 to 0daf265 Compare October 25, 2025 09:04
@fidencio fidencio force-pushed the topic/tests-add-a-way-to-test branch from 0daf265 to 53362dd Compare October 25, 2025 09:17
@fidencio fidencio force-pushed the topic/tests-add-a-way-to-test branch from 53362dd to e897196 Compare October 25, 2025 09:36
@fidencio fidencio force-pushed the topic/tests-add-a-way-to-test branch 2 times, most recently from 0abfa82 to 3d39fa7 Compare October 25, 2025 09:54
Following the work I've done on kata-containers side, let's use what we
added there ... but make those proper actions instead of just scripts.

This will help us (and hopefully other repos as well) to test things out
in all the supported k8s flavours we have interest in.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Although not used yet, this will help us immensely to test development
versions of Kata Containers, and catch issues on our integration as soon
as possible.

Let's add a new action to ensure we don't accidentaly add / push the CI
specific dependency as part of the release.  The action itself was
heavily vibe coded using Cursor AI.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Those actions have been vibe generated, although still heavily based on
what we currently have on kata-containers / confidential-containers'
oeprator.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Let's make sure we test all the k8s flavours we're interested in, on
every opened PR, and ensure no regressions are added.

CRI-O is being skipped for now as kata-containers' helm chart doesn't
support configuring CRI-O for TEE runtime classes.  Hopefully Red Hat
folks will be able to collaborate with such support at some point.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
@fidencio fidencio force-pushed the topic/tests-add-a-way-to-test branch from 3d39fa7 to c73a87b Compare October 25, 2025 10:31
@fidencio fidencio merged commit b037401 into main Oct 25, 2025
31 checks passed
@fidencio fidencio deleted the topic/tests-add-a-way-to-test branch October 25, 2025 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant