Skip to content
This repository was archived by the owner on Jul 22, 2020. It is now read-only.

Commit 6663cfe

Browse files
authored
Merge pull request #258 from cloudflare/0.9.2
Prepare for 0.9.2 release
2 parents e590305 + 56d4026 commit 6663cfe

File tree

17 files changed

+1072
-22
lines changed

17 files changed

+1072
-22
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
defaults_go: &DEFAULTS_GO
22
language: go
3-
go: "1.9.2"
3+
go: "1.10.1"
44
cache:
55
directories:
66
- vendor

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ RUN apk add --update make git
33
COPY . /unsee
44
RUN make -C /unsee webpack
55

6-
FROM golang:1.9.2-alpine3.6 as go-builder
6+
FROM golang:1.10.1-alpine as go-builder
77
COPY --from=nodejs-builder /unsee /go/src/github.com/cloudflare/unsee
88
ARG VERSION
99
RUN apk add --update make git

Gopkg.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
# name = "github.com/x/y"
2020
# version = "2.4.0"
2121

22+
[prune]
23+
go-tests = true
24+
unused-packages = true
2225

2326
[[constraint]]
2427
branch = "master"

Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ NAME := unsee
22
VERSION := $(shell git describe --tags --always --dirty='-dev')
33

44
# Alertmanager instance used when running locally, points to mock data
5-
MOCK_PATH := $(CURDIR)/internal/mock/0.13.0
5+
MOCK_PATH := $(CURDIR)/internal/mock/0.14.0
66
ALERTMANAGER_URI := "file://$(MOCK_PATH)"
77
# Listen port when running locally
88
PORT := 8080
@@ -49,25 +49,22 @@ endif
4949
touch $@
5050

5151
bindata_assetfs.go: .build/deps-build-go.ok .build/artifacts-bindata_assetfs.$(GO_BINDATA_MODE) .build/vendor.ok .build/artifacts-webpack.ok
52-
go-bindata-assetfs $(GO_BINDATA_FLAGS) -prefix assets -nometadata assets/templates/... assets/static/dist/...
52+
go-bindata-assetfs $(GO_BINDATA_FLAGS) -o bindata_assetfs.go -prefix assets -nometadata assets/templates/... assets/static/dist/...
5353

5454
$(NAME): .build/deps-build-go.ok .build/vendor.ok bindata_assetfs.go $(SOURCES)
5555
go build -ldflags "-X main.version=$(VERSION)"
5656

5757
.build/vendor.ok: .build/deps-build-go.ok Gopkg.lock Gopkg.toml
5858
dep ensure
59-
dep prune
6059
touch $@
6160

6261
.PHONY: vendor
6362
vendor: .build/deps-build-go.ok
6463
dep ensure
65-
dep prune
6664

6765
.PHONY: vendor-update
6866
vendor-update: .build/deps-build-go.ok
6967
dep ensure -update
70-
dep prune
7168

7269
.PHONY: webpack
7370
webpack: .build/artifacts-webpack.ok

api_test.go

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,10 @@ func testAlert(version string, t *testing.T, expectedAlert, gotAlert models.Aler
870870
for _, es := range expectedAM.Silences {
871871
foundSilence := false
872872
for _, gs := range gotAM.Silences {
873-
if es.Comment == gs.Comment && es.CreatedBy == gs.CreatedBy && es.JiraID == gs.JiraID && es.JiraURL == es.JiraURL {
873+
if es.Comment == gs.Comment &&
874+
es.CreatedBy == gs.CreatedBy &&
875+
es.JiraID == gs.JiraID &&
876+
es.JiraURL == gs.JiraURL {
874877
foundSilence = true
875878
}
876879
}
@@ -891,11 +894,11 @@ func testAlert(version string, t *testing.T, expectedAlert, gotAlert models.Aler
891894
}
892895

893896
func testAlertGroup(version string, t *testing.T, testCase groupTest, group models.AlertGroup) {
894-
if testCase.hash != group.Hash {
895-
// FIXME this is different per mock version due to startsAt / endsAt
896-
// t.Errorf("[%s] Alert group.Hash mismatch, expected '%s' but got '%s' for group %v",
897-
// version, testCase.hash, group.Hash, group.Labels)
898-
}
897+
//if testCase.hash != group.Hash {
898+
// FIXME this is different per mock version due to startsAt / endsAt
899+
// t.Errorf("[%s] Alert group.Hash mismatch, expected '%s' but got '%s' for group %v",
900+
// version, testCase.hash, group.Hash, group.Labels)
901+
//}
899902
if testCase.id != group.ID {
900903
t.Errorf("[%s] Alert group.ID mismatch, expected '%s' but got '%s' for group %v",
901904
version, testCase.id, group.ID, group.Labels)

assets/static/base.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,19 @@ blockquote.silence-comment {
250250
margin-bottom: 2px;
251251
padding-left: 0;
252252
padding-right: 2px;
253-
padding-top: 2px;
253+
padding-top: 0;
254254
padding-bottom: 0;
255255
}
256+
.silence-block.well {
257+
border: 0;
258+
}
256259

257260
/* button is an icon inside a well, it gets white color
258261
make it dark gray by default, so it's visible but doesn't stand out
259262
and black on hover */
260263
button.silence-delete {
261264
color: inherit;
265+
margin-top: 2px;
262266
}
263267
button.silence-delete:hover,
264268
button.silence-delete:focus {
@@ -270,7 +274,7 @@ button.silence-delete:focus {
270274
}
271275

272276
.incident {
273-
padding: 8px;
277+
padding: 5px;
274278
}
275279

276280
.incident>.panel>.panel-heading {

docs/CODEOWNERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# CODEOWNERS file lists people and teams responsible for code in this
2+
# repository.
3+
# See https://help.github.com/articles/about-codeowners/ for details.
4+
5+
* @prymitive

internal/config/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ func (config *configSchema) LogValues() {
172172
URI: hideURLPassword(s.URI),
173173
Timeout: s.Timeout,
174174
TLS: s.TLS,
175+
Proxy: s.Proxy,
175176
}
176177
servers = append(servers, server)
177178
}

internal/mock/0.14.0/.ok

Whitespace-only changes.

0 commit comments

Comments
 (0)