Comments (7)
请测试一下网络连通性
from gaea.
不是我的网络问题,是仓库移到github上去了吧
from gaea.
走下代理,一些包被墙了。
from gaea.
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go
export GO111MODULE=on
export GOPROXY=https://goproxy.io
也没有用
from gaea.
build github.com/XiaoMi/Gaea/cmd/gaea: cannot load github.com/gin-contrib/sse: Get https://athens.azurefd.net/github.com/gin-contrib/sse/@v/v0.0.0-20190301062529-5545eab6dad3.zip: stream error: stream ID 23; CANCEL
from gaea.
系统:centos7
[root@k8s-master Gaea]# go version
go version go1.12.4 linux/amd64
[root@k8s-master Gaea]# uname -r
3.10.0-693.21.1.el7.x86_64
[root@k8s-master Gaea]# make
go: finding gopkg.in/ini.v1 v1.42.0
go: finding github.com/emirpasic/gods v1.12.0
go: finding github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548
go: finding google.golang.org/grpc v1.21.0
go: finding go.uber.org/zap v1.10.0
go: finding github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2
go: finding github.com/google/btree v1.0.0
go: finding github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d
go: finding github.com/sirupsen/logrus v1.4.2
go: finding github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8
go: finding github.com/pingcap/tipb v0.0.0-20190226124958-833c2ffd2fe7
go: finding github.com/pingcap/check v0.0.0-20190102082844-67f458068fc8
go: finding github.com/grpc-ecosystem/grpc-gateway v1.9.0
go: finding github.com/gogo/protobuf v1.2.1
go: finding github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf
go: finding golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3
go: finding golang.org/x/tools v0.0.0-20190311212946-11955173bddd
go: finding github.com/prometheus/client_golang v0.9.2
go: finding github.com/google/go-cmp v0.2.0
go: finding github.com/coreos/etcd v3.3.13+incompatible
go: finding github.com/pingcap/errors v0.11.1
go: finding go.uber.org/atomic v1.4.0
go: finding github.com/gin-contrib/gzip v0.0.1
go: finding gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7
go: finding github.com/remyoudompheng/bigfft v0.0.0-20190321074620-2f0d2b0e0001
go: finding github.com/smartystreets/goconvey v0.0.0-20190222223459-a17d461953aa
go: finding go.etcd.io/bbolt v1.3.2
go: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: finding golang.org/x/sys v0.0.0-20181228144115-9a3f9b0469bb
go: finding github.com/coreos/bbolt v1.3.2
go: finding github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903
go: finding golang.org/x/sync v0.0.0-20181108010431-42b317875d0f
go: finding golang.org/x/sys v0.0.0-20190422165155-953cdadca894
go: finding gopkg.in/resty.v1 v1.12.0
go: finding golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8
go: finding github.com/go-ini/ini v1.42.0
go: finding google.golang.org/grpc v1.19.0
go: finding github.com/kisielk/errcheck v1.1.0
go: finding github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a
go: finding golang.org/x/net v0.0.0-20190311183353-d8887717615a
go: finding github.com/ugorji/go/codec v0.0.0-20181022190402-e5e69e061d4f
go: finding golang.org/x/net v0.0.0-20181220203305-927f97764cc3
go: finding github.com/mattn/go-isatty v0.0.4
go: finding github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d
go: finding golang.org/x/tools v0.0.0-20180221164845-07fd8470d635
go: finding golang.org/x/crypto v0.0.0-20190418165655-df01cb2cc480
go: finding github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1
go: finding golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e
go: finding golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
cd parser && make && cd ..
make[1]: 进入目录“/root/Gaea/parser”
make parser
make[2]: 进入目录“/root/Gaea/parser”
./goyacc -o /dev/null parser.y
Parse table entries: 946812 of 2383712, x 16 bits == 1893624 bytes
./goyacc -o parser.go parser.y 2>&1 | egrep "(shift|reduce)/reduce" | awk '{print} END {if (NR > 0) {print "Find conflict in parser.y. Please check y.output for more information."; exit 1;}}'
rm -f y.output
make[2]: 离开目录“/root/Gaea/parser”
#@echo "gofmt (simplify)"
#@ gofmt -s -l -w . 2>&1 | awk '{print} END{if(NR>0) {exit 1}}'
make[1]: 离开目录“/root/Gaea/parser”
go build -o /root/Gaea/bin/gaea -pkgdir=/usr/zhidian/golang/work/pkg/linux_amd64 -ldflags "-extldflags -static -X github.com/XiaoMi/Gaea/core.buildVersion=f88651e7aad534d91321f3316ff307496c57e901-dirty -X github.com/XiaoMi/Gaea/core.buildGitRevision=f88651e7aad534d91321f3316ff307496c57e901-dirty -X github.com/XiaoMi/Gaea/core.buildUser=root -X github.com/XiaoMi/Gaea/core.buildHost=k8s-master -X github.com/XiaoMi/Gaea/core.buildStatus=Modified -X github.com/XiaoMi/Gaea/core.buildTime=2019-06-12--10:07:35" github.com/XiaoMi/Gaea/cmd/gaea
go: downloading github.com/gin-contrib/gzip v0.0.1
go: extracting github.com/gin-contrib/gzip v0.0.1
go: downloading github.com/coreos/etcd v3.3.13+incompatible
go: downloading github.com/pingcap/errors v0.11.1
go: downloading github.com/go-ini/ini v1.42.0
go: downloading github.com/emirpasic/gods v1.12.0
go: extracting github.com/pingcap/errors v0.11.1
go: downloading github.com/pingcap/tipb v0.0.0-20190226124958-833c2ffd2fe7
go: extracting github.com/go-ini/ini v1.42.0
go: downloading github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548
go: extracting github.com/emirpasic/gods v1.12.0
go: extracting github.com/pingcap/tipb v0.0.0-20190226124958-833c2ffd2fe7
go: extracting github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20190321074620-2f0d2b0e0001
go: downloading github.com/prometheus/client_golang v0.9.2
go: extracting github.com/remyoudompheng/bigfft v0.0.0-20190321074620-2f0d2b0e0001
go: extracting github.com/prometheus/client_golang v0.9.2
go: downloading github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: extracting github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: extracting github.com/coreos/etcd v3.3.13+incompatible
go: downloading github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: extracting github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: downloading github.com/prometheus/common v0.0.0-20181126121408-4724e9255275
go: extracting github.com/prometheus/common v0.0.0-20181126121408-4724e9255275
go: downloading github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/ugorji/go/codec v0.0.0-20181022190402-e5e69e061d4f
go: extracting github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a
go: extracting github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading golang.org/x/sys v0.0.0-20190422165155-953cdadca894
go: extracting github.com/ugorji/go/codec v0.0.0-20181022190402-e5e69e061d4f
go: extracting golang.org/x/sys v0.0.0-20190422165155-953cdadca894
go build -o /root/Gaea/bin/gaea-cc -pkgdir=/usr/zhidian/golang/work/pkg/linux_amd64 -ldflags "-extldflags -static -X github.com/XiaoMi/Gaea/core.buildVersion=f88651e7aad534d91321f3316ff307496c57e901-dirty -X github.com/XiaoMi/Gaea/core.buildGitRevision=f88651e7aad534d91321f3316ff307496c57e901-dirty -X github.com/XiaoMi/Gaea/core.buildUser=root -X github.com/XiaoMi/Gaea/core.buildHost=k8s-master -X github.com/XiaoMi/Gaea/core.buildStatus=Modified -X github.com/XiaoMi/Gaea/core.buildTime=2019-06-12--10:08:07" github.com/XiaoMi/Gaea/cmd/gaea-cc
go test -coverprofile=.coverage.out ./...
go: downloading github.com/pingcap/check v0.0.0-20190102082844-67f458068fc8
go: extracting github.com/pingcap/check v0.0.0-20190102082844-67f458068fc8
ok github.com/XiaoMi/Gaea/backend 0.025s coverage: 3.4% of statements
? github.com/XiaoMi/Gaea/cc [no test files]
? github.com/XiaoMi/Gaea/cc/proxy [no test files]
? github.com/XiaoMi/Gaea/cc/service [no test files]
ok github.com/XiaoMi/Gaea/cmd/gaea 0.031s coverage: 13.5% of statements
? github.com/XiaoMi/Gaea/cmd/gaea-cc [no test files]
? github.com/XiaoMi/Gaea/core [no test files]
? github.com/XiaoMi/Gaea/core/errors [no test files]
? github.com/XiaoMi/Gaea/log [no test files]
? github.com/XiaoMi/Gaea/log/xlog [no test files]
ok github.com/XiaoMi/Gaea/models 0.031s coverage: 22.2% of statements
ok github.com/XiaoMi/Gaea/models/etcd 0.048s coverage: 4.4% of statements
? github.com/XiaoMi/Gaea/models/file [no test files]
ok github.com/XiaoMi/Gaea/mysql 0.057s coverage: 34.3% of statements
ok github.com/XiaoMi/Gaea/parser 0.330s coverage: 80.4% of statements
ok github.com/XiaoMi/Gaea/parser/ast 0.161s coverage: 57.1% of statements
ok github.com/XiaoMi/Gaea/parser/auth 0.102s coverage: 0.0% of statements [no tests to run]
ok github.com/XiaoMi/Gaea/parser/format 0.047s coverage: 81.3% of statements
ok github.com/XiaoMi/Gaea/parser/model 0.092s coverage: 53.6% of statements
ok github.com/XiaoMi/Gaea/parser/opcode 0.027s coverage: 55.6% of statements
? github.com/XiaoMi/Gaea/parser/stmtctx [no test files]
ok github.com/XiaoMi/Gaea/parser/terror 0.032s coverage: 75.9% of statements
ok github.com/XiaoMi/Gaea/parser/tidb-types 0.163s coverage: 67.3% of statements
ok github.com/XiaoMi/Gaea/parser/tidb-types/json 0.096s coverage: 81.4% of statements
ok github.com/XiaoMi/Gaea/parser/tidb-types/parser_driver 0.090s coverage: 24.7% of statements
? github.com/XiaoMi/Gaea/parser/types [no test files]
ok github.com/XiaoMi/Gaea/proxy/plan 0.657s coverage: 60.2% of statements
ok github.com/XiaoMi/Gaea/proxy/router 0.084s coverage: 58.8% of statements
? github.com/XiaoMi/Gaea/proxy/sequence [no test files]
ok github.com/XiaoMi/Gaea/proxy/server 0.043s coverage: 3.2% of statements
ok github.com/XiaoMi/Gaea/stats 0.030s coverage: 70.2% of statements
ok github.com/XiaoMi/Gaea/stats/prometheus 0.091s coverage: 97.1% of statements
ok github.com/XiaoMi/Gaea/util 10.368s coverage: 49.3% of statements
ok github.com/XiaoMi/Gaea/util/bucketpool 0.287s coverage: 93.9% of statements
ok github.com/XiaoMi/Gaea/util/cache 0.030s coverage: 98.1% of statements
ok github.com/XiaoMi/Gaea/util/crypto 0.026s coverage: 69.7% of statements
ok github.com/XiaoMi/Gaea/util/hack 0.073s coverage: 55.0% of statements
? github.com/XiaoMi/Gaea/util/math [no test files]
ok github.com/XiaoMi/Gaea/util/requests 0.016s coverage: 43.9% of statements
--- FAIL: TestBatcher (0.43s)
batcher_flaky_test.go:27: staggered waiter: got 4, want 3
batcher_flaky_test.go:27: staggered waiter 2: got 5, want 4
FAIL
coverage: 79.8% of statements
FAIL github.com/XiaoMi/Gaea/util/sync2 0.467s
? github.com/XiaoMi/Gaea/util/testleak [no test files]
ok github.com/XiaoMi/Gaea/util/timer 0.654s coverage: 96.2% of statements
make: *** [test] 错误 1
上面是我编译的。
from gaea.
@xzy1586 需要配置下梯子,或者通过replace指定github上对应位置,比如golang.org的包
from gaea.
Related Issues (20)
- 考虑使用 podman 进行单元测试 (consider using Podman for unit test.) HOT 3
- 分片和非分片均不支持 with rollup 语句
- 分库分表场景下,不支持跨分片insert,支持跨分片update和delete,这样是否合理?辛苦指导
- prepare类型语句出错 HOT 3
- set设置自定义变量,select返回结果为null HOT 3
- HASH模式的分表,扩容的时候必须要迁移数据库才可以吗 HOT 2
- gaea-agent在SQL端运行的代码在哪里呢?
- 执行批量更新时,Gaea代理会将SQL在结尾处添加个逗号,从而导致mysql底层执行失败。 HOT 1
- grafana数据部分数据为空,是参数填写错了吗 HOT 1
- Gaea web现在开源了吗? HOT 1
- prepare,exec方式代理导致decimal精度丢失
- gaea连接etcd,当第一个节点异常时,无法连接配置的其他节点
- geea1.2.2版本,mybatisplus执行批量更新报错
- 普通表怎么去left join分表表
- 此项目还在维护吗? HOT 1
- 支持 Create Function/Create Procedure HOT 1
- 为什么定义的xlog接口要返回error?
- 使用代理后怎么获取sql执行进程id HOT 1
- 升级gaea版本后报错commands out of sync HOT 1
- 使用Navicat连接Gaea代理时测试连接是成功的,但是点击确定时会报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gaea.