Skip to content

build(deps): bump github.com/prometheus/client_golang from 1.19.0 to 1.19.1 #2996

build(deps): bump github.com/prometheus/client_golang from 1.19.0 to 1.19.1

build(deps): bump github.com/prometheus/client_golang from 1.19.0 to 1.19.1 #2996

Workflow file for this run

name: Go
on: pull_request
permissions:
contents: read
jobs:
meta:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
- uses: tj-actions/changed-files@0874344d6ebbaa00a27da73276ae7162fadcaf69
id: changed
with:
files: |
.github/workflows/go.yml
go.sum
**/*.go
**/*.golden
**/charts/**
files_ignore: |
**/Chart.yaml
**/README*
outputs:
changed: ${{ steps.changed.outputs.any_changed }}
go-lint:
needs: meta
if: needs.meta.outputs.changed == 'true'
timeout-minutes: 10
runs-on: ubuntu-22.04
container: ghcr.io/linkerd/dev:v43-go
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
- run: just go-lint --verbose --timeout=10m
go-format:
needs: meta
if: needs.meta.outputs.changed == 'true'
timeout-minutes: 10
runs-on: ubuntu-22.04
container: ghcr.io/linkerd/dev:v43-go
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
- run: just go-fmt
go-test:
needs: meta
if: needs.meta.outputs.changed == 'true'
timeout-minutes: 10
runs-on: ubuntu-22.04
container: ghcr.io/linkerd/dev:v43-go
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
- run: just go-fetch
- run: just go-test
# There's currently one flakey test we want to retry in particular:
# TestEndpointProfileTranslator/Handles_overflow
go-test-retry:
needs: go-test
if: failure() && fromJSON(github.run_attempt) < 3
runs-on: ubuntu-22.04
permissions:
actions: write
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
GH_DEBUG: api
REF: ${{ github.head_ref }}
steps:
- run: gh workflow run rerun.yml -F 'run_id=${{ github.run_id }}' --ref "$REF"
go-ok:
needs: [go-lint, go-format, go-test]
if: always()
runs-on: ubuntu-22.04
steps:
- name: Results
run: |
echo 'go-lint: ${{ needs.go-lint.result }}'
echo 'go-format: ${{ needs.go-format.result }}'
echo 'go-test: ${{ needs.go-test.result }}'
- name: Verify jobs
# All jobs must succeed or be skipped.
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1