Skip to content

Commit 1c94483

Browse files
Merge branch 'build' into dependabot/docker/sysdig/sysdig-mini-ubi-1.5.4
2 parents 6554604 + 71501dd commit 1c94483

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+6058
-1190
lines changed

.circleci/config.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,28 @@
22
version: 2.1
33

44
orbs:
5-
prometheus: prometheus/prometheus@0.16.0
5+
prometheus: prometheus/prometheus@0.17.1
66

77
executors:
88
# This must match .promu.yml.
99
golang:
1010
docker:
11-
- image: cimg/go:1.18
11+
- image: cimg/go:1.21
1212

1313
jobs:
1414
test:
1515
executor: golang
1616

1717
steps:
1818
- prometheus/setup_environment
19+
- run: GOHOSTARCH=386 GOARCH=386 make test
1920
- run: make
2021
- prometheus/store_artifact:
2122
file: postgres_exporter
2223

2324
integration:
2425
docker:
25-
- image: cimg/go:1.18
26+
- image: cimg/go:1.20
2627
- image: << parameters.postgres_image >>
2728
environment:
2829
POSTGRES_DB: circle_test
@@ -56,11 +57,12 @@ workflows:
5657
matrix:
5758
parameters:
5859
postgres_image:
59-
- circleci/postgres:10
6060
- circleci/postgres:11
6161
- circleci/postgres:12
6262
- circleci/postgres:13
63-
- cimg/postgres:14.1
63+
- cimg/postgres:14.9
64+
- cimg/postgres:15.4
65+
- cimg/postgres:16.0
6466
- prometheus/build:
6567
name: build
6668
parallelism: 3

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Teams can be specified as code owners as well. Teams should
2+
# be identified in the format @org/team-name. Teams must have
3+
# explicit write access to the repository. In this example,
4+
* @sysdiglabs/promcat

.github/workflows/build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ name: Build
55
on:
66
push:
77
branches: [ build ]
8+
workflow_dispatch:
9+
inputs:
10+
branch:
11+
description: 'Branch you want to build'
12+
required: true
13+
default: 'build'
814

915
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1016
jobs:

.github/workflows/golangci-lint.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---
2+
# This action is synced from https://github.com/prometheus/prometheus
13
name: golangci-lint
24
on:
35
push:
@@ -16,15 +18,15 @@ jobs:
1618
runs-on: ubuntu-latest
1719
steps:
1820
- name: Checkout repository
19-
uses: actions/checkout@v3
21+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2022
- name: install Go
21-
uses: actions/setup-go@v4
23+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
2224
with:
23-
go-version: 1.18.x
25+
go-version: 1.21.x
2426
- name: Install snmp_exporter/generator dependencies
2527
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
2628
if: github.repository == 'prometheus/snmp_exporter'
2729
- name: Lint
28-
uses: golangci/golangci-lint-action@v3.4.0
30+
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
2931
with:
30-
version: v1.52.2
32+
version: v1.54.2

.github/workflows/push-dry-run.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
jenkins_url: "https://jenkins.internal.sysdig.tools/"
1919
jenkins_user: '[email protected]'
2020
jenkins_token: ${{ secrets.JENKINS_BOT_API_TOKEN }}
21+
job_timeout: "300"
2122
job_name: "promcat/job/exporters/job/integrations-postgresql-exporter"
2223
job_params: |
2324
{

.github/workflows/push.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
jenkins_url: "https://jenkins.internal.sysdig.tools/"
2121
jenkins_user: '[email protected]'
2222
jenkins_token: ${{ secrets.JENKINS_BOT_API_TOKEN }}
23+
job_timeout: "300"
2324
job_name: "promcat/job/exporters/job/integrations-postgresql-exporter"
2425
job_params: |
2526
{

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
if: "!startswith(github.ref, 'refs/tags/v')"
1515
run: exit 78
1616
- name: build
17-
uses: sysdiglabs/exporter-builder@v0.6
17+
uses: sysdiglabs/exporter-builder@v1.1
1818
with:
1919
exporter: postgresql-exporter
20-
artifactory_token: ${{ secrets.ARTI_TOKEN }}
21-
artifactory_username: [email protected]
20+
artifactory_token: ${{ secrets.GAR_DEV_RW_JSON_KEY }}
21+
artifactory_username: _json_key
2222
sysdig_secure_token: ${{ secrets.SYSDIG_SECURE_TOKEN }}
2323
tag_name: ${{ github.event.release.tag_name }}
2424
target: ${{ matrix.docker }}
25-
repository: artifactory.internal.sysdig.com
25+
repository: us-docker.pkg.dev

.golangci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
---
2+
linters:
3+
enable:
4+
- misspell
5+
- revive
6+
27
issues:
38
exclude-rules:
49
- path: _test.go
@@ -7,4 +12,12 @@ issues:
712

813
linters-settings:
914
errcheck:
10-
exclude: scripts/errcheck_excludes.txt
15+
exclude-functions:
16+
# Never check for logger errors.
17+
- (github.com/go-kit/log.Logger).Log
18+
revive:
19+
rules:
20+
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter
21+
- name: unused-parameter
22+
severity: warning
23+
disabled: true

.promu.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
go:
22
# This must match .circle/config.yml.
3-
version: 1.18
3+
version: 1.21
44
repository:
55
path: github.com/prometheus-community/postgres_exporter
66
build:
77
binaries:
88
- name: postgres_exporter
99
path: ./cmd/postgres_exporter
10-
flags: -a -tags 'netgo static_build'
1110
ldflags: |
1211
-X github.com/prometheus/common/version.Version={{.Version}}
1312
-X github.com/prometheus/common/version.Revision={{.Revision}}

.yamllint

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,4 @@ rules:
2020
config/testdata/section_key_dup.bad.yml
2121
line-length: disable
2222
truthy:
23-
ignore: |
24-
.github/workflows/codeql-analysis.yml
25-
.github/workflows/funcbench.yml
26-
.github/workflows/fuzzing.yml
27-
.github/workflows/prombench.yml
28-
.github/workflows/golangci-lint.yml
23+
check-keys: false

0 commit comments

Comments
 (0)