-
Notifications
You must be signed in to change notification settings - Fork 602
Migrate Jenkins PR builder to GitHub Action [DI-336] #674
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
Migrate Jenkins PR builder to GitHub Action [DI-336] #674
Conversation
Ideally
Typically (at least on open-source non-hazelcast repos) this is done via GitHub Repo config, but some Hazelcast repos use |
JackPGreen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to log that the Jenkins build should be disabled.
Fixed 967b2d882eae |
.github/workflows/builder.yaml
Outdated
| - name: Detect untrusted community PR | ||
| if: ${{ needs.check_for_membership.outputs.check-result == 'false' }} | ||
| run: | | ||
| gh pr comment ${{ github.event.number }} \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not actually sure we want a comment here, an annotation the job is probably enough.
(I know you copied it from the PR builder, which does that - but I deliberately used comments there for backwards compatibility reasons)
Not sold either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes indeed, I copied as made sense to me
an annotation the job is probably enough
What do you mean? Like remove commenting and echo the error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an annotation the job is probably enough
What do you mean? Like remove commenting and echo the error?
Just echoing the error in a format like this hazelcast/hazelcast-docker#821
I've not done it personally so I can't say. Could setup a test repo to try it in to be sure? |
Co-authored-by: Jack Green <[email protected]>
Agreed. Let me try |
Mentioned in JIRA already |
Removed external author check completely 95e8cc27c and now relying on GH setting which appears to work as intended Tested this in test repo (to be deleted) INTERNAL: https://github.com/hazelcast/test-pr-builder-nish-tmp/pull/6 |
|
@JackPGreen I checked 'HAZELCAST_ENTERPRISE_KEY_V7' is open to all repos so can't be that |
Yes, it looks like LicenseUtil has it's own behaviour - hazelcast-code-samples/helper/src/main/java/com/hazelcast/examples/helper/LicenseUtils.java Line 39 in 6f418b4
|
HAZELCAST_ENTERPRISE_KEY_V7 is failing to run tests likely due to incompatibility so trying legacy license
JackPGreen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving for further investigation post merge due to pull_request_target.
Follow-up from #674 Add PR author check to block external PRs --------- Co-authored-by: Jack Green <[email protected]>
Disable test temporarily until [DI-338](https://hazelcast.atlassian.net/browse/DI-338) is fixed We have migrated Code Samples PR builder to GitHub (#674) and Hazelcast is activating Azure identity provider (likely as GH hosted runners run in Azure) which results in the test hanging by continuously attempting to connect to HZ cluster (which likely failed to start)


This came about at the back of removing Code Samples from Platform releases https://hazelcast.atlassian.net/browse/DI-313
TODO (need help here)
HZ_LICENSEKEY. We have these in GH so not sure which one to use-DskipTestsonce above is sortedFixes: DI-336