-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Cirrus: Omit functions in env. file #17458
Cirrus: Omit functions in env. file #17458
Conversation
LGTM |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cevich, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Sorry dan, not quite ready yet. I'll un-draft this when it's complete. |
d6aa21a
to
d16a28f
Compare
The `localbenchmarks()` function stores a `.env` file containing current environment variables for benchmark-classification purposes. However its naked use of `printenv` means it was logging the contents of library functions and (worse) trying to stort all the lines. This results in an unusable mess inside `benchmarks.env`. Fix this by re-using the purpose-built passthrough_envars() which is designed to only print useful, safe, env. vars. Signed-off-by: Chris Evich <[email protected]>
d16a28f
to
655441f
Compare
The `benchmarks.env` file is intended for machine consumption. Including things like a `kB` unit label (like `$MEMTOTAL`) make items difficult to parse. Additionally, multi-value keys (like `$UNAME_RM`) make extra/unnecessary work for the interpreter. Simplify these items and include a data-schema version marker so an interpreter can be made aware/support future format changes. Signed-off-by: Chris Evich <[email protected]>
655441f
to
45fb353
Compare
This is ready now. |
@containers/podman-maintainers PTAL - this is needed so we can capture intelligible environment details along with the benchmark data. |
/lgtm |
The
localbenchmarks()
function stores a.env
file containing current environment variables for benchmark-classification purposes. However its naked use ofprintenv
means it was logging the contents of library functions and (worse) trying to stort all the lines. This results in an unusable mess insidebenchmarks.env
. Fix this by re-using the purpose-built passthrough_envars() which is designed to only print useful, safe, env. vars.Also
The
benchmarks.env
file is intended for machine consumption. Including things like akB
unit label (like$MEMTOTAL
) make items difficult to parse. Additionally, multi-value keys (like$UNAME_RM
) make extra/unnecessary work for the interpreter. Simplify these items and include a data-schema version marker so an interpreter can be made aware/support future format changes.Does this PR introduce a user-facing change?