-
Notifications
You must be signed in to change notification settings - Fork 518
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
Clean up flag formatting in PKB #5241
Comments
@jellyfishcake I have reviewed the flag definition and usage, and it looks like the code is already following the required format. The flag If there are any other flags that need updating or if I missed something, please let me know, and I’ll be happy to make the necessary adjustments! Thanks again for your input, and I appreciate your guidance! 😊 |
There are a lot of flags scattered all over the code base. One example is this: https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/cluster_boot_benchmark.py#L124 |
Because we have so many flags and the process for reformatting is straightforward this is a great starter issue that multiple people could work on. Here's a basic guide to get started:
Comment here if you have any questions! |
@wlifferth Thank you for the detailed guide! The clear steps and examples make it easy to follow, especially for a beginner like me. I’ll get started on updating the flags and follow the process you outlined. Appreciate the support and help! |
@jellyfishcake I did as said , had some CLA issue , got it resolved , could you please review and give feedbacks |
flags should take the form:
FOOBAR = flags.DEFINE...
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/sysbench_benchmark.py#L135
Reference the flag later with:
x = FOOBAR.value
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_benchmarks/sysbench_benchmark.py#L810
The text was updated successfully, but these errors were encountered: