Skip to content

Feat/ci tests v2 framework cpu hog#1180

Draft
ddjain wants to merge 19 commits intokrkn-chaos:mainfrom
ddjain:feat/ci-tests-v2-framework-cpu-hog
Draft

Feat/ci tests v2 framework cpu hog#1180
ddjain wants to merge 19 commits intokrkn-chaos:mainfrom
ddjain:feat/ci-tests-v2-framework-cpu-hog

Conversation

@ddjain
Copy link
Collaborator

@ddjain ddjain commented Mar 6, 2026

Type of change

  • Refactor
  • New feature
  • Bug fix
  • Optimization

Description

Scenario

  • CPU hog (hog_scenarios): runs a CPU stress workload on selected nodes for a set duration, then removes the hog pods.

Test cases

  1. Success and lifecycle – Scenario runs, at least one hog pod appears during the run, process exits 0, no hog pods left after run.
  2. Node selector and duration – Scenario runs with node-selector=kubernetes.io/os=linux and duration=10; exit 0 and run time in expected range (~8–90s).
  3. Invalid node selector – Node selector matches no nodes; Krkn exits with failure (non-zero).
  4. Invalid scenario YAML – Invalid scenario file; Krkn exits with failure (non-zero).
    Tests use ephemeral namespaces (no pre-deployed workload)

Related Tickets & Documents

If no related issue, please create one and start the converasation on wants of

  • Related Issue #:
  • Closes #:

ddjain and others added 19 commits February 24, 2026 16:07
…isolation

Signed-off-by: ddjain <darjain@redhat.com>
Signed-off-by: ddjain <darjain@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: ddjain <darjain@redhat.com>
Signed-off-by: ddjain <darjain@redhat.com>
Signed-off-by: ddjain <darjain@redhat.com>
Signed-off-by: ddjain <darjain@redhat.com>
Signed-off-by: ddjain <darjain@redhat.com>
Signed-off-by: ddjain <darjain@redhat.com>
Signed-off-by: ddjain <darjain@redhat.com>
Signed-off-by: ddjain <darjain@redhat.com>
Signed-off-by: ddjain <darjain@redhat.com>
Signed-off-by: ddjain <darjain@redhat.com>
Signed-off-by: ddjain <darjain@redhat.com>
Signed-off-by: ddjain <darjain@redhat.com>
Signed-off-by: ddjain <darjain@redhat.com>
Signed-off-by: ddjain <darjain@redhat.com>
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