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

http command not found when used outside of SemaphoreCI #66

Open
synth opened this issue Dec 5, 2018 · 7 comments
Open

http command not found when used outside of SemaphoreCI #66

synth opened this issue Dec 5, 2018 · 7 comments

Comments

@synth
Copy link

synth commented Dec 5, 2018

Is this gem meant to be used outside of SemaphoreCI?

We are encountering an issue with the after_job method that uploads insights to SemaphoreCI because of a missing http shell command.

Is it possible to make this a configuration parameter? I'm happy to submit a PR for it.

@shqear93
Copy link

shqear93 commented Oct 15, 2019

Any updates here please??

@ndbroadbent
Copy link
Contributor

Yes, it would be great if this could be disabled with an ENV variable.

I'm following a guide for a different CI provider, and I just saw this warning in their docs:

Caution: Please be aware that semaphore_test_boosters reports usages statistics to the author.

So I'm concerned that the gem might be sending some information about my source code. I will use a fork for now.

@shqear93
Copy link

shqear93 commented Nov 15, 2019

I resolved the issue by creating fake http command in my Dockerfile:

touch /usr/bin/http && chmod +x /usr/bin/http

@ndbroadbent
Copy link
Contributor

Oh nice! I just pushed a commit to my fork that adds a new TB_DISABLE_INSIGHTS variable. If this is set, then it skips the upload task.

@thromera
Copy link

👋 , I just noticed this discussion. FYI, I opened an issue regarding the privacy concern of having such data uploaded to semaphoreci.com : #74

@pboling
Copy link

pboling commented Feb 9, 2021

I successfully disabled this with (building on @shqear93 's suggestion):

            mkdir -p $HOME/.local/bin
            touch $HOME/.local/bin/http && chmod +x $HOME/.local/bin/http

This should work on most systemd-compatible environments.

@ndbroadbent
Copy link
Contributor

I've been using my fork with the TB_DISABLE_INSIGHTS variable for a really long time, so I thought it might be good to open a PR with this change (so I can go back to using the official gem on Rubygems): #80
Thanks!

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

No branches or pull requests

5 participants