Skip to content

Comments

fix(ci): resources cleanup before run e2e test#2018

Open
universal-itengineer wants to merge 2 commits intomainfrom
fix/ci/cleanup-resources
Open

fix(ci): resources cleanup before run e2e test#2018
universal-itengineer wants to merge 2 commits intomainfrom
fix/ci/cleanup-resources

Conversation

@universal-itengineer
Copy link
Member

@universal-itengineer universal-itengineer commented Feb 24, 2026

Description

Fix resources cleanup before run e2e test (Previously, the count was made for entire days)

  • 47h = ~2 days with CI delay;
  • 71h = ~3 days for Friday clusters

Free resources are calculated using requests, not available bytes for stop available virtual machines.

Why do we need it, and what problem does it solve?

What is the expected result?

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: ci
type: fix
summary: resources cleanup before run e2e test

Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
@universal-itengineer universal-itengineer marked this pull request as ready for review February 24, 2026 08:27
echo "[INFO] Available nodes shortage: only ${nodes_meeting_min} node(s) meet free resources requirement, expect at least ${MIN_NODES_FOR_PLACEMENT} available nodes. Proceed with power off some VMs to free resources."
fi
echo "[Note] Will ignore VMs in 'nightly-e2e-*', 'static-cse' namespaces, and VMs with the 'e2e-cluster/do-not-stop-vm-on-e2e-run' label."
echo "[INFO] Power off candidates sorted by memory (largest first); stop once enough resources are freed."
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
echo "[INFO] Power off candidates sorted by memory (largest first); stop once enough resources are freed."
echo "[INFO] Power off candidates sorted by memory (largest first); stop when enough resources are freed."

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.

2 participants