Skip to content

ci: stop running lint in lint-php-cs unconditionally even if no changes#59318

Merged
nickvergessen merged 1 commit intomasterfrom
jtr/ci-perf-lint-php-cs-changes-bypass
Mar 31, 2026
Merged

ci: stop running lint in lint-php-cs unconditionally even if no changes#59318
nickvergessen merged 1 commit intomasterfrom
jtr/ci-perf-lint-php-cs-changes-bypass

Conversation

@joshtrichards
Copy link
Copy Markdown
Member

@joshtrichards joshtrichards commented Mar 30, 2026

  • Resolves: #

Summary

This workflow already runs changes and properly handles the lint result in the summary. However it did not have a conditional on the lint run itself, so it always runs lint (even when there are no relevant changes).

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards requested a review from a team as a code owner March 30, 2026 16:33
@joshtrichards joshtrichards added 3. to review Waiting for reviews CI labels Mar 30, 2026
@joshtrichards joshtrichards requested review from Altahrim, CarlSchwan, leftybournes and salmart-dev and removed request for a team March 30, 2026 16:33
@joshtrichards joshtrichards changed the title ci: stop running lint in lint-php-cs unconditionally even if no changes ci: stop running lint in lint-php-cs unconditionally even if no changes Mar 30, 2026
@joshtrichards joshtrichards added this to the Nextcloud 34 milestone Mar 30, 2026
@nickvergessen nickvergessen enabled auto-merge March 30, 2026 17:25
@susnux
Copy link
Copy Markdown
Contributor

susnux commented Mar 31, 2026

This is a shared workflow, does it also needs fixing in https://github.com/nextcloud/.github ?

@nickvergessen nickvergessen merged commit 5acf387 into master Mar 31, 2026
197 of 199 checks passed
@nickvergessen nickvergessen deleted the jtr/ci-perf-lint-php-cs-changes-bypass branch March 31, 2026 09:56
@joshtrichards
Copy link
Copy Markdown
Member Author

This is a shared workflow, does it also needs fixing in https://github.com/nextcloud/.github ?

Probably, but the shared one doesn't even have the changes job in it.

@nickvergessen
Copy link
Copy Markdown
Member

linting in most apps takes < 1s, so the additional queuing of changed + summary would cause more CI time waste

@nextcloud-bot nextcloud-bot mentioned this pull request Apr 27, 2026
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