Skip to content
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

add random operation test #1575

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kamoppl
Copy link

@Kamoppl Kamoppl commented Oct 23, 2024

No description provided.

@Kamoppl Kamoppl force-pushed the kamilg/add_random_operation_test branch from 9a63bad to aaceaf5 Compare October 23, 2024 13:56
Comment on lines 84 to 85
set_param,
set_param,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
set_param,
set_param,
set_param,

if step_name:
step_name_list.append(step_name)
except CmdException:
step_name_list.append(step_name)
Copy link
Contributor

@Deixx Deixx Nov 5, 2024

Choose a reason for hiding this comment

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

step.__name__ ?

used_core_devices = devices.get("used_core_devices")

if not available_cache_devices:
return None
Copy link
Contributor

Choose a reason for hiding this comment

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

make returns consistent (either just return or return None)

@Kamoppl Kamoppl changed the title Kamilg/add random operation test add random operation test Nov 6, 2024
Comment on lines 75 to 80
devices = {
"used_cache_devices": used_cache_devices,
"available_cache_devices": available_cache_devices,
"used_core_devices": used_core_devices,
"available_core_devices": available_core_devices,
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I really don't really like the idea of putting the lists in a dict and in each operation function getting them back using the string keys.
Alternatives:

  • make the lists global
  • define the operation functions within the test so they can access those lists directly
  • make a class with the lists as variables

Preferably one of the first two.

Copy link
Contributor

@Deixx Deixx left a comment

Choose a reason for hiding this comment

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

Overall looks good - minor suggestions

Signed-off-by: Kamil Gierszewski <[email protected]>
@Kamoppl Kamoppl force-pushed the kamilg/add_random_operation_test branch from aaceaf5 to acff040 Compare December 9, 2024 10:12
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