Skip to content

ci: Skip ClusterFuzzLite fuzzing on non-Go PRs#6591

Merged
chenrui333 merged 4 commits into
runatlantis:mainfrom
jamengual:ci/clusterfuzzlite-skip-non-go
Jun 26, 2026
Merged

ci: Skip ClusterFuzzLite fuzzing on non-Go PRs#6591
chenrui333 merged 4 commits into
runatlantis:mainfrom
jamengual:ci/clusterfuzzlite-skip-non-go

Conversation

@jamengual

Copy link
Copy Markdown
Contributor

Summary

The ClusterFuzzLite workflow triggers on every PR to main/release-** with no path filter, so docs-only PRs (e.g. #6590) still build and run the Go fuzzers for ~10 minutes — pure wasted CI.

This adds a dorny/paths-filter gate (the same pattern the tester workflow uses) so fuzzing only runs when something fuzz-relevant changes:

  • **.go
  • go.*
  • .clusterfuzzlite/**
  • .github/workflows/clusterfuzzlite.yml

A skip-fuzzing no-op job covers the other case so the workflow still reports cleanly.

Test plan

  • CI-only change; YAML validated
  • Mirrors the existing dorny/paths-filter gating in test.yml

The ClusterFuzzLite workflow ran on every PR, including docs-only ones,
wasting CI time building and running fuzzers with no Go changes.

Add a dorny/paths-filter gate (matching the tester workflow) so fuzzing
only runs when Go sources, go.*, the .clusterfuzzlite config, or the
workflow itself change. A skip-fuzzing job reports for the other case.

Signed-off-by: PePe Amengual <2208324+jamengual@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 26, 2026 23:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reduces wasted CI time by gating the ClusterFuzzLite workflow so Go fuzzers only run on PRs that change Go code or fuzzing-related files, while still producing a clean workflow result for docs-only PRs.

Changes:

  • Add a dorny/paths-filter “changes” job to detect fuzz-relevant modifications.
  • Run the Fuzzing job only when the filter indicates relevant changes.
  • Add a skip-fuzzing no-op job for the non-relevant-change case to keep the workflow green.

Comment thread .github/workflows/clusterfuzzlite.yml
Comment thread .github/workflows/clusterfuzzlite.yml Outdated
Comment thread .github/workflows/clusterfuzzlite.yml
jamengual and others added 3 commits June 26, 2026 16:24
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: PePe Amengual <2208324+jamengual@users.noreply.github.com>
Use the same checkout and harden-runner pins as the rest of the workflow set for the new ClusterFuzzLite gating jobs.

Assisted-by: OpenAI <noreply@openai.com>
Signed-off-by: Rui Chen <rui@chenrui.dev>
@chenrui333 chenrui333 merged commit fb1d5c6 into runatlantis:main Jun 26, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants