Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.8.1 in /documentation/examples/remote_storage #110

Open
wants to merge 151 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
b297520
Add agent mode identifier
SuperQ Nov 1, 2021
5b73e51
cut v2.35.0-rc0 (#10543)
Nexucis Apr 8, 2022
8abef6d
Proper support for go modules. (#10486)
roidelapluie Apr 12, 2022
1186974
Publish UI release artefact in our github releases (#10577)
roidelapluie Apr 12, 2022
dc8b673
Build the UI when making UI tarball (#10578)
roidelapluie Apr 12, 2022
a5e75f3
changelog: Add missing enhancements (#10583)
roidelapluie Apr 13, 2022
a1aa372
uber.go/automaxprocs package upgrade for cgroups2 support (#10584)
TomasKohout Apr 13, 2022
286dfc7
tsdb/agent: port grafana/agent#676 (#10587)
rfratto Apr 14, 2022
580e852
scrape: Update error message for label limits
slashpai Mar 9, 2022
4d8b775
Changelog: add missing enhancement (#10593)
roidelapluie Apr 14, 2022
db8c550
Revoke storing target and metadata cache in context. (#10590)
roidelapluie Apr 14, 2022
b4d0dcb
Tracing/GRPC: Set TLS credentials only when insecure is false.
roidelapluie Apr 14, 2022
ec3d020
Pass the correct context to staleness Appender (#10588)
gouthamve Apr 14, 2022
5b80eaa
cut v2.35.0-rc1 (#10596)
Nexucis Apr 14, 2022
624967f
Add note about Prometheus as a library (#10594)
roidelapluie Apr 14, 2022
685ce99
Merge pull request #10599 from prometheus/release-2.35
roidelapluie Apr 14, 2022
4deb1a9
Amend Protobuf docstrings referring to model/ packages
tpaschalis Apr 15, 2022
40c1efe
tsdb/agent: Ignore duplicate exemplars (#10595)
tpaschalis Apr 18, 2022
af0f6da
Fix chunk overflow appending samples at a variable rate (#10607)
colega Apr 20, 2022
a11e73e
Fix a deadlock between Batch and FlushAndShutdown (#10608)
csmarchbanks Apr 20, 2022
09da881
Support overriding minimum TLS version
roidelapluie Apr 20, 2022
b2c2143
Fix exemplar docs. (#10609)
JokerQueue Apr 21, 2022
6656cd2
cut v2.35.0 (#10614)
Nexucis Apr 21, 2022
9fcf0b3
Merge pull request #10616 from prometheus/release-2.35
roidelapluie Apr 21, 2022
fc3f1b8
Move issue template to yml; add form. (#10576)
roidelapluie Apr 22, 2022
64fc3e5
Split go1.18 and changelog (#10622)
roidelapluie Apr 26, 2022
6854931
Support numerical labels in PuppetDB service discovery (#10633)
heapdavid Apr 26, 2022
d8ca9aa
Allow setting the search term on alerts, targets, and discovery pages…
AndreSPy1 Apr 26, 2022
e2ede28
refactor: move from io/ioutil to io and os packages (#10528)
mmorel-35 Apr 27, 2022
74e5b59
add stripDomain to template function (#10475)
fatsheep9146 Apr 27, 2022
9558b9b
Examples: explain what the duration in brackets means (#10589)
tredondo Apr 27, 2022
5d7b929
README.md: Update Godoc link
beorn7 Apr 27, 2022
01d90ae
README.md: Cease to call the React UI "new experimental"
beorn7 Apr 27, 2022
f76104d
Merge pull request #10635 from prometheus/beorn7/doc
beorn7 Apr 27, 2022
854d671
chore: remove unused file assets_generate.go (#10638)
arajkumar Apr 28, 2022
453e8a6
Release Shepherd for 2.37 LTS (#10637)
roidelapluie Apr 29, 2022
b2e2751
build(deps): bump google.golang.org/api from 0.74.0 to 0.77.0 (#10647)
dependabot[bot] May 2, 2022
621afdc
build(deps): bump bufbuild/buf-setup-action from 1.3.1 to 1.4.0 (#10646)
dependabot[bot] May 2, 2022
d066b9c
build(deps): bump k8s.io/api from 0.23.5 to 0.23.6 (#10649)
dependabot[bot] May 2, 2022
51eb754
build(deps): bump github.com/linode/linodego from 1.4.0 to 1.4.1 (#10…
dependabot[bot] May 2, 2022
0e938f8
build(deps): bump go.opentelemetry.io/otel from 1.6.1 to 1.7.0 (#10653)
dependabot[bot] May 2, 2022
4e63741
build(deps): bump google.golang.org/grpc from 1.45.0 to 1.46.0 (#10648)
dependabot[bot] May 2, 2022
71dbb4d
Add lowercase and uppercase relabel action (#10641)
roidelapluie May 3, 2022
8cc27af
fix markdown lint issues (#10591)
monotek May 3, 2022
dd5f9da
Update link for referenced CNCF code of conduct (#10664)
kakkoyun May 3, 2022
2381d7b
Send target and metadata cache in context (again) (#10636)
gouthamve May 3, 2022
0a30ac3
enable active search through dropped targets (#10668)
Nexucis May 4, 2022
b9d4260
Add deps to golangci-lint (#10659)
SuperQ May 4, 2022
4b9f248
unit tests: make all Labels sorted alphabetically (#10532)
bboreham May 4, 2022
41630b8
Add hidden flag to configure discovery loop interval (#10634)
ahurtaud May 5, 2022
88f9b24
Correctly format error message (#10669)
prymitive May 5, 2022
a62a9e4
Relax yamllint
SuperQ May 6, 2022
eb1617e
Merge pull request #10670 from prometheus/superq/relax_yaml
SuperQ May 6, 2022
78f2645
test(tsdb): break up repeated test to avoid timeout (#10671)
matthiasr May 8, 2022
c40e269
feat: add linode SD failure count metric (#10673)
tjhop May 11, 2022
6e3a0ef
Make necessary change to compile promql parser to wasm (#10683)
roidelapluie May 12, 2022
6bc5186
run sequentially the unit test in codemirror (#10692)
Nexucis May 13, 2022
ff3ba13
bump @nexucis/kvsearch v0.6.0 (#10702)
Nexucis May 17, 2022
707600d
web: Make the dev proxy work with newer Node.js versions (#10690)
fatelei May 17, 2022
4ece548
bump nexucis deps (#10713)
Nexucis May 20, 2022
89de30a
Avoid reallocating map in MatchLabels (#10715)
prymitive May 20, 2022
e22b54e
Adds day_of_year function to PromQL
IvoGoman May 20, 2022
ce3bc81
Add service discovery for IONOS Cloud (#10514)
xinau May 20, 2022
42f574d
Remove "This function was added in Prometheus 2.0" (#10719)
roidelapluie May 20, 2022
d3c9c4f
Stop rule manager before TSDB is stopped (#10680)
prymitive May 20, 2022
af5ea21
promtool: support matchers when querying label values (#10727)
May 23, 2022
8a01943
refactor (package config): move from github.com/pkg/errors to 'errors…
mmorel-35 May 23, 2022
070e409
Add prometheus_ready metric (#10682)
prymitive May 23, 2022
29b5844
Update Go minimum version
SuperQ May 23, 2022
44e5f22
Move prometheus_ready metric to web package (#10729)
prymitive May 23, 2022
0d94cdf
rules: remove classic UI code (#10730)
roidelapluie May 23, 2022
5919eb1
Merge pull request #10728 from prometheus/superq/bump_go_min
SuperQ May 23, 2022
4c13d30
build(deps): bump github.com/fsnotify/fsnotify from 1.5.1 to 1.5.4
dependabot[bot] May 23, 2022
7dac025
Merge pull request #10656 from prometheus/dependabot/go_modules/githu…
SuperQ May 24, 2022
36eee11
refactor (package cmd): move from github.com/pkg/errors to 'errors' a…
mmorel-35 May 24, 2022
ddedb86
Remove Jessica from maintainers list (#10731)
roidelapluie May 24, 2022
9570924
Merge pull request #9638 from prometheus/superq/agentMode
SuperQ May 24, 2022
5722e6e
Update OpenTracing
roidelapluie May 24, 2022
d11c418
Update Go dependencies
metalmatze May 24, 2022
3ef153b
vultr integration
ddymko May 24, 2022
c9d4e5f
vultr: minor fixups
roidelapluie May 24, 2022
1afe72f
vultr: ram is in mb, not bytes
roidelapluie May 24, 2022
b532be6
Update release documentation
SuperQ Jan 6, 2022
4ac961c
build(deps): bump google.golang.org/api from 0.77.0 to 0.80.0
dependabot[bot] May 24, 2022
6ee4b52
build(deps): bump github.com/Azure/azure-sdk-for-go
dependabot[bot] May 24, 2022
8f0e5b4
Merge pull request #10132 from prometheus/superq/dependabot_doc
SuperQ May 25, 2022
3a56817
Rules: set otel status to ERROR when a rule fails (#10745)
roidelapluie May 25, 2022
d3cb390
Fix typo in symbol table size exceeded error message (#10746)
fpetkovski May 25, 2022
34820f5
Update CHANGELOG for v2.36
metalmatze May 25, 2022
ee37387
Merge pull request #10744 from metalmatze/release-2.36-changelog
metalmatze May 25, 2022
0826245
Preallocate Labels in labels.Builder (#10749)
prymitive May 25, 2022
10b677b
fix typo (#10696)
wsx864321 May 25, 2022
0505ba8
Fixed spacing causing "field credentials not found in type linode.pla…
rl0nergan May 25, 2022
fba3e84
Check syntax of example configurations (#10753)
dgl May 26, 2022
57f4aab
Update godoc links and remove note about TSDB versioning (#10754)
dgl May 26, 2022
4dc1481
Cut v2.36.0
metalmatze May 30, 2022
d48f381
Merge pull request #10776 from metalmatze/cut-v2.36.0
metalmatze May 30, 2022
1dd247f
Remote Write: Rename confusing `walDir` parameter to `dir` (#10464)
matej-g May 31, 2022
69beb3f
fix: update docs to reflect new go 1.17 version minimum (#10780)
tjhop May 31, 2022
31cffd9
Fix a small typo (#10771)
hs0210 Jun 1, 2022
b84494d
Update go-yaml v3 to 3.0.1 (#10786)
dgl Jun 2, 2022
d713e39
build(deps): bump golangci/golangci-lint-action from 3.1.0 to 3.2.0 (…
dependabot[bot] Jun 2, 2022
03e5603
build(deps): bump bufbuild/buf-setup-action from 1.4.0 to 1.5.0 (#10790)
dependabot[bot] Jun 2, 2022
4cb32a0
Remove go version wording from changelog (#10778)
roidelapluie Jun 2, 2022
c7298b4
build(deps): bump github.com/hashicorp/consul/api from 1.12.0 to 1.13…
dependabot[bot] Jun 3, 2022
ad198b0
build(deps): bump github.com/linode/linodego from 1.5.0 to 1.6.0 (#10…
dependabot[bot] Jun 3, 2022
8801b01
Merge back Release 2.36 (#10803)
roidelapluie Jun 3, 2022
12de742
refactor (documentation): move from github.com/pkg/errors to 'errors'…
mmorel-35 Jun 3, 2022
f43749e
refactor (discovery): move from github.com/pkg/errors to 'errors' and…
mmorel-35 Jun 3, 2022
636f7e5
build(deps): bump k8s.io/apimachinery from 0.24.0 to 0.24.1 (#10806)
dependabot[bot] Jun 3, 2022
355b8bc
Add --lint-fatal option (#10815)
dgl Jun 3, 2022
b11062b
Don't count added labels when initializing slice (#10756)
prymitive Jun 4, 2022
143a760
Hetzner SD: Implement set directory (#10813)
roidelapluie Jun 5, 2022
2e2c014
Labels: optimise creation of signature with/without labels (#10667)
bboreham Jun 7, 2022
a567311
Export TSDB status structs (#10783)
fpetkovski Jun 7, 2022
7a78897
Improve reliability of Kubernetes SD tests (#10761)
fpetkovski Jun 7, 2022
9f79a6f
tsdb: faster CRC check by avoiding allocations (#10789)
bboreham Jun 8, 2022
15aeade
enable dependabot for github.com/prometheus/prometheus/documentation/…
mmorel-35 Jun 8, 2022
554f3f3
refactor (template): move from github.com/pkg/errors to 'errors' and …
mmorel-35 Jun 8, 2022
47e13b2
refactor (tracing): move from github.com/pkg/errors to 'errors' and '…
mmorel-35 Jun 8, 2022
0906f2e
refactor (promql): move from github.com/pkg/errors to 'errors' and 'f…
mmorel-35 Jun 8, 2022
2bf9d26
build(deps): bump k8s.io/api from 0.24.0 to 0.24.1 (#10812)
dependabot[bot] Jun 8, 2022
80eded0
build(deps): bump google.golang.org/api from 0.80.0 to 0.83.0 (#10830)
dependabot[bot] Jun 8, 2022
2832270
build(deps): bump github.com/aws/aws-sdk-go from 1.44.20 to 1.44.29 (…
dependabot[bot] Jun 8, 2022
6bd75d5
build(deps): bump github.com/stretchr/testify (#10829)
dependabot[bot] Jun 8, 2022
eef02a0
build(deps): bump github.com/prometheus/client_golang (#10828)
dependabot[bot] Jun 8, 2022
e4a09f2
uyuni: Use default HTTP client and set relative paths (#10814)
roidelapluie Jun 8, 2022
c92d571
build(deps): bump github.com/gophercloud/gophercloud (#10834)
dependabot[bot] Jun 8, 2022
7b8ed5d
build(deps): bump github.com/prometheus/common (#10826)
dependabot[bot] Jun 8, 2022
c2d6acd
build(deps): bump github.com/vultr/govultr/v2 from 2.17.0 to 2.17.1 (…
dependabot[bot] Jun 8, 2022
867d3bd
build(deps): bump github.com/go-kit/log (#10827)
dependabot[bot] Jun 8, 2022
b8724ca
Fix UI build (#10842)
roidelapluie Jun 9, 2022
f2ba2a0
Fix UI build (#10843)
roidelapluie Jun 9, 2022
8ac4e50
Add --lint-fatal option (#10815) (#10840)
roidelapluie Jun 9, 2022
e5b7942
Add v2.36.1 CHANGELOG and VERSION update
metalmatze Jun 9, 2022
3c0a100
Merge pull request #10848 from metalmatze/release-2.36.1
metalmatze Jun 9, 2022
00982ce
build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.7.2
dependabot[bot] Jun 9, 2022
a84c472
Merge back `release-2.36` (#10850)
roidelapluie Jun 9, 2022
542b9ec
tsdb: reduce sleep time when reading WAL (#10859)
bboreham Jun 12, 2022
e166cf4
use npm workspace flag for the build instead of manually navigate thr…
Nexucis Jun 13, 2022
eb07db1
Merge pull request #10835 from prometheus/dependabot/go_modules/githu…
roidelapluie Jun 13, 2022
f4ea070
build(deps): bump k8s.io/client-go from 0.24.0 to 0.24.1
dependabot[bot] Jun 13, 2022
f609b7b
remove GO111MODULE and GOVENDOR usage (#10836)
Nexucis Jun 13, 2022
229e857
Merge pull request #10795 from prometheus/dependabot/go_modules/k8s.i…
roidelapluie Jun 13, 2022
4f37910
Drop extra string held in relabel.Regexp struct (#10846)
tpaschalis Jun 13, 2022
5184f49
put every packages under the prometheus-io organization (#10849)
Nexucis Jun 13, 2022
3dad28f
UI: fix build (#10862)
Nexucis Jun 13, 2022
5bd761f
Merge pull request #10857 from pstibrany/fix-errors-handling
pstibrany Jun 13, 2022
5d1756c
Upgrade codemirror and lezer to the latest version (#10841)
Nexucis Jun 13, 2022
f57d534
Merge branch 'prometheus:main' into main
dovholuknf Jun 13, 2022
df1187c
build(deps): bump github.com/stretchr/testify
dependabot[bot] Nov 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
GO111MODULE: "on"
- run: go test ./tsdb/ -test.tsdb-isolation=false
- run: make -C documentation/examples/remote_storage
- run: make -C documentation/examples
- prometheus/check_proto:
version: "3.15.8"
- prometheus/store_artifact:
Expand All @@ -58,13 +59,13 @@ jobs:
keys:
- v3-npm-deps-{{ checksum "web/ui/package-lock.json" }}
- v3-npm-deps-
- run: make ui-install
- run: make assets-tarball
- run: make ui-lint
- run: make ui-build-module
- run: make ui-test
- run: make assets-tarball -o assets
- store_artifacts:
path: web/ui/static.tar.gz
- persist_to_workspace:
root: .
paths:
- .tarballs
- save_cache:
key: v3-npm-deps-{{ checksum "web/ui/package-lock.json" }}
paths:
Expand Down Expand Up @@ -148,7 +149,7 @@ workflows:
promu_opts: "-p linux/amd64 -p windows/amd64 -p linux/arm64 -p darwin/amd64 -p darwin/arm64 -p linux/386"
filters:
tags:
ignore: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
ignore: /^v2(\.[0-9]+){2}(-.+|[^-.]*)$/
branches:
ignore: /^(main|release-.*|.*build-all.*)$/
- prometheus/build:
Expand All @@ -158,7 +159,7 @@ workflows:
branches:
only: /^(main|release-.*|.*build-all.*)$/
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
only: /^v2(\.[0-9]+){2}(-.+|[^-.]*)$/
- prometheus/publish_main:
context: org-context
requires:
Expand All @@ -177,7 +178,7 @@ workflows:
- build_all
filters:
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
only: /^v2(\.[0-9]+){2}(-.+|[^-.]*)$/
branches:
ignore: /.*/
image: circleci/golang:1-node
Expand Down
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
/discovery/kubernetes @brancz
/tsdb @codesome
/promql @codesome @roidelapluie
/cmd/promtool @jessicagreben @dgl
/cmd/promtool @dgl
57 changes: 0 additions & 57 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

74 changes: 74 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---
name: Bug report
description: Create a report to help us improve.
body:
- type: markdown
attributes:
value: |
Thank you for opening a bug report for Prometheus.

Please do *NOT* ask support questions in Github issues.

If your issue is not a feature request or bug report use our [community support](https://prometheus.io/community/).

There is also [commercial support](https://prometheus.io/support-training/) available.
- type: textarea
attributes:
label: What did you do?
description: Please provide steps for us to reproduce this issue.
validations:
required: true
- type: textarea
attributes:
label: What did you expect to see?
- type: textarea
attributes:
label: What did you see instead? Under which circumstances?
validations:
required: true
- type: markdown
attributes:
value: |
## Environment
- type: input
attributes:
label: System information
description: insert output of `uname -srm` here, or operating system version
placeholder: e.g. Linux 5.16.15 x86_64
- type: textarea
attributes:
label: Prometheus version
description: Insert output of `prometheus --version` here.
render: text
placeholder: |
e.g. prometheus, version 2.23.0 (branch: HEAD, revision: 26d89b4b0776fe4cd5a3656dfa520f119a375273)
build user: root@37609b3a0a21
build date: 20201126-10:56:17
go version: go1.15.5
platform: linux/amd64
- type: textarea
attributes:
label: Prometheus configuration file
description: Insert relevant configuration here. Don't forget to remove secrets.
render: yaml
- type: textarea
attributes:
label: Alertmanager version
description: Insert output of `alertmanager --version` here (if relevant to the issue).
render: text
placeholder: |
e.g. alertmanager, version 0.22.2 (branch: HEAD, revision: 44f8adc06af5101ad64bd8b9c8b18273f2922051)
build user: root@b595c7f32520
build date: 20210602-07:50:37
go version: go1.16.4
platform: linux/amd64
- type: textarea
attributes:
label: Alertmanager configuration file
description: Insert relevant configuration here. Don't forget to remove secrets.
render: yaml
- type: textarea
attributes:
label: Logs
description: Insert Prometheus and Alertmanager logs relevant to the issue here.
render: text
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ updates:
directory: "/"
schedule:
interval: "monthly"
- package-ecosystem: "gomod"
directory: "/documentation/examples/remote_storage"
schedule:
interval: "monthly"
- package-ecosystem: "npm"
directory: "/web/ui"
schedule:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/buf-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v1.3.1
- uses: bufbuild/buf-setup-action@v1.5.0
- uses: bufbuild/buf-lint-action@v1
with:
input: 'prompb'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/buf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v1.3.1
- uses: bufbuild/buf-setup-action@v1.5.0
- uses: bufbuild/buf-lint-action@v1
with:
input: 'prompb'
Expand Down
45 changes: 9 additions & 36 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
---
name: "CodeQL"

on:
push:
branches: [main, release-*]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: "26 14 * * 1"
Expand All @@ -24,44 +13,28 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
security-events: write

strategy:
fail-fast: false
matrix:
language: ["go", "javascript"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '>=1.17 <1.18'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
5 changes: 4 additions & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.18.x
- name: Install snmp_exporter/generator dependencies
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
if: github.repository == 'prometheus/snmp_exporter'
- name: Lint
uses: golangci/golangci-lint-action@v3.1.0
uses: golangci/golangci-lint-action@v3.2.0
with:
version: v1.45.2
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ linters:
- misspell

issues:
max-same-issues: 0
exclude-rules:
- path: _test.go
linters:
Expand All @@ -29,6 +30,7 @@ linters-settings:
- sync/atomic: "Use go.uber.org/atomic instead of sync/atomic"
- github.com/stretchr/testify/assert: "Use github.com/stretchr/testify/require instead of github.com/stretchr/testify/assert"
- github.com/go-kit/kit/log: "Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
- io/ioutil: "Use corresponding 'os' or 'io' functions instead."
- regexp: "Use github.com/grafana/regexp instead of regexp"
errcheck:
exclude: scripts/errcheck_excludes.txt
Expand Down
1 change: 1 addition & 0 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ rules:
document-start: disable
indentation:
spaces: consistent
indent-sequences: consistent
key-duplicates:
ignore: |
config/testdata/section_key_dup.bad.yml
Expand Down
Loading