Skip to content

ci: compare CPU and memory usage between stable and PR DWO deployments (#1477) #1478

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rohanKanojia
Copy link
Collaborator

What does this PR do?

  • Deploy stable DevWorkspace Operator only on main branch
  • Capture CPU and memory usage via kubectl top for both deployments
  • Normalize and compare CPU/Memory metrics with configurable thresholds
  • Fail CI if resource usage increases beyond acceptable limits

What issues does this PR fix or reference?

Fix #1477

Is it tested? How?

PR Checklist

  • E2E tests pass (when PR is ready, comment /test v8-devworkspace-operator-e2e, v8-che-happy-path to trigger)
    • v8-devworkspace-operator-e2e: DevWorkspace e2e test
    • v8-che-happy-path: Happy path for verification integration with Che

Copy link

openshift-ci bot commented Aug 1, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link

openshift-ci bot commented Aug 1, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: rohanKanojia
Once this PR has been reviewed and has the lgtm label, please assign dkwon17 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -0,0 +1,159 @@
#

Check failure

Code scanning / Scorecard

Token-Permissions High

score is 0: no topLevel permission defined
Click Remediation section below to solve this issue
devfile#1477)

- Deploy stable DevWorkspace Operator only on main branch
- Capture CPU and memory usage via `kubectl top` for both deployments
- Normalize and compare CPU/Memory metrics with configurable thresholds
- Fail CI if resource usage increases beyond acceptable limits

Signed-off-by: Rohan Kumar <[email protected]>
This commit allocates a large 300MB slice at startup and ensures it is
not garbage collected by keeping a reference alive.

Signed-off-by: Rohan Kumar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant