Merge ~nobuto/grok-exporter-snap:go-mod into grok-exporter-snap:master

Proposed by Nobuto Murata
Status: Merged
Approved by: Eric Chen
Approved revision: f2e0c59e74c8abc5224052a3233667cfceec1b51
Merged at revision: f2e0c59e74c8abc5224052a3233667cfceec1b51
Proposed branch: ~nobuto/grok-exporter-snap:go-mod
Merge into: grok-exporter-snap:master
Diff against target: 20 lines (+2/-1)
2 files modified
.gitignore (+1/-0)
snapcraft.yaml (+1/-1)
Reviewer Review Type Date Requested Status
Erhan Sunar (community) Approve
Eric Chen Approve
BootStack Reviewers Pending
Review via email: mp+435638@code.launchpad.net

Commit message

Bump the source tag to RC5

go.mod and go.sum updates are necessary to build with later Go versions.
https://github.com/fstab/grok_exporter/issues/118

Description of the change

There seems to be memory consumption spike with the snap.

It was built against Go 1.14 and with the version there is a known "issue" with the Go version and memory management method was changed at 1.16 by default.

$ go version bin/grok_exporter
bin/grok_exporter: go1.14.1

https://go-review.googlesource.com/c/go/+/267137/3/doc/go1.16.html

Could you please build the snap with Go 1.16 or later and publish it into the edge channel for testing?

To post a comment you must log in.
Revision history for this message
Eric Chen (eric-chen) wrote :

LGTM.

There is no lint/unit/func test in grok-exporter-snap.
No mergebot or snap package receipt.
We need to build it manually or setup the snap receipt in LP later.

review: Approve
Revision history for this message
Erhan Sunar (esunar) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/.gitignore b/.gitignore
2new file mode 100644
3index 0000000..d294450
4--- /dev/null
5+++ b/.gitignore
6@@ -0,0 +1 @@
7+*.snap
8diff --git a/snapcraft.yaml b/snapcraft.yaml
9index c0e1bbf..6018bfa 100644
10--- a/snapcraft.yaml
11+++ b/snapcraft.yaml
12@@ -19,7 +19,7 @@ parts:
13 grok-exporter:
14 plugin: go
15 source: https://github.com/fstab/grok_exporter.git
16- source-tag: v${SNAPCRAFT_PROJECT_VERSION}.RC3
17+ source-tag: v${SNAPCRAFT_PROJECT_VERSION}.RC5
18 go-importpath: github.com/fstab/grok_exporter
19 build-packages:
20 - build-essential

Subscribers

People subscribed via source and target branches

to all changes: