mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-03 09:25:06 -04:00
Point the go-micro.dev/v4 replace at the latest main-v4 maintenance branch commit in butonic/go-micro (cd412c15) instead of the v4.11.3 tag. The new base is upstream v4.11.1 plus the registry cache node-TTL fixes (upstream #2715, #2736, #2740), the concurrent map access fix (upstream #2794), plus further dependency updates and test fixes on the maintenance branch. The branch also modernizes go-micro's own go.mod (go 1.26, lego, dario.cat/mergo v1, x/deque v2, ...), and MVS pulls the aligned versions into this module: lego v4.35.2 -> lego/v5 v5.5.2, go-jose/go-jose/v4 -> v4.1.5, gofrs/flock -> v0.13.1, mattn/go-isatty -> v0.0.24, go.uber.org/zap -> v1.28.0, x/net -> 0.59.0, miekg/dns -> 1.1.73, moby api/client, ProtonMail/go-crypto -> 1.5.2, klauspost/compress -> 1.20.1, gorilla/handlers -> 1.5.2, gobwas/ws -> 1.4.0, nxadm/tail -> 1.4.11, ... Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
55 lines
1.6 KiB
Makefile
55 lines
1.6 KiB
Makefile
BENCH ?=.
|
||
BENCH_BASE?=master
|
||
|
||
clean:
|
||
rm -f bin/reporter
|
||
rm -fr autobahn/report/*
|
||
|
||
bin/reporter:
|
||
go build -o bin/reporter ./autobahn
|
||
|
||
bin/gocovmerge:
|
||
go build -o bin/gocovmerge github.com/wadey/gocovmerge
|
||
|
||
.PHONY: autobahn
|
||
autobahn: clean bin/reporter
|
||
./autobahn/script/test.sh --build --follow-logs
|
||
bin/reporter $(PWD)/autobahn/report/index.json
|
||
|
||
.PHONY: autobahn/report
|
||
autobahn/report: bin/reporter
|
||
./bin/reporter -http localhost:5555 ./autobahn/report/index.json
|
||
|
||
test:
|
||
go test -coverprofile=ws.coverage .
|
||
go test -coverprofile=wsutil.coverage ./wsutil
|
||
go test -coverprofile=wsfalte.coverage ./wsflate
|
||
# No statements to cover in ./tests (there are only tests).
|
||
go test ./tests
|
||
|
||
cover: bin/gocovmerge test autobahn
|
||
bin/gocovmerge ws.coverage wsutil.coverage wsflate.coverage autobahn/report/server.coverage > total.coverage
|
||
|
||
benchcmp: BENCH_BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
|
||
benchcmp: BENCH_OLD:=$(shell mktemp -t old.XXXX)
|
||
benchcmp: BENCH_NEW:=$(shell mktemp -t new.XXXX)
|
||
benchcmp:
|
||
if [ ! -z "$(shell git status -s)" ]; then\
|
||
echo "could not compare with $(BENCH_BASE) – found unstaged changes";\
|
||
exit 1;\
|
||
fi;\
|
||
if [ "$(BENCH_BRANCH)" == "$(BENCH_BASE)" ]; then\
|
||
echo "comparing the same branches";\
|
||
exit 1;\
|
||
fi;\
|
||
echo "benchmarking $(BENCH_BRANCH)...";\
|
||
go test -run=none -bench=$(BENCH) -benchmem > $(BENCH_NEW);\
|
||
echo "benchmarking $(BENCH_BASE)...";\
|
||
git checkout -q $(BENCH_BASE);\
|
||
go test -run=none -bench=$(BENCH) -benchmem > $(BENCH_OLD);\
|
||
git checkout -q $(BENCH_BRANCH);\
|
||
echo "\nresults:";\
|
||
echo "========\n";\
|
||
benchcmp $(BENCH_OLD) $(BENCH_NEW);\
|
||
|