Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
8b32dc58
Commit
8b32dc58
authored
Jul 10, 2018
by
yogy rahmawan
Committed by
Torkel Ödegaard
Jul 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move go vet out of scripts and fixing warning (#12552)
parent
25bcdbca
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
.circleci/config.yml
+3
-0
pkg/services/notifications/notifications.go
+0
-2
pkg/services/rendering/phantomjs.go
+3
-1
pkg/tsdb/elasticsearch/client/client.go
+1
-1
pkg/tsdb/elasticsearch/client/models.go
+1
-1
scripts/circle-test-backend.sh
+0
-3
No files found.
.circleci/config.yml
View file @
8b32dc58
...
@@ -88,6 +88,9 @@ jobs:
...
@@ -88,6 +88,9 @@ jobs:
-
run
:
-
run
:
name
:
run linters
name
:
run linters
command
:
'
gometalinter.v2
--enable-gc
--vendor
--deadline
10m
--disable-all
--enable=deadcode
--enable=ineffassign
--enable=structcheck
--enable=unconvert
--enable=varcheck
./...'
command
:
'
gometalinter.v2
--enable-gc
--vendor
--deadline
10m
--disable-all
--enable=deadcode
--enable=ineffassign
--enable=structcheck
--enable=unconvert
--enable=varcheck
./...'
-
run
:
name
:
run go vet
command
:
'
go
vet
./pkg/...'
test-frontend
:
test-frontend
:
docker
:
docker
:
...
...
pkg/services/notifications/notifications.go
View file @
8b32dc58
...
@@ -98,8 +98,6 @@ func (ns *NotificationService) Run(ctx context.Context) error {
...
@@ -98,8 +98,6 @@ func (ns *NotificationService) Run(ctx context.Context) error {
return
ctx
.
Err
()
return
ctx
.
Err
()
}
}
}
}
return
nil
}
}
func
(
ns
*
NotificationService
)
SendWebhookSync
(
ctx
context
.
Context
,
cmd
*
m
.
SendWebhookSync
)
error
{
func
(
ns
*
NotificationService
)
SendWebhookSync
(
ctx
context
.
Context
,
cmd
*
m
.
SendWebhookSync
)
error
{
...
...
pkg/services/rendering/phantomjs.go
View file @
8b32dc58
...
@@ -58,7 +58,9 @@ func (rs *RenderingService) renderViaPhantomJS(ctx context.Context, opts Opts) (
...
@@ -58,7 +58,9 @@ func (rs *RenderingService) renderViaPhantomJS(ctx context.Context, opts Opts) (
cmdArgs
=
append
([]
string
{
fmt
.
Sprintf
(
"--output-encoding=%s"
,
opts
.
Encoding
)},
cmdArgs
...
)
cmdArgs
=
append
([]
string
{
fmt
.
Sprintf
(
"--output-encoding=%s"
,
opts
.
Encoding
)},
cmdArgs
...
)
}
}
commandCtx
,
_
:=
context
.
WithTimeout
(
ctx
,
opts
.
Timeout
+
time
.
Second
*
2
)
commandCtx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
opts
.
Timeout
+
time
.
Second
*
2
)
defer
cancel
()
cmd
:=
exec
.
CommandContext
(
commandCtx
,
binPath
,
cmdArgs
...
)
cmd
:=
exec
.
CommandContext
(
commandCtx
,
binPath
,
cmdArgs
...
)
cmd
.
Stderr
=
cmd
.
Stdout
cmd
.
Stderr
=
cmd
.
Stdout
...
...
pkg/tsdb/elasticsearch/client/client.go
View file @
8b32dc58
...
@@ -218,7 +218,7 @@ func (c *baseClientImpl) ExecuteMultisearch(r *MultiSearchRequest) (*MultiSearch
...
@@ -218,7 +218,7 @@ func (c *baseClientImpl) ExecuteMultisearch(r *MultiSearchRequest) (*MultiSearch
elapsed
:=
time
.
Now
()
.
Sub
(
start
)
elapsed
:=
time
.
Now
()
.
Sub
(
start
)
clientLog
.
Debug
(
"Decoded multisearch json response"
,
"took"
,
elapsed
)
clientLog
.
Debug
(
"Decoded multisearch json response"
,
"took"
,
elapsed
)
msr
.
s
tatus
=
res
.
StatusCode
msr
.
S
tatus
=
res
.
StatusCode
return
&
msr
,
nil
return
&
msr
,
nil
}
}
...
...
pkg/tsdb/elasticsearch/client/models.go
View file @
8b32dc58
...
@@ -74,7 +74,7 @@ type MultiSearchRequest struct {
...
@@ -74,7 +74,7 @@ type MultiSearchRequest struct {
// MultiSearchResponse represents a multi search response
// MultiSearchResponse represents a multi search response
type
MultiSearchResponse
struct
{
type
MultiSearchResponse
struct
{
s
tatus
int
`json:"status,omitempty"`
S
tatus
int
`json:"status,omitempty"`
Responses
[]
*
SearchResponse
`json:"responses"`
Responses
[]
*
SearchResponse
`json:"responses"`
}
}
...
...
scripts/circle-test-backend.sh
View file @
8b32dc58
...
@@ -13,9 +13,6 @@ function exit_if_fail {
...
@@ -13,9 +13,6 @@ function exit_if_fail {
echo
"running go fmt"
echo
"running go fmt"
exit_if_fail
test
-z
"
$(
gofmt
-s
-l
./pkg | tee /dev/stderr
)
"
exit_if_fail
test
-z
"
$(
gofmt
-s
-l
./pkg | tee /dev/stderr
)
"
echo
"running go vet"
exit_if_fail
test
-z
"
$(
go vet ./pkg/... | tee /dev/stderr
)
"
echo
"building backend with install to cache pkgs"
echo
"building backend with install to cache pkgs"
exit_if_fail
time
go install ./pkg/cmd/grafana-server
exit_if_fail
time
go install ./pkg/cmd/grafana-server
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment