Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix_: separate commit message check #5773

Merged
merged 4 commits into from
Aug 27, 2024

Conversation

igor-sirotin
Copy link
Collaborator

@igor-sirotin igor-sirotin commented Aug 26, 2024

Description

We want a separate check for commit messages. When an issue happen with commit messages, we still want to know tests run results. Because sometimes we want for force-merge. And because it makes sense in general, it's easier to see the issue fro the developer.

Also, I fixed a bug. A commit with breaking change would mitigate a commit with malformed message.

Inspired by go-waku repository

edit

Comment when commit check is not passing

image

The comment is automatically deleted when the issues are resolved.

Comment when commit check is passing and breaking changes are detected

image

@status-im-auto
Copy link
Member

status-im-auto commented Aug 26, 2024

Jenkins Builds

Click to see older builds (174)
Commit #️⃣ Finished (UTC) Duration Platform Result
✖️ f3738dd #1 2024-08-26 22:13:47 ~1 min tests 📄log
✔️ f3738dd #1 2024-08-26 22:14:46 ~2 min tests-rpc 📄log
✔️ f3738dd #1 2024-08-26 22:16:11 ~3 min linux 📦zip
✔️ f3738dd #1 2024-08-26 22:16:33 ~4 min ios 📦zip
✔️ f3738dd #1 2024-08-26 22:17:38 ~5 min android 📦aar
✔️ b2f1b47 #2 2024-08-26 22:17:27 ~1 min tests-rpc 📄log
✖️ b2f1b47 #2 2024-08-26 22:17:31 ~1 min tests 📄log
✔️ b2f1b47 #2 2024-08-26 22:18:20 ~1 min linux 📦zip
✔️ b2f1b47 #2 2024-08-26 22:19:22 ~1 min android 📦aar
✔️ b2f1b47 #2 2024-08-26 22:19:41 ~2 min ios 📦zip
✔️ 721150a #3 2024-08-26 22:23:31 ~1 min android 📦aar
✔️ 721150a #3 2024-08-26 22:23:47 ~2 min linux 📦zip
✔️ 721150a #3 2024-08-26 22:23:52 ~2 min tests-rpc 📄log
✔️ 721150a #3 2024-08-26 22:24:42 ~3 min ios 📦zip
✔️ 721150a #3 2024-08-26 22:54:01 ~32 min tests 📄log
✔️ cdae1d7 #4 2024-08-27 10:15:43 ~1 min android 📦aar
✔️ cdae1d7 #4 2024-08-27 10:16:13 ~1 min linux 📦zip
✔️ cdae1d7 #4 2024-08-27 10:16:28 ~2 min tests-rpc 📄log
✔️ cdae1d7 #4 2024-08-27 10:17:13 ~2 min ios 📦zip
✔️ cdae1d7 #4 2024-08-27 10:45:08 ~30 min tests 📄log
✔️ 9fd3ea5 #5 2024-08-27 11:37:27 ~1 min linux 📦zip
✔️ 9fd3ea5 #5 2024-08-27 11:38:05 ~2 min tests-rpc 📄log
✔️ 9fd3ea5 #5 2024-08-27 11:38:30 ~3 min ios 📦zip
✔️ 9fd3ea5 #5 2024-08-27 11:40:46 ~5 min android 📦aar
✔️ 9fd3ea5 #5 2024-08-27 12:08:21 ~32 min tests 📄log
✔️ eeb7783 #6 2024-08-27 11:49:22 ~1 min tests-rpc 📄log
✔️ eeb7783 #6 2024-08-27 11:49:39 ~1 min android 📦aar
✔️ eeb7783 #6 2024-08-27 11:50:10 ~1 min linux 📦zip
✔️ eeb7783 #6 2024-08-27 11:51:20 ~3 min ios 📦zip
✔️ 2b6b54a #7 2024-08-27 12:02:08 ~2 min tests-rpc 📄log
✔️ 2b6b54a #7 2024-08-27 12:03:25 ~3 min linux 📦zip
✔️ 2b6b54a #7 2024-08-27 12:04:43 ~4 min ios 📦zip
✔️ 2b6b54a #7 2024-08-27 12:05:22 ~5 min android 📦aar
✔️ 2b6b54a #6 2024-08-27 12:40:42 ~32 min tests 📄log
✔️ 1f8ff2d #8 2024-08-27 13:27:37 ~58 sec linux 📦zip
✔️ 1f8ff2d #8 2024-08-27 13:27:54 ~1 min android 📦aar
✔️ 1f8ff2d #8 2024-08-27 13:28:49 ~2 min tests-rpc 📄log
✔️ 1f8ff2d #8 2024-08-27 13:30:04 ~3 min ios 📦zip
✔️ 1f8ff2d #7 2024-08-27 13:57:27 ~30 min tests 📄log
✔️ b9e8512 #9 2024-08-27 13:29:12 ~1 min linux 📦zip
✔️ b9e8512 #9 2024-08-27 13:29:22 ~1 min android 📦aar
✔️ b9e8512 #9 2024-08-27 13:29:56 ~1 min tests-rpc 📄log
✔️ b9e8512 #9 2024-08-27 13:33:01 ~2 min ios 📦zip
✔️ 6ab37a9 #10 2024-08-27 13:37:45 ~1 min tests-rpc 📄log
✔️ 6ab37a9 #10 2024-08-27 13:37:47 ~1 min linux 📦zip
✔️ 6ab37a9 #10 2024-08-27 13:37:59 ~1 min android 📦aar
✔️ 6ab37a9 #10 2024-08-27 13:39:34 ~2 min ios 📦zip
✔️ 34b2cc1 #11 2024-08-27 13:40:46 ~1 min linux 📦zip
✔️ 34b2cc1 #11 2024-08-27 13:40:47 ~59 sec tests-rpc 📄log
✔️ 34b2cc1 #11 2024-08-27 13:40:59 ~1 min android 📦aar
✔️ 34b2cc1 #11 2024-08-27 13:42:34 ~2 min ios 📦zip
✔️ 0674fa5 #12 2024-08-27 13:44:32 ~1 min linux 📦zip
✔️ 0674fa5 #12 2024-08-27 13:44:38 ~1 min tests-rpc 📄log
✔️ 0674fa5 #12 2024-08-27 13:44:48 ~1 min android 📦aar
✔️ 0674fa5 #12 2024-08-27 13:46:09 ~2 min ios 📦zip
✔️ 2d72001 #13 2024-08-27 13:47:34 ~1 min tests-rpc 📄log
✔️ 2d72001 #13 2024-08-27 13:47:35 ~1 min linux 📦zip
✔️ 2d72001 #13 2024-08-27 13:47:55 ~1 min android 📦aar
✔️ 2d72001 #13 2024-08-27 13:49:05 ~2 min ios 📦zip
✔️ 1b1638a #14 2024-08-27 13:49:14 ~1 min linux 📦zip
✔️ 1b1638a #14 2024-08-27 13:49:14 ~58 sec tests-rpc 📄log
✔️ 1b1638a #14 2024-08-27 13:49:24 ~1 min android 📦aar
✔️ 1b1638a #14 2024-08-27 13:51:39 ~2 min ios 📦zip
✔️ 65cbcc6 #15 2024-08-27 13:54:45 ~1 min linux 📦zip
✔️ 65cbcc6 #15 2024-08-27 13:54:59 ~1 min android 📦aar
✔️ 65cbcc6 #15 2024-08-27 13:55:50 ~2 min tests-rpc 📄log
✔️ 65cbcc6 #15 2024-08-27 13:56:21 ~2 min ios 📦zip
✔️ ffd58f0 #16 2024-08-27 13:56:42 ~1 min linux 📦zip
✔️ ffd58f0 #16 2024-08-27 13:56:53 ~1 min android 📦aar
✔️ ffd58f0 #16 2024-08-27 13:56:53 ~59 sec tests-rpc 📄log
✖️ ffd58f0 #8 2024-08-27 13:58:17 ~40 sec tests 📄log
✔️ ffd58f0 #16 2024-08-27 13:59:07 ~2 min ios 📦zip
✔️ bf7c6ad #17 2024-08-27 13:59:06 ~58 sec tests-rpc 📄log
✖️ bf7c6ad #9 2024-08-27 13:59:07 ~40 sec tests 📄log
✔️ bf7c6ad #17 2024-08-27 13:59:12 ~1 min linux 📦zip
✔️ bf7c6ad #17 2024-08-27 13:59:19 ~1 min android 📦aar
✔️ bf7c6ad #17 2024-08-27 14:01:55 ~2 min ios 📦zip
✖️ 968b12b #10 2024-08-27 14:02:27 ~46 sec tests 📄log
✔️ 968b12b #18 2024-08-27 14:02:39 ~1 min linux 📦zip
✔️ 968b12b #18 2024-08-27 14:02:41 ~1 min tests-rpc 📄log
✔️ 968b12b #18 2024-08-27 14:02:54 ~1 min android 📦aar
✔️ 968b12b #18 2024-08-27 14:04:44 ~2 min ios 📦zip
✖️ e06763d #11 2024-08-27 14:05:19 ~41 sec tests 📄log
✔️ e06763d #19 2024-08-27 14:05:35 ~1 min linux 📦zip
✔️ e06763d #19 2024-08-27 14:05:39 ~1 min tests-rpc 📄log
✔️ e06763d #19 2024-08-27 14:05:48 ~1 min android 📦aar
✔️ e06763d #19 2024-08-27 14:07:43 ~2 min ios 📦zip
✖️ 82203e7 #12 2024-08-27 14:07:34 ~40 sec tests 📄log
✔️ 82203e7 #20 2024-08-27 14:07:51 ~59 sec tests-rpc 📄log
✔️ 82203e7 #20 2024-08-27 14:07:58 ~1 min linux 📦zip
✔️ 82203e7 #20 2024-08-27 14:08:03 ~1 min android 📦aar
✖️ 94170ea #13 2024-08-27 14:08:48 ~45 sec tests 📄log
✔️ 94170ea #21 2024-08-27 14:09:12 ~1 min linux 📦zip
✔️ 94170ea #21 2024-08-27 14:09:32 ~1 min android 📦aar
✔️ 94170ea #20 2024-08-27 14:10:29 ~2 min ios 📦zip
✔️ 94170ea #21 2024-08-27 14:10:33 ~2 min tests-rpc 📄log
✔️ 94170ea #21 2024-08-27 14:13:12 ~2 min ios 📦zip
✖️ 26a4f13 #14 2024-08-27 14:13:21 ~40 sec tests 📄log
✔️ 26a4f13 #22 2024-08-27 14:13:37 ~59 sec linux 📦zip
✔️ 26a4f13 #22 2024-08-27 14:13:43 ~1 min tests-rpc 📄log
✔️ 26a4f13 #22 2024-08-27 14:13:52 ~1 min android 📦aar
✔️ 26a4f13 #22 2024-08-27 14:16:04 ~2 min ios 📦zip
✖️ dfe38bd #15 2024-08-27 14:22:03 ~1 min tests 📄log
✔️ dfe38bd #23 2024-08-27 14:22:22 ~1 min android 📦aar
✔️ dfe38bd #23 2024-08-27 14:22:52 ~1 min linux 📦zip
✔️ dfe38bd #23 2024-08-27 14:23:06 ~2 min tests-rpc 📄log
✔️ dfe38bd #23 2024-08-27 14:23:50 ~2 min ios 📦zip
✖️ 0a5065f #16 2024-08-27 14:26:11 ~49 sec tests 📄log
✔️ 0a5065f #24 2024-08-27 14:26:20 ~1 min tests-rpc 📄log
✔️ 0a5065f #24 2024-08-27 14:26:45 ~1 min android 📦aar
✔️ 0a5065f #24 2024-08-27 14:27:12 ~1 min linux 📦zip
✔️ 0a5065f #24 2024-08-27 14:28:04 ~2 min ios 📦zip
✖️ b87500a #17 2024-08-27 14:29:23 ~53 sec tests 📄log
✔️ b87500a #25 2024-08-27 14:29:30 ~1 min tests-rpc 📄log
✔️ b87500a #25 2024-08-27 14:29:50 ~1 min android 📦aar
✔️ b87500a #25 2024-08-27 14:30:23 ~1 min linux 📦zip
✔️ b87500a #25 2024-08-27 14:31:15 ~2 min ios 📦zip
✖️ 47dc28a #18 2024-08-27 14:37:29 ~1 min tests 📄log
✔️ 47dc28a #26 2024-08-27 14:37:50 ~1 min android 📦aar
✔️ 47dc28a #26 2024-08-27 14:38:12 ~1 min linux 📦zip
✔️ 47dc28a #26 2024-08-27 14:38:31 ~2 min tests-rpc 📄log
✔️ 47dc28a #26 2024-08-27 14:39:34 ~3 min ios 📦zip
✖️ ce419d1 #19 2024-08-27 15:16:05 ~58 sec tests 📄log
✔️ ce419d1 #27 2024-08-27 15:16:32 ~1 min android 📦aar
✔️ ce419d1 #27 2024-08-27 15:17:06 ~2 min linux 📦zip
✔️ ce419d1 #27 2024-08-27 15:17:13 ~2 min tests-rpc 📄log
✔️ ce419d1 #27 2024-08-27 15:17:57 ~2 min ios 📦zip
✖️ 392ef2c #20 2024-08-27 15:23:45 ~53 sec tests 📄log
✔️ 392ef2c #28 2024-08-27 15:23:54 ~1 min tests-rpc 📄log
✔️ 392ef2c #28 2024-08-27 15:24:10 ~1 min android 📦aar
✔️ 392ef2c #28 2024-08-27 15:24:42 ~1 min linux 📦zip
✔️ 392ef2c #28 2024-08-27 15:25:48 ~3 min ios 📦zip
✖️ 7bec29a #21 2024-08-27 15:29:33 ~54 sec tests 📄log
✔️ 7bec29a #29 2024-08-27 15:29:40 ~1 min tests-rpc 📄log
✔️ 7bec29a #29 2024-08-27 15:30:07 ~1 min android 📦aar
✔️ 7bec29a #29 2024-08-27 15:30:32 ~1 min linux 📦zip
✔️ 7bec29a #29 2024-08-27 15:31:23 ~2 min ios 📦zip
✔️ 973c4e6 #30 2024-08-27 15:41:15 ~1 min tests-rpc 📄log
✖️ 973c4e6 #22 2024-08-27 15:41:16 ~1 min tests 📄log
✔️ 973c4e6 #30 2024-08-27 15:41:36 ~1 min android 📦aar
✔️ 973c4e6 #30 2024-08-27 15:42:07 ~1 min linux 📦zip
✔️ 973c4e6 #30 2024-08-27 15:43:10 ~3 min ios 📦zip
✖️ ddc0324 #23 2024-08-27 15:46:42 ~52 sec tests 📄log
✔️ ddc0324 #31 2024-08-27 15:46:51 ~1 min tests-rpc 📄log
✔️ ddc0324 #31 2024-08-27 15:47:08 ~1 min android 📦aar
✔️ ddc0324 #31 2024-08-27 15:47:45 ~1 min linux 📦zip
✔️ ddc0324 #31 2024-08-27 15:48:26 ~2 min ios 📦zip
✖️ e89d70f #24 2024-08-27 15:49:10 ~52 sec tests 📄log
✔️ e89d70f #32 2024-08-27 15:49:42 ~1 min android 📦aar
✔️ e89d70f #32 2024-08-27 15:50:08 ~1 min linux 📦zip
✔️ e89d70f #32 2024-08-27 15:50:30 ~2 min tests-rpc 📄log
✔️ e89d70f #32 2024-08-27 15:51:42 ~2 min ios 📦zip
✔️ db91ea7 #33 2024-08-27 15:51:50 ~1 min tests-rpc 📄log
✔️ db91ea7 #33 2024-08-27 15:52:02 ~1 min android 📦aar
✔️ db91ea7 #33 2024-08-27 15:52:27 ~1 min linux 📦zip
✔️ db91ea7 #25 2024-08-27 16:21:10 ~30 min tests 📄log
✔️ ff606b0 #34 2024-08-27 15:54:35 ~2 min tests-rpc 📄log
✔️ ff606b0 #33 2024-08-27 15:55:09 ~3 min ios 📦zip
✔️ f3cfc8f #34 2024-08-27 15:54:41 ~2 min android 📦aar
✔️ f3cfc8f #34 2024-08-27 15:55:01 ~2 min linux 📦zip
✔️ ecd34e5 #35 2024-08-27 15:56:37 ~1 min android 📦aar
✔️ ecd34e5 #35 2024-08-27 15:56:59 ~2 min tests-rpc 📄log
✔️ ecd34e5 #35 2024-08-27 15:57:18 ~1 min linux 📦zip
✔️ ecd34e5 #34 2024-08-27 15:58:34 ~3 min ios 📦zip
✖️ ecd34e5 #26 2024-08-27 16:22:17 ~55 sec tests 📄log
✔️ 691ee47 #36 2024-08-27 16:35:38 ~2 min android 📦aar
✔️ 691ee47 #36 2024-08-27 16:35:46 ~2 min tests-rpc 📄log
✔️ 691ee47 #36 2024-08-27 16:35:47 ~2 min linux 📦zip
✔️ 691ee47 #35 2024-08-27 16:36:28 ~2 min ios 📦zip
✔️ 691ee47 #27 2024-08-27 17:05:19 ~31 min tests 📄log
✔️ 1d1d162 #37 2024-08-27 16:44:09 ~1 min android 📦aar
✔️ 1d1d162 #37 2024-08-27 16:44:47 ~2 min linux 📦zip
✔️ 1d1d162 #37 2024-08-27 16:44:53 ~2 min tests-rpc 📄log
✔️ 1d1d162 #36 2024-08-27 16:46:01 ~3 min ios 📦zip
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 1d650b9 #38 2024-08-27 17:00:36 ~1 min android 📦aar
✔️ 1d650b9 #38 2024-08-27 17:00:56 ~1 min linux 📦zip
✔️ 1d650b9 #38 2024-08-27 17:01:17 ~2 min tests-rpc 📄log
✔️ 1d650b9 #37 2024-08-27 17:02:26 ~3 min ios 📦zip
✔️ 1d650b9 #28 2024-08-27 17:37:00 ~31 min tests 📄log
✔️ 1d650b9 #29 2024-08-27 18:12:36 ~31 min tests 📄log
✔️ 7c52396 #39 2024-08-27 18:32:21 ~1 min tests-rpc 📄log
✔️ 7c52396 #39 2024-08-27 18:32:38 ~1 min android 📦aar
✔️ 7c52396 #39 2024-08-27 18:33:06 ~1 min linux 📦zip
✔️ 7c52396 #38 2024-08-27 18:34:07 ~2 min ios 📦zip
✔️ 7c52396 #30 2024-08-27 19:02:00 ~30 min tests 📄log

@igor-sirotin igor-sirotin force-pushed the fix/separate-commit-message-ceck branch 7 times, most recently from ecd34e5 to 691ee47 Compare August 27, 2024 16:33
@igor-sirotin igor-sirotin force-pushed the fix/separate-commit-message-ceck branch from 691ee47 to 1d1d162 Compare August 27, 2024 16:42
@igor-sirotin igor-sirotin changed the title fix_: separate commit message ceck fix_: separate commit message check Aug 27, 2024
@igor-sirotin igor-sirotin requested review from cammellos and a team August 27, 2024 16:55
@igor-sirotin igor-sirotin marked this pull request as ready for review August 27, 2024 16:55
# Run the loop in the current shell using process substitution
while IFS= read -r message || [ -n "$message" ]; do
# Check if commit message follows conventional commits format
if [[ $message =~ ^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(.*\))?(\_|!):.*$ ]]; then
# Check for breaking changes
if [[ ${BASH_REMATCH[3]} == *'!'* ]]; then
is_breaking_change=true
break
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This break is wrong. We should check all commits.

@igor-sirotin igor-sirotin self-assigned this Aug 27, 2024
Copy link
Member

@jakubgs jakubgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a good way to raise visibility.

@igor-sirotin igor-sirotin merged commit 8491e76 into develop Aug 27, 2024
11 checks passed
@igor-sirotin igor-sirotin deleted the fix/separate-commit-message-ceck branch August 27, 2024 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants