8000 Build operator dependencies first before testing it by ahus1 · Pull Request #11642 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Build operator dependencies first before testing it - #11642

Merged
abstractj merged 1 commit into
keycloak:mainfrom
ahus1:is-11641-fix-operator-depenencies
May 25, 2022
Merged

abstractj merged 1 commit into
keycloak:mainfrom
ahus1:is-11641-fix-operator-depenencies

Conversation

@ahus1
@ahus1 ahus1 commented Apr 25, 2022
Copy link
Copy Markdown
Member

Closes #11641

@ahus1 ahus1 self-assigned this Apr 25, 2022
@ahus1 ahus1 added kind/bug Categorizes a PR related to a bug area/operator Keycloak Operator — Kubernetes/OpenShift deployment, CRDs, Helm charts labels Apr 25, 2022
@ahus1
ahus1 marked this pull request as draft April 25, 2022 08:03
@andreaTP
Copy link
Copy Markdown
Contributor

Hi @ahus1 ! And thanks a lot for opening this issue and proposing a fix!

Other than explicitly building the common module I would suggest that we change the mvn clean verify command to use the -am option, something like:

mvn -P operator -pl operator -am clean verify \
    ....

This way we do not need to track dependencies in the future.

@ahus1
ahus1 force-pushed the is-11641-fix-operator-depenencies branch from 29e0158 to cc665b9 Compare April 26, 2022 11:12
@ahus1
ahus1 commented Apr 26, 2022
Copy link
Copy Markdown
Member Author

@andreaTP - I wasn't sure how much time test tests of keycloak-common would take; testing it locally it is 1 sec. Looking at that result, your solution is a lot more robust. I pushed a change, let's see how the builds run with that change. I'll ask you for a review once the build completed.

@ahus1
ahus1 marked this pull request as ready for review April 26, 2022 13:37
@ahus1
ahus1 requested a review from andreaTP April 26, 2022 13:37
@ahus1
ahus1 commented Apr 26, 2022
Copy link
Copy Markdown
Member Author

@andreaTP - the builds are all-green (except the quickstarts). Ready for a review!

@andreaTP andreaTP left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM after removing the old implementation of it 🙂
Thanks a ton!

Comment thread .github/workflows/operator-ci.yml Resolved
@ahus1
ahus1 force-pushed the is-11641-fix-operator-depenencies branch from cc665b9 to 7cba86c Compare April 26, 2022 14:14
@ahus1
ahus1 requested a review from andreaTP April 26, 2022 14:15
@andreaTP
Copy link
Copy Markdown
Contributor

Thanks again @ahus1 LGTM!

@andreaTP
andreaTP requested a review from vmuzikar April 26, 2022 14:45
@andreaTP
Copy link
Copy Markdown
Contributor

I'm extremely sad that we haven't merged this simple and effective PR for so long.

Unfortunately, we are now at the point where another PR ( #11929 ) is touching almost the same bits.

@ahus1 would you mind verifying? And we can probably close this one 😞

@ahus1
ahus1 commented May 24, 2022
Copy link
Copy Markdown
Member Author

@andreaTP - I see that the other PR is touch quite some bits and pieces, and I would need to build it locally to see if it tackes the same issues.

Once that other PR has been merged, I'm happy to check if this PR is still necessary and will then either rebase or close it.

@abstractj
abstractj merged commit 8fe263e into keycloak:main May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/operator Keycloak Operator — Kubernetes/OpenShift deployment, CRDs, Helm charts kind/bug Categorizes a PR related to a bug

Projects

Status: Done ✅

Development

Successfully merging this pull request may close these issues.

Keycloak Operator CI build doesn't build Keycloak common

4 participants

0