test-boosters icon indicating copy to clipboard operation
test-boosters copied to clipboard

http command not found when used outside of SemaphoreCI

Open synth opened this issue 7 years ago • 7 comments

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.

synth avatar Dec 05 '18 16:12 synth

Any updates here please??

shqear93 avatar Oct 15 '19 11:10 shqear93

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.

ndbroadbent avatar Nov 15 '19 12:11 ndbroadbent

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

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

shqear93 avatar Nov 15 '19 12:11 shqear93

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.

ndbroadbent avatar Nov 15 '19 12:11 ndbroadbent

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

thromera avatar Apr 25 '20 15:04 thromera

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.

pboling avatar Feb 09 '21 18:02 pboling

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!

ndbroadbent avatar Mar 16 '21 01:03 ndbroadbent