.forgejo: Make 'fmt' job fail on changed files #66

Merged
fyrchik merged 1 commit from a-savchuk/frostfs-api:fail-on-format into master 2024-09-13 12:22:04 +00:00
Member

Make the fmt job fail if any files have been formatted, inspired by TrueCloudLab/frostfs-node#1266. Debugged with this tool.

Signed-off-by: Aleksey Savchuk a.savchuk@yadro.com

Make the `fmt` job fail if any files have been formatted, inspired by https://git.frostfs.info/TrueCloudLab/frostfs-node/issues/1266. Debugged with [this tool](https://forgejo.org/docs/v1.20/user/actions/#debugging-workflows-with-forgejo-runner-exec). Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
a-savchuk added 1 commit 2024-09-12 18:55:12 +00:00
[#xx] .forgejo: Make 'fmt' job fail on changed files
Some checks failed
DCO action / DCO (pull_request) Failing after 26s
Pre-commit hooks / Pre-commit (pull_request) Successful in 26s
Formatters / Run fmt (pull_request) Successful in 32s
5174e9053f
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
a-savchuk force-pushed fail-on-format from 5174e9053f to c341226b07 2024-09-12 18:57:20 +00:00 Compare
a-savchuk changed title from WIP: .forgejo: Make 'fmt' job fail on changed files to .forgejo: Make 'fmt' job fail on changed files 2024-09-12 18:59:51 +00:00
a-savchuk requested review from storage-core-developers 2024-09-12 18:59:59 +00:00
a-savchuk requested review from storage-core-committers 2024-09-12 19:00:00 +00:00
acid-ant approved these changes 2024-09-12 19:01:58 +00:00
Dismissed
elebedeva approved these changes 2024-09-12 21:44:52 +00:00
Dismissed
elebedeva left a comment
Member

Elegant solution!

Elegant solution!
achuprov approved these changes 2024-09-13 07:21:39 +00:00
Dismissed
fyrchik reviewed 2024-09-13 12:00:57 +00:00
@ -15,1 +15,3 @@
run: make fmt
run: |
make fmt
test -z "$(git diff --name-only)"
Owner

--exit-code

`--exit-code` https://git.frostfs.info/TrueCloudLab/frostfs-contract/src/commit/3e221b973a3cfe387113990bab56b33f78bc0c18/.forgejo/workflows/codegen.yml#L21
Author
Member

Changed it

Changed it
fyrchik marked this conversation as resolved
a-savchuk force-pushed fail-on-format from c341226b07 to b2f5205976 2024-09-13 12:09:23 +00:00 Compare
a-savchuk dismissed acid-ant's review 2024-09-13 12:09:23 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

a-savchuk dismissed elebedeva's review 2024-09-13 12:09:23 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

a-savchuk dismissed achuprov's review 2024-09-13 12:09:23 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

elebedeva approved these changes 2024-09-13 12:10:53 +00:00
dstepanov-yadro approved these changes 2024-09-13 12:17:52 +00:00
fyrchik approved these changes 2024-09-13 12:22:00 +00:00
fyrchik merged commit b2f5205976 into master 2024-09-13 12:22:04 +00:00
a-savchuk deleted branch fail-on-format 2024-09-13 12:23:59 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
6 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-api#66
No description provided.