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

[bugfix] Fix Github Branch Commit Checks Bug #391

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

smilejj91
Copy link

@smilejj91 smilejj91 commented Nov 27, 2024

This is a PR fixing an issue related to Commit Check in the Github Branch section of the build trigger.

  1. Fixed an issue where the job configuration was broken when saving after activating the Commit Message pattern option.
  • The issue is related to this link
  1. Fixed an issue where the job was not triggered even if it matched the Commit Message Pattern.

We would appreciate your positive review.

Thank you.


This change is Reviewable

- Fixed an issue where the job configuration was broken when saving after activating the Commit Message pattern option.
- Fixed an issue where the job was not triggered even if it matched the Commit Message Pattern.
@smilejj91
Copy link
Author

@KostyaSha Hello. I mentioned you because I know you are the maintainer of the repository. I would appreciate it if you could check the PR. Thank you. 😀

@KostyaSha
Copy link
Owner

would be good to make some test...

@smilejj91
Copy link
Author

smilejj91 commented Nov 28, 2024

would be good to make some test...

@KostyaSha you're right. I have already checked the relevant functional tests and provided a PR. Is it possible to attach a test image for confirmation?

@smilejj91
Copy link
Author

[how to reproduce issue]
Create Freestyle Job -> Job Configuration -> Build triggers -> Github Branches -> Trigger Events -> Commit Checks -> Commit Message Pattern -> Job Save -> Reopen Job Configuration
image

[before apply this commit] : job configuration is broken
image

[after apply this commit] : job configuration is not broken
image

@smilejj91
Copy link
Author

I already apply this commit and use github branches commit check feature. I am using it well without any issues so far.
If this commit is reflected in the official plugin, it would be nice for me to not have to separately manage the custom plugin.

@KostyaSha
Copy link
Owner

I mean for GitHubBranchCommitMessageCheck.java not, UI.

@smilejj91
Copy link
Author

I mean for GitHubBranchCommitMessageCheck.java not, UI.

@KostyaSha Oh, I see. It would be a good idea to test it in your own environment before and after applying the commit. It seems difficult to show the functional test results before and after modification in this PR.

What is certain is that if the current commit is not reflected, the commit message is compared well, but when it passes after comparison, the job is not triggered.

@KostyaSha
Copy link
Owner

Usually it's done with mocks, you initialise only MessageCheck and pass mocked objects that contains commit pattern and check that it return expected cause

@smilejj91
Copy link
Author

smilejj91 commented Nov 28, 2024

@KostyaSha thank you. Test execution may have been skipped in the master branch, so I thought the test had passed. Related test code was modified and reflected in additional commits.
test-success.txt

@smilejj91
Copy link
Author

@KostyaSha Hello. :) Two weeks have passed since the test was performed and the normal results were attached. Is there anything additional that needs to be checked for the PR to be reflected? Or is the related commit still under review?

@smilejj91
Copy link
Author

@kvanzuijlen Can you check the PR? I feel like KostyaSha can't confirm.

@KostyaSha
Copy link
Owner

sorry, too busy atm, we look as soon as find free time

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.

2 participants