Skip to content

ci: make lint PR-only with concurrency - #288

Merged
DevSecNinja merged 1 commit into
mainfrom
ci/lint-pr-only
Jul 27, 2026
Merged

ci: make lint PR-only with concurrency#288
DevSecNinja merged 1 commit into
mainfrom
ci/lint-pr-only

Conversation

@DevSecNinja

Copy link
Copy Markdown
Owner

What

Make the lint-caller.yml workflow PR-only and add concurrency cancel-in-progress.

Why

Per our own convention (docs/workflow-trigger-conventions.md, already applied in truenas-apps):

Branch protection makes the merge commit identical to the last PR head, so re-running on push to main is duplicate work.

This workflow still triggered on both pull_request and push: main, doubling lint runs per change, and had no concurrency group so superseded in-progress runs weren't cancelled.

Impact

Discovered while analysing the July usage report: lint-caller.yml was the single largest Actions consumer (~$17.5 gross / ~2,900 min for the period), mostly from Renovate PRs. Removing the redundant push-to-main run eliminates a full duplicate lint per merge; the concurrency group cancels superseded runs on rapid pushes.

Safety

No coverage loss — PR checks still gate every merge via branch protection. workflow_dispatch retained for manual runs.

Branch protection makes the merge commit identical to the last PR head,
so re-running lint on push to main is duplicate work. Drop the push:main
trigger and add concurrency cancel-in-progress, matching the convention
in docs/workflow-trigger-conventions.md (already applied in truenas-apps).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c841a61b-f7c4-44bc-bc0a-8428666bcf27
@DevSecNinja
DevSecNinja merged commit bc38378 into main Jul 27, 2026
18 checks passed
@DevSecNinja
DevSecNinja deleted the ci/lint-pr-only branch July 27, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant