ci: fix rules for formatting checks
Fixes:70eff58767
("ci: allow hw jobs even if lint jobs fail for non-Marge pipelines") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26511> (cherry picked from commitd971e3ba45
)
This commit is contained in:

committed by
Eric Engestrom

parent
0b95d1a030
commit
bf55c9f591
@@ -222,14 +222,23 @@
|
|||||||
.lint-rustfmt-rules:
|
.lint-rustfmt-rules:
|
||||||
rules:
|
rules:
|
||||||
- !reference [.core-rules, rules]
|
- !reference [.core-rules, rules]
|
||||||
- changes:
|
# in merge pipeline, formatting checks are not allowed to fail
|
||||||
|
- if: $GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
|
changes: &rust_file_list
|
||||||
- src/**/*.rs
|
- src/**/*.rs
|
||||||
when: on_success
|
when: on_success
|
||||||
|
allow_failure: false
|
||||||
|
# in other pipelines, formatting checks are allowed to fail
|
||||||
|
- changes: *rust_file_list
|
||||||
|
when: on_success
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
.lint-clang-format-rules:
|
.lint-clang-format-rules:
|
||||||
rules:
|
rules:
|
||||||
- !reference [.core-rules, rules]
|
- !reference [.core-rules, rules]
|
||||||
- changes:
|
# in merge pipeline, formatting checks are not allowed to fail
|
||||||
|
- if: $GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
|
changes: &clang_format_file_list
|
||||||
- .clang-format
|
- .clang-format
|
||||||
- .clang-format-include
|
- .clang-format-include
|
||||||
- .clang-format-ignore
|
- .clang-format-ignore
|
||||||
@@ -240,3 +249,8 @@
|
|||||||
- src/amd/vulkan/**/*
|
- src/amd/vulkan/**/*
|
||||||
- src/amd/compiler/**/*
|
- src/amd/compiler/**/*
|
||||||
when: on_success
|
when: on_success
|
||||||
|
allow_failure: false
|
||||||
|
# in other pipelines, formatting checks are allowed to fail
|
||||||
|
- changes: *clang_format_file_list
|
||||||
|
when: on_success
|
||||||
|
allow_failure: true
|
||||||
|
@@ -23,11 +23,6 @@
|
|||||||
stage: lint
|
stage: lint
|
||||||
extends:
|
extends:
|
||||||
- .use-debian/x86_64_build
|
- .use-debian/x86_64_build
|
||||||
rules:
|
|
||||||
# in merge pipeline, don't touch the default settings
|
|
||||||
- if: $GITLAB_USER_LOGIN == "marge-bot" && $CI_COMMIT_BRANCH == null
|
|
||||||
# in other pipelines, formatting checks are allowed to fail
|
|
||||||
- allow_failure: true
|
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: fetch
|
GIT_STRATEGY: fetch
|
||||||
timeout: 10m
|
timeout: 10m
|
||||||
|
@@ -1184,7 +1184,7 @@
|
|||||||
"description": "ci: fix rules for formatting checks",
|
"description": "ci: fix rules for formatting checks",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 1,
|
"nomination_type": 1,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": "70eff587673ceec181efda86d2e93ede44a59532",
|
"because_sha": "70eff587673ceec181efda86d2e93ede44a59532",
|
||||||
"notes": null
|
"notes": null
|
||||||
|
Reference in New Issue
Block a user