ci: fix rustfmt job rules (one more case)

f065c2f0ac actually always triggers the rule it adds because
that commit itself changes one of these files, so the case where none of
these files are changed was not actually tested.

The two options are to drop the `changes:` line from that commit, to
make every staging pipeline run that job, or to add the missing
"no changes" corresponding rule, which this commit does, which aligns
with the "run when files changed, don't run otherwise" behaviour of the
other rules above.

Fixes: f065c2f0ac ("ci: fix rustfmt job rules")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36306>
(cherry picked from commit f4166ab1e1)
This commit is contained in:
Eric Engestrom 2025-07-23 10:31:06 +02:00
parent 8db845d788
commit d3ad9705dd
2 changed files with 3 additions and 1 deletions

View file

@ -231,6 +231,8 @@
- if: $CI_PROJECT_NAMESPACE == "mesa"
changes: *rustfmt_files
allow_failure: true
- if: $CI_PROJECT_NAMESPACE == "mesa"
when: never
- when: manual
allow_failure: true

View file

@ -4,7 +4,7 @@
"description": "ci: fix rustfmt job rules (one more case)",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "f065c2f0ac9ab7563f828484294c73092cf4d3b2",
"notes": null