-
Notifications
You must be signed in to change notification settings - Fork 35
test/e2e: define node resources #599
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
Conversation
a31035b to
1e2b62a
Compare
c9d5882 to
3cfb613
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refines e2e tests and CRD documentation while introducing node resource definitions for test environments. It standardizes context usage in tests (specCtx for cross-node operations), adds resource limits for operations and nodes, and improves logging/diagnostics to aid test stability and debugging.
- Add explicit CPU and memory limits for e2e operations and node specs used in tests
- Switch cross-node e2e calls to specCtx and enhance logging (nodes/pods state, stuck pods)
- Update CRD descriptions for DNS options; bump Kubernetes-related dependencies to align with new helpers
Reviewed changes
Copilot reviewed 58 out of 59 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| ytop-chart/templates/crds/cluster.ytsaurus.tech_ytsaurus.yaml | Clarifies CRD field descriptions for DNS resolver options (name/value). No functional change. |
| ytop-chart/templates/crds/cluster.ytsaurus.tech_remoteytsaurus.yaml | Same CRD description clarifications for remote cluster. |
| ytop-chart/templates/crds/cluster.ytsaurus.tech_remotetabletnodes.yaml | Same CRD description clarifications for remote tablet nodes. |
| ytop-chart/templates/crds/cluster.ytsaurus.tech_remoteexecnodes.yaml | Same CRD description clarifications for remote exec nodes. |
| ytop-chart/templates/crds/cluster.ytsaurus.tech_remotedatanodes.yaml | Same CRD description clarifications for remote data nodes. |
| ytop-chart/templates/crds/cluster.ytsaurus.tech_offshoredatagateways.yaml | Same CRD description clarifications for offshore data gateways. |
| test/e2e/ytsaurus_controller_test.go | Adds operation CPULimit/MemoryLimit; shifts cross-node client calls and object updates to specCtx; improves diagnostics (nodes state, pending/failed pods). |
| test/e2e/suite_test.go | Introduces specCtx lifecycle per test; logs nodes state in suite setup; removes global ctx usage to prevent leaks. |
| test/e2e/helpers_test.go | Adds logNodesState and fetchStuckPods; switches to specCtx for k8s calls; imports k8s.io/component-helpers/resource to compute pod requests. |
| pkg/testutil/spec_builders.go | Defines default resource requirements for various node types used in tests; applies these to builder-generated specs; adjusts exec node job environment (removes UserSlots). |
| go.mod | Bumps k8s api/apimachinery/client-go to v0.32.10 and adds component-helpers; updates ancillary deps to recent versions used by k8s tooling. |
| go.sum | Synchronizes checksums with updated dependencies. |
| config/crd/bases/* | Mirrors CRD description clarifications across controller CRD base files. No functional change. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3cfb613 to
d25b0d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 58 out of 59 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
30c1185 to
822aa65
Compare
822aa65 to
2f25ea4
Compare
5b71ea2 to
ab02671
Compare
e8a2019 to
02997c3
Compare
02997c3 to
f2f1e26
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 59 out of 60 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
f2f1e26 to
e2d52ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Signed-off-by: Konstantin Khlebnikov <[email protected]>
5c296dd to
762660d
Compare
Signed-off-by: Konstantin Khlebnikov <[email protected]>
Set limits for all nodes to get repeatable test results. Exec node needs to know own capacity. Defaults are bad. Explicit zero requests are important for fitting into test k8s. Signed-off-by: Konstantin Khlebnikov <[email protected]>
762660d to
4b9cd82
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 58 out of 59 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
qurname2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Uh oh!
There was an error while loading. Please reload this page.