Skip to content

[GREP-291] Introduce end-to-end tests for the OnDelete update strategy#469

Merged
unmarshall merged 10 commits into
ai-dynamo:mainfrom
renormalize:ondelete-e2e
Apr 1, 2026
Merged

[GREP-291] Introduce end-to-end tests for the OnDelete update strategy#469
unmarshall merged 10 commits into
ai-dynamo:mainfrom
renormalize:ondelete-e2e

Conversation

@renormalize

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind feature

What this PR does / why we need it:

Introduces end-to-end tests for the OnDelete update strategy introduced in #438.

Which issue(s) this PR fixes:

Fixes #291

Special notes for your reviewer:

This branch contains implementation code of the ondelete update strategy introduced in #438. Once that is merged, this PR will be rebased to only contain the E2E test code.

Does this PR introduce a API change?

NONE

Additional documentation e.g., enhancement proposals, usage docs, etc.:

NONE

@renormalize renormalize self-assigned this Mar 4, 2026
@copy-pr-bot

copy-pr-bot Bot commented Mar 4, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@renormalize renormalize force-pushed the ondelete-e2e branch 2 times, most recently from 3293602 to a8bf80b Compare March 9, 2026 20:30
@renormalize renormalize marked this pull request as ready for review March 12, 2026 05:04

@Ronkahn21 Ronkahn21 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overall, this looks good. However, I’d prefer to keep the test files focused strictly on test logic rather than utility functions. Also, some functions are becoming quite large; could you refactor them so each function handles a single responsibility and calls helper functions where needed

Comment thread operator/e2e/tests/ondelete_updates_test.go Outdated
Comment thread operator/e2e/tests/ondelete_updates_test.go Outdated

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

This PR introduces end-to-end tests for the OnDelete update strategy for PodCliqueSet, complementing the implementation in PR #438. It also renames triggerPodCliqueRollingUpdate to triggerPodCliqueUpdate and the associated env var from ROLLING_UPDATE_TRIGGER to UPDATE_TRIGGER to be strategy-agnostic.

Changes:

  • Added 7 E2E test cases (OD-1 through OD-7) covering OnDelete strategy scenarios including no-auto-deletion, manual deletion with updated spec, scale-in preference for outdated pods, PCSG interactions, and multi-replica PCS
  • Renamed triggerPodCliqueRollingUpdatetriggerPodCliqueUpdate and env var ROLLING_UPDATE_TRIGGERUPDATE_TRIGGER across existing rolling update tests/utils
  • Added CI matrix entry for ondelete_updates tests

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
operator/e2e/tests/ondelete_updates_test.go New file with 7 OnDelete E2E tests and shared helper functions
operator/e2e/yaml/workload-ondelete.yaml New workload manifest with OnDelete update strategy
operator/e2e/tests/rolling_update_utils.go Renamed function and env var to be strategy-agnostic
operator/e2e/tests/rolling_updates_test.go Updated call sites for the renamed function
.github/workflows/build-check-test.yaml Added ondelete_updates test pattern to CI matrix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread operator/e2e/tests/ondelete_updates_test.go Outdated

@unmarshall unmarshall left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

1/n reviews

Comment thread operator/e2e/tests/ondelete_updates_test.go Outdated
Comment thread operator/e2e/tests/ondelete_updates_test.go Outdated
@renormalize

Copy link
Copy Markdown
Contributor Author

@Ronkahn21 I've addressed your offline comments about the missing test cases.

Will refactor the utils in a subsequent PR since I would like to unblock the upcoming release which OnDelete needs to be a part of.

Thanks.

@renormalize renormalize requested a review from unmarshall March 16, 2026 17:42
@renormalize renormalize force-pushed the ondelete-e2e branch 3 times, most recently from 4b9711c to c09ad69 Compare March 18, 2026 14:28
@renormalize

Copy link
Copy Markdown
Contributor Author

@unmarshall I have refactored the codebase according to your suggestions offline. Please take a look and approve. Thanks.

Comment thread operator/e2e/tests/update/ondelete_test.go
Comment thread operator/e2e/tests/update/ondelete_test.go
Comment thread operator/e2e/tests/update/ondelete_test.go Outdated
unmarshall
unmarshall previously approved these changes Mar 20, 2026
@renormalize

Copy link
Copy Markdown
Contributor Author

There seems to be a bug in the setup.go file (in lines which weren't modified). Will fix and push the change.

Ronkahn21
Ronkahn21 previously approved these changes Mar 23, 2026
@renormalize renormalize dismissed stale reviews from Ronkahn21 and unmarshall via 8333cff March 28, 2026 07:48
Ronkahn21
Ronkahn21 previously approved these changes Mar 28, 2026
unmarshall
unmarshall previously approved these changes Mar 31, 2026
renormalize and others added 9 commits April 1, 2026 09:33
Signed-off-by: Saketh Kalaga <saketh.kalaga@sap.com>
Signed-off-by: Saketh Kalaga <saketh.kalaga@sap.com>
Signed-off-by: Saketh Kalaga <saketh.kalaga@sap.com>
…e_utils.go

Signed-off-by: Saketh Kalaga <saketh.kalaga@sap.com>
Signed-off-by: Saketh Kalaga <saketh.kalaga@sap.com>
Removed the unneeded waitForOnDeleteUpdateCompleteDefault as its not
required.

Signed-off-by: Madhav Bhargava <madhav.bhargava@sap.com>
Signed-off-by: Madhav Bhargava <madhav.bhargava@sap.com>
…ersOutdatedPods`

Signed-off-by: Saketh Kalaga <saketh.kalaga@sap.com>
Signed-off-by: Saketh Kalaga <saketh.kalaga@sap.com>
@unmarshall unmarshall dismissed stale reviews from Ronkahn21 and themself via db3db11 April 1, 2026 04:05
unmarshall
unmarshall previously approved these changes Apr 1, 2026
Signed-off-by: Madhav Bhargava <madhav.bhargava@sap.com>
@unmarshall unmarshall merged commit 8895a29 into ai-dynamo:main Apr 1, 2026
14 checks passed
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.

Enhance the rolling update approach for PodClique

5 participants