Open etsangsplk opened 5 years ago
@etsangsplk I guess you ran it on mac. can you please confirm?
@caiwl yes. on mac
thanks @etsangsplk for the confirmation.
@ahrtr @bill828 do you recall below logic in setTestEnv.sh?
100 if [ uname -s
== "Darwin" ] ; then
101 alias pms=${GOPATH}/bin/speedle-pms-mac
102 alias ads=${GOPATH}/bin/speedle-ads-mac
103 else
104 alias pms=${GOPATH}/bin/speedle-pms
105 alias ads=${GOPATH}/bin/speedle-ads
106 fi
@ahrtr @bill828 do you recall below logic in setTestEnv.sh?
100 if [
uname -s
== "Darwin" ] ; then 101 alias pms=${GOPATH}/bin/speedle-pms-mac 102 alias ads=${GOPATH}/bin/speedle-ads-mac 103 else 104 alias pms=${GOPATH}/bin/speedle-pms 105 alias ads=${GOPATH}/bin/speedle-ads 106 fi
It just sets an alias for pms/ads on Mac/Linux respectively. "Darwin" means MacOS. Afterwards, we can just invoke "pms" or "ads" directly, no matter which OS it's.
It seems that the PMS did not get started for some reasons.
@etsangsplk Can you please provide the exact test steps to reproduce this issue, and the output logs?
I just tried to build Speedle on my Mac, and it generated speedle-pms and speedle-ads. @caiwl So the logic you pasted isn't correct any more.
@etsangsplk FYI. https://speedle.io/quick-start/
@ahrtr and others There is a PR to make this at least run in mac. But the etcd is not gracefully shutdown between tests for example: make testSpeedleRestADSCheck:
new embedded Etcd store: embeddedEtcdDataDir = "./speedle.etcd", etcdEndpoint = "localhost:2379", keyPrefix = "/opss_ps/" ERRO[0000] listen tcp 127.0.0.1:2380: bind: address already in use FATA[0000] SPDL-1001 failed to start embedded etcd server: listen tcp 127.0.0.1:2380: bind: address already in use
src/github.com/oracle/speedle/setTestEnv.sh: connect: Connection refused dev/src/github.com/oracle/speedle/setTestEnv.sh: line 80: /dev/tcp/localhost/6733: Connection refused
Does the script spin up the sever or not? If not, can you enhance the script to do so?