Skip to content

Conversation

@gflarity
Copy link
Contributor

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Adds unit tests for the updateObservedGeneration functions in the PodClique, PodCliqueSet, and PodCliqueScalingGroup controllers.

When reviewing PR #337 (commit 24ae6c1) after merge, I noticed the updateObservedGeneration functions lacked test coverage. This PR adds comprehensive unit tests covering three scenarios:

  • Patch is skipped when ObservedGeneration already equals Generation
  • Patch is made when ObservedGeneration is nil
  • Patch is made when ObservedGeneration differs from Generation

Which issue(s) this PR fixes:

NONE

Special notes for your reviewer:

I noticed there weren't any tests on the updateObservedGeneration functions when reviewing 24ae6c1 after merge, so I created some.

Does this PR introduce a API change?

NONE

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

NONE

@gflarity gflarity added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Jan 19, 2026
@gflarity gflarity requested a review from renormalize January 19, 2026 19:48
@gflarity gflarity force-pushed the update_observed_generation_unit_tests branch from 68fcd65 to 9c95d28 Compare January 22, 2026 16:47
@gflarity gflarity merged commit 69ac2be into ai-dynamo:main Jan 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants