Skip to content

Commit

Permalink
Use new build image 0.20.3 (grafana#5904)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaudum authored Apr 22, 2022
1 parent 9cef86b commit b6ce382
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,35 +40,35 @@ steps:
- make BUILD_IN_CONTAINER=false check-drone-drift
depends_on:
- clone
image: grafana/loki-build-image:0.20.1
image: grafana/loki-build-image:0.20.3
name: check-drone-drift
- commands:
- make BUILD_IN_CONTAINER=false check-generated-files
depends_on:
- clone
image: grafana/loki-build-image:0.20.1
image: grafana/loki-build-image:0.20.3
name: check-generated-files
- commands:
- make BUILD_IN_CONTAINER=false test
depends_on:
- clone
- check-generated-files
image: grafana/loki-build-image:0.20.1
image: grafana/loki-build-image:0.20.3
name: test
- commands:
- make BUILD_IN_CONTAINER=false lint
depends_on:
- clone
- check-generated-files
image: grafana/loki-build-image:0.20.1
image: grafana/loki-build-image:0.20.3
name: lint
- commands:
- make BUILD_IN_CONTAINER=false check-mod
depends_on:
- clone
- test
- lint
image: grafana/loki-build-image:0.20.1
image: grafana/loki-build-image:0.20.3
name: check-mod
- commands:
- apk add make bash && make lint-scripts
Expand All @@ -79,19 +79,19 @@ steps:
depends_on:
- clone
- check-generated-files
image: grafana/loki-build-image:0.20.1
image: grafana/loki-build-image:0.20.3
name: loki
- commands:
- make BUILD_IN_CONTAINER=false validate-example-configs
depends_on:
- loki
image: grafana/loki-build-image:0.20.1
image: grafana/loki-build-image:0.20.3
name: validate-example-configs
- commands:
- make BUILD_IN_CONTAINER=false check-example-config-doc
depends_on:
- clone
image: grafana/loki-build-image:0.20.1
image: grafana/loki-build-image:0.20.3
name: check-example-config-doc
trigger:
event:
Expand Down Expand Up @@ -1118,6 +1118,6 @@ kind: secret
name: deploy_config
---
kind: signature
hmac: 64871d70248fbe43acab816fe107dc657442ded224b48779ac15f4559143a2c6
hmac: 6e2865a871f73b7bec7caad285b3999bfdab4e85e29606061663f4c9160cc35c

...
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ run:
tests: true

# list of build tags, all linters use it. Default is empty list.
build-tags:
build-tags: []

# which dirs to skip: they won't be analyzed;
# can use regexp here: generated.*, regexp is applied on full path;
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ DOCKER_IMAGE_DIRS := $(patsubst %/Dockerfile,%,$(DOCKERFILES))
BUILD_IN_CONTAINER ?= true

# ensure you run `make drone` after changing this
BUILD_IMAGE_VERSION := 0.20.1
BUILD_IMAGE_VERSION := 0.20.3

# Docker image info
IMAGE_PREFIX ?= grafana
Expand Down
2 changes: 1 addition & 1 deletion pkg/ingester/ingester.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ func (i *Ingester) Push(ctx context.Context, req *logproto.PushRequest) (*logpro
return &logproto.PushResponse{}, err
}

func (i *Ingester) GetOrCreateInstance(instanceID string) *instance {
func (i *Ingester) GetOrCreateInstance(instanceID string) *instance { //nolint:revive
inst, ok := i.getInstanceByID(instanceID)
if ok {
return inst
Expand Down
4 changes: 2 additions & 2 deletions pkg/storage/stores/tsdb/index/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ func newReader(b ByteSlice, c io.Closer) (*Reader, error) {
r.nameSymbols[off] = k
}

r.fingerprintOffsets, err = ReadFingerprintOffsetsTable(r.b, r.toc.FingerprintOffsets)
r.fingerprintOffsets, err = readFingerprintOffsetsTable(r.b, r.toc.FingerprintOffsets)
if err != nil {
return nil, errors.Wrap(err, "loading fingerprint offsets")
}
Expand Down Expand Up @@ -1522,7 +1522,7 @@ func ReadOffsetTable(bs ByteSlice, off uint64, f func([]string, uint64, int) err
return d.Err()
}

func ReadFingerprintOffsetsTable(bs ByteSlice, off uint64) (FingerprintOffsets, error) {
func readFingerprintOffsetsTable(bs ByteSlice, off uint64) (FingerprintOffsets, error) {
d := encoding.DecWrap(tsdb_enc.NewDecbufAt(bs, int(off), castagnoliTable))
cnt := d.Be32()
res := make(FingerprintOffsets, 0, int(cnt))
Expand Down

0 comments on commit b6ce382

Please sign in to comment.