-
Notifications
You must be signed in to change notification settings - Fork 24
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
Making environment handling more user-friendly #221
Comments
So long as it's a flag and not the default, sure, that would definitely see some use. Security isn't a major concern for the average user, I think it's fine to have an option to circumvent the environment removal.
Dunno. Bit unintuitive... And I'm not too keen on mixing denoise with the environment in such a way, when really you may want to disable one and not the other.
+1 for printing the environment (at least with the debug flag)
Definitely that one, although it would only work for missing binaries and not so easily for more obscure errors that can be caused by the unexpected lack of an env. Still, I like it. Alternatively, would there be any value in running experiments by default with no environment EXCEPT a default PATH? I.e. Maybe my thinking is backwards, but I would think it's an acceptable compromise. Hell, running Definitely needs to explicitly mention "Running with default PATH "the default path"" if you go for that. |
I am not too concerned about security really. We throw security out of the window with denoise in many ways already. So, it's mostly about reproducibility. And yes, a default PATH that's the same everywhere seems sensible. |
Oh wow, I always assumed it was security reasons since that's usually why people tiptoe around the value of PATH. Makes sense that it's reproducibility in this context. Not sure I follow the setting bit, but shouldn't Rebench assume that any provided env variable with no value ought not to be set at all? If
I'm really not sure that feature is needed. Kinda goes against your idea of reproducibility since it opens you up to many a weird bug ("oh look I thought my binary was in The only benefit I see is that we assume there's a default PATH, then you can extend the default PATH slightly more easily by typing |
Since #174, we are very strict in environment variables.
As per c5a2157 which is this line: https://github.com/smarr/ReBench/blob/master/rebench/model/exp_run_details.py#L59 the environment is per default empty.
In practice this means, it is completely empty.
There's no PATH, no nothing.
This means, the configuration file needs to contain everything, including the environment configuration.
This is in many ways unexpected and tedious, and causes a lot of unexpected debugging.
The big question for me is, how should we resolve this.
I see the following possible approaches:
Other improvements:
The text was updated successfully, but these errors were encountered: