-
Notifications
You must be signed in to change notification settings - Fork 4
feat: update the options generation to be more general #34
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
base: master
Are you sure you want to change the base?
Conversation
|
Have you run a linter on that python file? |
|
not yet; what linter would you prefer me to use? |
b5750e7 to
00cbf64
Compare
Black is somewhat of the standard in the Nix community, but I personally also prefer ruff even though without configuration it is not as strict I was asking because of a dislike for variables and function executions in global namespace. Those things fit better in a main function |
|
sweet! I'll run it through black too then; I don't write much python except for random one off scripts so thats quite helpful :) |
|
how does that look? |
Does looks way better. I can properly review it tomorrow. |
|
it is! It uses the JSON schema |
|
I probably should modify the script to make a check the current crush version first and pull the proper version from GitHub instead of just using the latest schema |
|
I will try out the script on top of #33. How is one supposed to use it? Can you add a |
|
Done! Just run it like |
This wont work if it is actually supposed to build upon #33 as I renamed If this PR is supposed to be able to be merged before #33 I can fix that in my PR should it happen |
|
I was originally thinking this would be merged first but it probably makes more sense to merge after yours |
Its not up to me, but I would suggest changes that could be merged at any time. Depending on the merge order we can fix the file and path naming easily. |
|
yeah i'll keep it like this till we need it then |
1895bc5 to
4ea0aa3
Compare
|
Good to merge @aymanbagabas! I'll look at trying to trigger that script whenever crush updates |
d376adb to
2902e78
Compare
|
as per discussion on the slack I moved the script over to using |
malikwirin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe rename the script to generate-crush-settings.go as well. Because of the path of the script its not obvious that it would only generate the setting of crush. (I know currently it is the only module but still)
2902e78 to
a0ae866
Compare
|
should be good to go! |
|
Sorry if this is bothering but I still am kinda unhappy with the naming. The name of the script implies that it generates the options of crush. But it only generates the options related to the configuration that without the module happens in the |
|
oh fair lol |
a0ae866 to
2f72930
Compare
|
renamed to workflow to follow the same convention as well |
malikwirin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM

CONTRIBUTING.md.This will need to be merged into #33 with the actual update of the config. This is just the script update