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
Run an installation task to install a language #1502
Run an installation task to install a language #1502
Conversation
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.
Please look on my notes below. Otherwise I like the new tasks solution.
@@ -0,0 +1,40 @@ | |||
# |
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.
What about having all the tasks in modules/<module_name>/tasks
subfolder. So in this case it would be modules/localization/tasks/installation.py
?
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.
I am not sure about this. I would prefer to sort tasks by their functionality. For example in the storage module, you don't want to have all tasks in pyanaconda.modules.storage.tasks
, but you might want to keep them close to other related files, for example the bootloader tasks should be in pyanaconda.modules.storage.bootloader
.
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.
And what about sorting then inside of that subfolder?
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.
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.
We agreed that tasks will not be in a subfolder tasks
.
return "Configure language" | ||
|
||
def run(self): | ||
write_language_configuration(self._lang, self._sysroot) |
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.
Why the write_language_configuration()
method is not part of this task? I don't think it should be run outside of the task or should it be?
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.
Ok, I can move it there.
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.
Fixed.
jenkins, test this please |
1ada473
to
7e17797
Compare
The lang command will run a remote installation task to install a language on the installed system.
7e17797
to
c5ae710
Compare
Added new tests for the localization module changes and the task.
c5ae710
to
733a488
Compare
Updated: Created a specific exception and added new tests for the module and the task. |
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.
Looks good to me :).
The lang command will run a remote installation task to install
a language on the installed system.