Skip to content

Making environment handling more user-friendly #221

@smarr

Description

@smarr

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:

  1. add a new flag to always use the system's environment
  2. use the -D flag that disables denoise to also disable the restricting of the environment

Other improvements:

  • make ReBench errors more helpful, currently the environment is not printed but only the working directory and the command
  • explicitly point out that the PATH might be missing or incomplete if a command fails with an error that indicates a missing binary

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfeaturegood first issuea relatively simple task to familiarize oneself with the code base, and the contribution process

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions