http command not found when used outside of SemaphoreCI
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.
Any updates here please??
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.
I resolved the issue by creating fake http command in my Dockerfile:
touch /usr/bin/http && chmod +x /usr/bin/http
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.
👋 , I just noticed this discussion. FYI, I opened an issue regarding the privacy concern of having such data uploaded to semaphoreci.com : #74
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.
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!