Skip to content

test: Extend e2e tests - #11

Open
Mantisus wants to merge 2 commits into
mainfrom
e2e-podman
Open

test: Extend e2e tests#11
Mantisus wants to merge 2 commits into
mainfrom
e2e-podman

Conversation

@Mantisus

Copy link
Copy Markdown
Collaborator
  • Add testing in the ARM environment
  • Add testing in the podman environment
  • Extend tests for Docker and Kubernetes

Closes: #5

@Mantisus Mantisus changed the title extend 2e2 tests test: extend 2e2 tests Aug 28, 2026
@Mantisus Mantisus changed the title test: extend 2e2 tests test: extend e2e tests Aug 28, 2026
@Mantisus Mantisus changed the title test: extend e2e tests test: Extend e2e tests Aug 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Extends the E2E coverage to validate the sensor across more real-world runtime environments (ARM64 runners, podman rootless/rootful, and additional Docker/Kubernetes resource-shaping cases) and refactors the E2E harness to support multiple container engines cleanly.

Changes:

  • Add a dedicated podman E2E suite (rootless + rootful) and supporting harness abstractions.
  • Expand Docker and Kubernetes E2E scenarios to cover additional limit/request shapes and tricky cgroup layouts.
  • Extend CI and guest VM setup to run the new lanes (ARM job, podman job, guest profile tweaks) and document new pytest markers.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/e2e/test_podman.py New podman E2E coverage for rootless/rootful behaviors and delegation-dependent cases.
tests/e2e/test_kubernetes.py Adds pod resource scenarios (Guaranteed QoS, CPU-only, memory-only) to validate limit detection.
tests/e2e/test_docker.py Adds Docker scenarios for CPU shares and namespace/mount edge cases to harden limit/rate interpretation.
tests/e2e/scripts/guest.sh Updates guest profiles and cloud-init setup to support podman lane and docker group handling.
tests/e2e/harness.py Introduces multi-engine support (Engine), command construction helpers, and registry qualification.
tests/e2e/conftest.py Adds session fixtures for podman image pulls and new systemd slice fixtures.
pyproject.toml Adds/updates pytest markers to cover podman and clarify systemd_slices.
.github/workflows/e2e.yaml Adds ARM64 and podman CI jobs and required environment setup for rootless podman.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/e2e.yaml
Comment thread tests/e2e/conftest.py Outdated
Comment on lines 45 to 47
name = f'cgroups-sensor-e2e-{os.getpid()}.slice'
holder = f'cgroups-sensor-e2e-holder-{os.getpid()}'

Comment thread tests/e2e/harness.py
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.

Add E2E tests for various environments

3 participants