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

Introduce a common script library, config for env vars, and inject these into all scripts #953

Merged
merged 6 commits into from
Jan 18, 2022

Conversation

supertetelman
Copy link
Collaborator

This PR gives us the ability to improve the debugabbility and verbosity of all scripts, as well as making the default configuration overriding something that can be version controlled.

We do this by the following:

  • Create scripts/common.sh to be sourced in all *sh files. This will source the new env.sh and will also print out a standard debug header when each script runs.
  • Create config/env.sh as a place to version control/save the overrides to our global env vars, prevoiusly we had been running export DEEPOPS_XXX=123 commands, which was not consistent.
  • Source common.sh in most of the *sh file

@supertetelman supertetelman requested a review from dholt June 22, 2021 04:30
@github-actions
Copy link

github-actions bot commented Dec 4, 2021

This PR is stale because it has been open for 60 days with no activity. Please update the PR or it will be closed in 7 days.

Copy link
Contributor

@dholt dholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just one question about the default env file

config.example/env.sh Outdated Show resolved Hide resolved
dholt
dholt previously approved these changes Jan 14, 2022
@dholt dholt merged commit afa0531 into NVIDIA:master Jan 18, 2022
@supertetelman supertetelman deleted the common-scripts branch February 11, 2022 18:58
@ajdecon ajdecon mentioned this pull request Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants