Skip to content

QA-607: Fix for wait_for_upgrade_cluster test #542

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

Merged
merged 4 commits into from
Jun 23, 2025

Conversation

dmitrysper
Copy link
Contributor

@dmitrysper dmitrysper commented Jun 18, 2025

This PR contains code changes necessary to fix test cases to check the integrity of the old system after the upgrade (Cluster) test case that has been failing for a long while.

UI tests arangodb-devel-UI.Linux job succeeded - build 428

Copy link
Collaborator

@dothebart dothebart left a comment

Choose a reason for hiding this comment

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

please re-add the central configuration of nodes-count.

Can we have another place where we start this routine at the start of a cluster so regular (non-upgrade) UI-tests will execute this as well?

for table_row_num in [1, 2, 3]:
row = {}
table.append(row)
for table_column in range(1, cluster_nodes):
for table_column in range(1, 6): # for table_column in range(1, cluster_nodes):
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we go back to cluster_nodes so we have a single source of truth for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the very reason I made this change is that passed cluster_nodes has incorrect value - 3 - which in turn leads to incomplete data in the table (only consisting of row["name"], row["url"])

cluster_nodes number is taken from self.selenium_runner.props.cluster_nodes - I didn't really have time to debug this

Copy link
Collaborator

@dothebart dothebart Jun 23, 2025

Choose a reason for hiding this comment

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

it can be calculated from

count = 0
for starter in self.starter_instances: 
   count += len(starter.expect_instances)

agents are counted here as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will change the number of nodes in the test case - so that the method of the (Node) page class itself is not impacted (and can be safely called from other tests)

Copy link
Contributor Author

@dmitrysper dmitrysper Jun 23, 2025

Choose a reason for hiding this comment

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

I also don't understand why we have range(1, cluster_nodes) there in the first place - it is plain wrong as we're always supposed have 5 columns and 5 data 'points' in the table:
[row["name"], row["url"], row["version"], row["date"], row["state"]]

I guess cluster_nodes number was meant to be used in the outer loop (loops over the number of rows/nodes) :
for table_row_num in [1, 2, 3]:

@dothebart dothebart merged commit bc81bf7 into main Jun 23, 2025
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