Skip to content

ci: remove duplicate psalm workflow - #21

Merged
printminion-co merged 1 commit into
mainfrom
chore/remove-duplicate-psalm-workflow
May 13, 2026
Merged

ci: remove duplicate psalm workflow#21
printminion-co merged 1 commit into
mainfrom
chore/remove-duplicate-psalm-workflow

Conversation

@printminion-co

Copy link
Copy Markdown
Collaborator

Summary

  • Removes .github/workflows/psalm.yml, which duplicated psalm-matrix.yml.
  • Both files declared name: Static analysis and shared the same concurrency.group with cancel-in-progress: true, so they cancelled each other on every PR.
  • When the matrix workflow lost the race, its summary job (if: always(), exit 1 on non-success) saw cancelled and produced a red static-psalm-analysis-summary check on every PR — even when psalm itself passed. See PR feat(userEventListeners): add UserEventListener and UserStatsJob #17 for an example.
  • Kept the matrix variant: it runs psalm against every supported nextcloud/ocp version with the matching php-min and includes the aggregate static-psalm-analysis-summary job intended for branch protection.

Test plan

  • CI on this PR shows exactly one "Static analysis" workflow run, no CANCELLED, and static-psalm-analysis-summary is green.
  • After merge, rebase / re-run checks on PR feat(userEventListeners): add UserEventListener and UserStatsJob #17 (as/dev/NSW-876-user-event-listener) and confirm static-psalm-analysis-summary is green there too.
  • If branch protection on main references the failing check by name, confirm the rule still resolves (static-psalm-analysis-summary is provided by the surviving workflow).

Two workflow files (.github/workflows/psalm.yml and psalm-matrix.yml)
both declared `name: Static analysis` and shared the same concurrency
group `psalm-${{ github.head_ref || github.run_id }}` with
`cancel-in-progress: true`. Whichever workflow GitHub scheduled second
cancelled the first. When the matrix workflow lost the race, its
summary job (`if: always()`, `exit 1` when not success) saw the
cancellation and produced a red `static-psalm-analysis-summary` check
on every PR, even when psalm itself passed.

Drop psalm.yml and keep psalm-matrix.yml: the matrix variant runs psalm
against every supported nextcloud/ocp version with the matching php-min
and includes the summary aggregate job intended for branch protection.

Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
@printminion-co
printminion-co merged commit c7eaa36 into main May 13, 2026
34 checks passed
@printminion-co
printminion-co deleted the chore/remove-duplicate-psalm-workflow branch May 13, 2026 15:17
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