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

Tickets/dm41263: Parameterized OCPS index based on test environment #85

Merged
merged 11 commits into from
Oct 30, 2023

Conversation

rbovill
Copy link
Contributor

@rbovill rbovill commented Oct 27, 2023

No description provided.

@rbovill rbovill requested a review from mareuter October 27, 2023 17:44
Copy link
Contributor

@mareuter mareuter left a comment

Choose a reason for hiding this comment

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

Chunks of code here violate the DRY (Don't Repeat Yourself) principle. I'd like to see things refactored to make maintenance easier.

print(f"\nEnabled to Offline; running {num_scripts} scripts")
asyncio.run(script_class.run())
# Define the script arguments.
parser = argparse.ArgumentParser()
Copy link
Contributor

Choose a reason for hiding this comment

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

Line 93 to 105 could be made as function that returns the parsed args to avoid this being duplicated in the other scripts. Makes maintenance easier.

@rbovill rbovill requested a review from mareuter October 30, 2023 19:13
Copy link
Contributor

@mareuter mareuter 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. Thanks for the updates.

@rbovill rbovill merged commit 648e17e into develop Oct 30, 2023
@rbovill rbovill deleted the tickets/DM-41263 branch October 30, 2023 20:26
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