mirror of
https://github.com/prometheus/prometheus.git
synced 2026-06-20 13:59:23 -04:00
Some checks are pending
buf.build / lint and publish (push) Waiting to run
CI / Go tests (push) Waiting to run
CI / More Go tests (push) Waiting to run
CI / Go tests for Prometheus upgrades and downgrades (push) Waiting to run
CI / Go tests with previous Go version (push) Waiting to run
CI / UI tests (push) Waiting to run
CI / Go tests on Windows (push) Waiting to run
CI / Mixins tests (push) Waiting to run
CI / Compliance testing (push) Waiting to run
CI / Build Prometheus for common architectures (push) Waiting to run
CI / Build Prometheus for all architectures (push) Waiting to run
CI / Report status of build Prometheus for all architectures (push) Blocked by required conditions
CI / Check generated parser (push) Waiting to run
CI / golangci-lint (push) Waiting to run
CI / fuzzing (push) Waiting to run
CI / codeql (push) Waiting to run
CI / Publish main branch artifacts (push) Blocked by required conditions
CI / Publish release artefacts (push) Blocked by required conditions
CI / Publish UI on npm Registry (push) Blocked by required conditions
govulncheck / Run govulncheck (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
49 lines
1.7 KiB
YAML
49 lines
1.7 KiB
YAML
name: fuzzing
|
|
on:
|
|
workflow_call:
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
fuzzing:
|
|
name: Run Go Fuzz Tests
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
fuzz_test: [[FuzzParseMetricText, FuzzParseOpenMetric], [FuzzParseMetricSelector, FuzzParseExpr], [FuzzXORChunk, FuzzXOR2Chunk], [FuzzParseProtobuf]]
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- name: Install Go
|
|
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
|
with:
|
|
go-version: 1.26.x
|
|
- name: Run Fuzzing
|
|
run: |
|
|
for fuzz_test in ${{ join(matrix.fuzz_test, ' ') }}; do
|
|
go test -fuzz="${fuzz_test}$" -fuzztime=4m ./util/fuzzing
|
|
done
|
|
id: fuzz
|
|
- name: Upload Crash Artifacts
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
if: failure()
|
|
with:
|
|
name: fuzz-artifacts-${{ join(matrix.fuzz_test, '-') }}
|
|
path: util/fuzzing/testdata/fuzz/
|
|
fuzzing_status:
|
|
# This status check aggregates the individual matrix jobs of the fuzzing
|
|
# step into a final status. Fails if a single matrix job fails, succeeds if
|
|
# all matrix jobs succeed.
|
|
name: Fuzzing
|
|
runs-on: ubuntu-latest
|
|
needs: [fuzzing]
|
|
if: always()
|
|
steps:
|
|
- name: Successful fuzzing
|
|
if: ${{ !(contains(needs.*.result, 'failure')) && !(contains(needs.*.result, 'cancelled')) }}
|
|
run: exit 0
|
|
- name: Failing or cancelled fuzzing
|
|
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
|
|
run: exit 1
|