11---
22version : 2.1
33orbs :
4- prometheus : prometheus/prometheus@0.16.0
4+ prometheus : prometheus/prometheus@0.17.1
55executors :
66 # Whenever the Go version is updated here, .promu.yml and .promu-cgo.yml
77 # should also be updated.
88 golang :
99 docker :
10- - image : cimg/go:1.19
10+ - image : cimg/go:1.22
1111 arm :
1212 machine :
13- image : ubuntu-2004 :current
13+ image : ubuntu-2204 :current
1414 resource_class : arm.medium
1515
1616jobs :
2828 - checkout
2929 - run : uname -a
3030 - run : make test-e2e
31- codespell :
32- docker :
33- - image : circleci/python
34- steps :
35- - checkout
36- - run : sudo pip install codespell
37- - run : codespell --skip=".git,./vendor,ttar,go.mod,go.sum,*pem,./collector/fixtures" -I scripts/codespell_ignore.txt
3831 test_mixins :
3932 executor : golang
4033 steps :
@@ -49,13 +42,23 @@ jobs:
4942 - run : git diff --exit-code
5043 build :
5144 machine :
52- image : ubuntu-2004:202101-01
45+ image : ubuntu-2204:current
5346 parallelism : 3
5447 steps :
5548 - prometheus/setup_environment
56- - run : docker run --privileged linuxkit/binfmt:v0.8
49+ - run : docker run --privileged linuxkit/binfmt:af88a591f9cc896a52ce596b9cf7ca26a061ef97
5750 - run : promu crossbuild -v --parallelism $CIRCLE_NODE_TOTAL --parallelism-thread $CIRCLE_NODE_INDEX
5851 - run : promu --config .promu-cgo.yml crossbuild -v --parallelism $CIRCLE_NODE_TOTAL --parallelism-thread $CIRCLE_NODE_INDEX
52+ # sign the darwin build so it doesn't get SIGKILLed on start, see: https://github.com/prometheus/node_exporter/issues/2539
53+ - run :
54+ command : |
55+ if [[ -f "$(pwd)/.build/darwin-arm64/node_exporter" ]]; then
56+ promu codesign "$(pwd)/.build/darwin-arm64/node_exporter"
57+ fi
58+
59+ if [[ -f "$(pwd)/.build/darwin-amd64/node_exporter" ]]; then
60+ promu codesign "$(pwd)/.build/darwin-amd64/node_exporter"
61+ fi
5962 - persist_to_workspace :
6063 root : .
6164 paths :
6568 destination : /build
6669 test_docker :
6770 machine :
68- image : ubuntu-2204:2022.04.2
71+ image : ubuntu-2204:current
6972 environment :
70- DOCKER_TEST_IMAGE_NAME : quay.io/prometheus/golang-builder:1.18 -base
73+ DOCKER_TEST_IMAGE_NAME : quay.io/prometheus/golang-builder:1.22 -base
7174 REPO_PATH : github.com/prometheus/node_exporter
7275 steps :
7376 - prometheus/setup_environment
@@ -105,10 +108,6 @@ workflows:
105108 filters :
106109 tags :
107110 only : /.*/
108- - codespell :
109- filters :
110- tags :
111- only : /.*/
112111 - test_docker :
113112 requires :
114113 - test
0 commit comments