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

fix: dont fail to collect profiles if no ipfs bin #6829

Merged
merged 2 commits into from
Jan 16, 2020

Conversation

olizilla
Copy link
Member

@olizilla olizilla commented Jan 16, 2020

Due to the bash args used, collect-profiles.sh would fail if which ipfs failed to find an ipfs binary on the path, like when running ipfs in docker. Fixes that by using a check for the command that wont error if it's not found.

Also

  • adds a comment to explain when to use the script and what it does.
  • be less chatty. Simplify the output so it's clearer what it's doing. Experts can read the script or set the -x flag themselves.
  • allow profiling of remote nodes via https.

License: MIT
Signed-off-by: Oli Evans oli@tableflip.io

Due to the bash args used, collect-profiles.sh would fail if which ipfs failed to find an ipfs binary on the path, like when running ipfs in docker.

Fixes that by using a check for the command that wont error if it's not found.

Also
- adds a commment to explains when to use the script and what it does.
- be less chatty. Simpify the output so it's clearer what it's doing. Experts can read the script or set the -x flag themselves.

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
@Stebalien Stebalien merged commit 049d3b0 into master Jan 16, 2020
@Stebalien Stebalien deleted the collect-profiles-no-ipfs-bin branch January 16, 2020 15:31
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 this pull request may close these issues.

2 participants