Skip to content
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

Add an option to pass environment variables to the default job #1312

Closed
filipnavara opened this issue Nov 19, 2019 · 7 comments · Fixed by #1313
Closed

Add an option to pass environment variables to the default job #1312

filipnavara opened this issue Nov 19, 2019 · 7 comments · Fixed by #1313
Milestone

Comments

@filipnavara
Copy link
Member

When testing against the mono/netcore runtime we often want to run the actual benchmark with specific runtime configuration. This is achieved through setting the MONO_ENV_OPTIONS environment variable. However, we also want to use different MONO_ENV_OPTIONS when running dotnet restore or dotnet build for performance reasons. It would be nice to allow some way to inject the environment variables but only for the actul benchmark job.

What I currently use is the following hack:
filipnavara/performance@d1768c7

/cc @EgorBo

@adamsitnik
Copy link
Member

Do I understand correctly that you would like to have the possibility to specify two different set of env vars, one for dotnet build|restore executed by BDN and another for the benchmark process?

@filipnavara
Copy link
Member Author

filipnavara commented Nov 19, 2019

Do I understand correctly that you would like to have the possibility to specify two different set of env vars, one for dotnet build|restore executed by BDN and another for the benchmark process?

That's correct. However, the ones for dotnet build|restore can be set in the context of the outer process so there's no need for a mechanism to set them inside BDN.

@adamsitnik
Copy link
Member

Ok, so the thing that you are currently doing looks good to me (you are using the right API for the job).

Does it mean that you would like to somehow pass the env vars via console line arguments?

@EgorBo
Copy link
Member

EgorBo commented Nov 19, 2019

Does it mean that you would like to somehow pass the env vars via console line arguments?

Would be nice! 🙂

@adamsitnik adamsitnik transferred this issue from dotnet/performance Nov 19, 2019
@adamsitnik
Copy link
Member

@EgorBo ok, so I've transferred the issue to BDN repo

@filipnavara could you please write some proposal? Would sth like this be enough?

--envVars firstKey:firstValue secondKey:secondValue

@filipnavara
Copy link
Member Author

Would sth like this be enough?

--envVars firstKey:firstValue secondKey:secondValue

Yep, it would be.

@adamsitnik
Copy link
Member

#1313

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants