-
Notifications
You must be signed in to change notification settings - Fork 22
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
Permit autoproj to perform configuration noninteractively by relying … #243
Conversation
+1 Good change, makes maintaining CI way easier. |
In principle, I like the idea... I wonder if we should maybe skip saving the configuration if What do you guys think? |
what would be the use case, seed-configurations might still be used in combination with a non interactive mode
+1 but maintaining the control through the env var |
Automation tools and/or the vscode rock/autoproj extension during operations other than install/bootstrap. Also, this could be a fix/workaround for #200 but we would still want the user to be asked about the configuration in the future
Sounds good.. |
What do you think about to also set --no-color and --no-progress when AUTOPROJ_NONINTERACTIVE is set? |
Sorry, still not clear to me as to why you do not want to save the configuration. |
This actually sounds weird. If non-interactive picks up defaults, then why don't you want to use the up-to-date defaults, in case they change ? Especially in CI, it would make sure that the default build actually builds... I actually like @g-arjones idea of not saving the values (if it's reasonably easy to do), allowing to bootstrap non-interactively and then do a manual run to check the configuration(s). This seems compatible with having a seed file (which only consists of reading values, not writing them). Finally, I would very much prefer that the flag is made available on the configuration object ( Also, please write tests. |
👎 You can run noninteractively in a terminal emulator that supports color and/or progress. |
Well I did not say that. To be clear I am stressing the fact that the configuration options which a user sets explicitly via the seed-configuration should be maintained.
What is that supposed to mean?
Sure, I can put something along these lines together |
Exactly what I meant, sorry for not being clear enough. I guess we are all on the same page then.. |
Well ... start a non-interactive bootstrap/update/build and go to lunch. When you come back, run |
6c0b5d7
to
0ab4107
Compare
Update: Implemented something that hopefully covers all mentioned requirements. I need some help for the test side, however, see comment above. |
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 don't see how you are skipping saving options that had defaults chosen due to non-interactive mode...
sorry, apparently missed that one .. |
0ab4107
to
ff8fc94
Compare
Added the feature ... |
Other than a few style issues (@doudou will probably have something to say about those) I think we are good to go |
ff8fc94
to
abeeb0e
Compare
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.
Hey ... thanks for taking care of this. Just a few comments on my side.
1c049fb
to
9ec304d
Compare
9ec304d
to
3b38b45
Compare
…on the default values
3b38b45
to
e862bf7
Compare
Thanks for the work Thomas ! |
got a bit meatier than I thought initially, but happy to had your reviews @doudou @g-arjones |
@2maz 👍 any time! |
…on the default values
Avoid the need for updating seed configurations when new configurations options are introduced to autoproj.