Skip to content

Conversation

@nammn
Copy link
Collaborator

@nammn nammn commented Apr 22, 2025

Summary

Proof of Work

Checklist

  • Have you linked a jira ticket and/or is the ticket in the title?
  • Have you checked whether your jira ticket required DOCSP changes?
  • Have you checked for release_note changes?

Reminder (Please remove this when merging)

  • Please try to Approve or Reject Changes the PR, keep PRs in review as short as possible
  • Our Short Guide for PRs: Link
  • Remember the following Communication Standards - use comment prefixes for clarity:
    • blocking: Must be addressed before approval.
    • follow-up: Can be addressed in a later PR or ticket.
    • q: Clarifying question.
    • nit: Non-blocking suggestions.
    • note: Side-note, non-actionable. Example: Praise
    • --> no prefix is considered a question

@nammn nammn requested review from lucian-tosa and m1kola April 22, 2025 14:39
Copy link
Contributor

@m1kola m1kola left a comment

Choose a reason for hiding this comment

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

Looks good to me. The only thing (non-blocking) is that there is a very similar check added in #19. And if we can unify these two - that would be great.

Comment on lines +1711 to +1730
def processes_are_ready():
auto_status = KubernetesTester.get_automation_status()
goal_version = auto_status.get("goalVersion")

logger.info(f"Checking if all processes have reached goal version: {goal_version}")
processes_not_ready = []
for process in auto_status.get("processes", []):
process_name = process.get("name", "unknown")
process_version = process.get("lastGoalVersionAchieved")
if process_version != goal_version:
logger.info(f"Process {process_name} at version {process_version}, expected {goal_version}")
processes_not_ready.append(process_name)

all_processes_ready = len(processes_not_ready) == 0
if all_processes_ready:
logger.info("All processes have reached the goal version")
else:
logger.info(f"{len(processes_not_ready)} processes have not yet reached the goal version")

return all_processes_ready
Copy link
Contributor

Choose a reason for hiding this comment

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

This bit is very similar to check_version_and_processes in #19. Would be great to unify.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

100% will rebase the other one, after merging this

@nammn nammn merged commit 87e8d36 into master Apr 23, 2025
30 of 33 checks passed
@nammn nammn deleted the cherry-pick-flaky-fixes-scram branch April 23, 2025 07:43
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.

3 participants